]> granicus.if.org Git - python/log
python
10 years agoIssue #21619: Popen objects no longer leave a zombie after exit in the with
Serhiy Storchaka [Sat, 28 Feb 2015 10:43:08 +0000 (12:43 +0200)]
Issue #21619: Popen objects no longer leave a zombie after exit in the with
statement if the pipe was broken.  Patch by Martin Panter.

10 years agoFix the clarification as to why division cannot be ported automatically
Brett Cannon [Fri, 27 Feb 2015 20:10:03 +0000 (15:10 -0500)]
Fix the clarification as to why division cannot be ported automatically

10 years agoFix minor errors in Misc/NEWS. (Thanks for the report, Florian Bruhin!)
Larry Hastings [Fri, 27 Feb 2015 17:14:32 +0000 (09:14 -0800)]
Fix minor errors in Misc/NEWS.  (Thanks for the report, Florian Bruhin!)

10 years agoIssue #23537: Remove 2 unused private methods of asyncio.BaseSubprocessTransport
Victor Stinner [Fri, 27 Feb 2015 16:49:09 +0000 (17:49 +0100)]
Issue #23537: Remove 2 unused private methods of asyncio.BaseSubprocessTransport

Methods only raise NotImplementedError and are never used.

10 years agoIssue #23526: Fix ResourceWarning in test_httplib. Patch written by Alex Shkop.
Victor Stinner [Fri, 27 Feb 2015 16:47:23 +0000 (17:47 +0100)]
Issue #23526: Fix ResourceWarning in test_httplib. Patch written by Alex Shkop.

10 years agoFix copy/paste error in bytes.isupper() doc.
Zachary Ware [Fri, 27 Feb 2015 07:40:22 +0000 (01:40 -0600)]
Fix copy/paste error in bytes.isupper() doc.

Reported by Jon Colburn on docs@.

10 years agoremove duplicate 3.4.3 tags
Benjamin Peterson [Fri, 27 Feb 2015 03:49:21 +0000 (22:49 -0500)]
remove duplicate 3.4.3 tags

10 years agoMerge 3.4.3 release engineering changes back into 3.4.
Larry Hastings [Thu, 26 Feb 2015 13:58:48 +0000 (05:58 -0800)]
Merge 3.4.3 release engineering changes back into 3.4.

10 years agoPost-release changes for 3.4.3.
Larry Hastings [Thu, 26 Feb 2015 13:56:32 +0000 (05:56 -0800)]
Post-release changes for 3.4.3.

10 years agoasyncio doc: lock classes are not thread safe
Victor Stinner [Thu, 26 Feb 2015 09:39:16 +0000 (10:39 +0100)]
asyncio doc: lock classes are not thread safe

10 years agoremove unused import
Benjamin Peterson [Wed, 25 Feb 2015 21:47:14 +0000 (16:47 -0500)]
remove unused import

10 years agoIssue #23511: Port email-simple.py to Python 3.
Berker Peksag [Wed, 25 Feb 2015 16:14:09 +0000 (18:14 +0200)]
Issue #23511: Port email-simple.py to Python 3.

Also, update email examples to use the context manager version of open().

Patch by Baptiste Mispelon.

10 years agofix merge_collapse to actually maintain the invariant it purports to (closes #23515)
Benjamin Peterson [Wed, 25 Feb 2015 15:12:26 +0000 (10:12 -0500)]
fix merge_collapse to actually maintain the invariant it purports to (closes #23515)

See
de Gouw, Stijn and Rot, Jurriaan and de Boer, Frank S and Bubel, Richard and Hähnle, Reiner
"OpenJDK’s java.utils.Collection.sort() is broken: The good, the bad and the worst case"

10 years agoasyncio: add a note about (non) thread safety in each class
Victor Stinner [Wed, 25 Feb 2015 13:24:15 +0000 (14:24 +0100)]
asyncio: add a note about (non) thread safety in each class

10 years agoasyncio doc: begin with warnings on asyncio traps
Victor Stinner [Wed, 25 Feb 2015 13:23:51 +0000 (14:23 +0100)]
asyncio doc: begin with warnings on asyncio traps

10 years agoasyncio doc: move queues to a new page
Victor Stinner [Wed, 25 Feb 2015 12:55:43 +0000 (13:55 +0100)]
asyncio doc: move queues to a new page

10 years agoAdded tag v3.4.3 for changeset b4cbecbc0781
Larry Hastings [Wed, 25 Feb 2015 12:17:04 +0000 (04:17 -0800)]
Added tag v3.4.3 for changeset b4cbecbc0781

10 years agoChecking in this change LOCAL ONLY NO UPLOAD ANYWHERE v3.4.3
Larry Hastings [Wed, 25 Feb 2015 12:15:33 +0000 (04:15 -0800)]
Checking in this change  LOCAL ONLY  NO UPLOAD ANYWHERE

10 years agoRemove unsupported (in latex) character from the source.
Georg Brandl [Wed, 25 Feb 2015 12:05:53 +0000 (13:05 +0100)]
Remove unsupported (in latex) character from the source.

10 years agoasyncio doc: close explicitly event loops
Victor Stinner [Mon, 23 Feb 2015 10:41:56 +0000 (11:41 +0100)]
asyncio doc: close explicitly event loops

10 years agoAdded tag v3.4.3 for changeset 9b73f1c3e601
Larry Hastings [Mon, 23 Feb 2015 07:55:48 +0000 (23:55 -0800)]
Added tag v3.4.3 for changeset 9b73f1c3e601

10 years agoRelease bump for 3.4.3 final.
Larry Hastings [Mon, 23 Feb 2015 07:55:39 +0000 (23:55 -0800)]
Release bump for 3.4.3 final.

10 years agoDoc updates for 3.4.3 final.
Larry Hastings [Mon, 23 Feb 2015 07:54:38 +0000 (23:54 -0800)]
Doc updates for 3.4.3 final.

10 years agoIssue #23499: Fix grammar error noticed by SilentGhost
Ned Deily [Mon, 23 Feb 2015 00:14:32 +0000 (16:14 -0800)]
Issue #23499: Fix grammar error noticed by SilentGhost

10 years agoBroke reference loops in tests added in issue #5700.
Serhiy Storchaka [Sun, 22 Feb 2015 22:28:38 +0000 (00:28 +0200)]
Broke reference loops in tests added in issue #5700.

10 years agoIssue #6639: Module-level turtle functions no longer raise TclError after
Serhiy Storchaka [Sun, 22 Feb 2015 15:25:33 +0000 (17:25 +0200)]
Issue #6639: Module-level turtle functions no longer raise TclError after
closing the window.

10 years agoIssues #814253, #9179: Warnings now are raised when group references and
Serhiy Storchaka [Sat, 21 Feb 2015 10:08:52 +0000 (12:08 +0200)]
Issues #814253, #9179: Warnings now are raised when group references and
conditional group references are used in lookbehind assertions in regular
expressions.

10 years agoIssue #23215: Multibyte codecs with custom error handlers that ignores errors
Serhiy Storchaka [Fri, 20 Feb 2015 23:19:58 +0000 (01:19 +0200)]
Issue #23215: Multibyte codecs with custom error handlers that ignores errors
consumed too much memory and raised SystemError or MemoryError.
Original patch by Aleksi Torhamo.

10 years agoIssue #5700: io.FileIO() called flush() after closing the file.
Serhiy Storchaka [Fri, 20 Feb 2015 22:35:09 +0000 (00:35 +0200)]
Issue #5700: io.FileIO() called flush() after closing the file.
flush() was not called in close() if closefd=False.

10 years agoIssue #23374: Fixed pydoc failure with non-ASCII files when stdout encoding
Serhiy Storchaka [Fri, 20 Feb 2015 21:46:06 +0000 (23:46 +0200)]
Issue #23374: Fixed pydoc failure with non-ASCII files when stdout encoding
differs from file system encoding (e.g. on Mac OS).

10 years agoIssue #23490: Fixed possible crashes related to interoperability between
Serhiy Storchaka [Fri, 20 Feb 2015 19:34:06 +0000 (21:34 +0200)]
Issue #23490: Fixed possible crashes related to interoperability between
old-style and new API for string with 2**30-1 characters.

10 years agoIssue #23439: Add missing entries to http.client.__all__.
Berker Peksag [Fri, 20 Feb 2015 07:39:38 +0000 (09:39 +0200)]
Issue #23439: Add missing entries to http.client.__all__.

Also, document the LineTooLong exception since it can be raised by
the members of public API (e.g. http.client.HTTPResponse).

Patch by Martin Panter.

10 years agoFix typo pointed out on docs@ by Yaniv Sayeh
Zachary Ware [Fri, 20 Feb 2015 04:30:15 +0000 (22:30 -0600)]
Fix typo pointed out on docs@ by Yaniv Sayeh

10 years agoFix a typo pointed out on docs@
Zachary Ware [Fri, 20 Feb 2015 04:15:36 +0000 (22:15 -0600)]
Fix a typo pointed out on docs@

10 years agoremove rc4 from the default client ciphers (closes #23481)
Benjamin Peterson [Thu, 19 Feb 2015 22:57:08 +0000 (17:57 -0500)]
remove rc4 from the default client ciphers (closes #23481)

10 years agomerge heads
Benjamin Peterson [Wed, 18 Feb 2015 13:56:33 +0000 (08:56 -0500)]
merge heads

10 years agomerge 3.3
Benjamin Peterson [Wed, 18 Feb 2015 13:55:38 +0000 (08:55 -0500)]
merge 3.3

10 years agomerge 3.2
Benjamin Peterson [Wed, 18 Feb 2015 13:54:22 +0000 (08:54 -0500)]
merge 3.2

10 years agoremove RPM, since it's unused and unmaintained
Benjamin Peterson [Wed, 18 Feb 2015 13:52:46 +0000 (08:52 -0500)]
remove RPM, since it's unused and unmaintained

10 years agoIssue #23474: Enhanced locale testing.
Serhiy Storchaka [Wed, 18 Feb 2015 06:04:37 +0000 (08:04 +0200)]
Issue #23474: Enhanced locale testing.

10 years agodocument the requestline and close_connection attributes, use real booleans, and...
Benjamin Peterson [Wed, 18 Feb 2015 02:11:10 +0000 (21:11 -0500)]
document the requestline and close_connection attributes, use real booleans, and add tests (closes #23410)

Patch by Martin Panter.

10 years agoasyncio: Fix warning in test_close_kill_running()
Victor Stinner [Tue, 17 Feb 2015 22:36:02 +0000 (23:36 +0100)]
asyncio: Fix warning in test_close_kill_running()

Read process exit status to avoid the "Caught subprocess termination from
unknown pid" message.

10 years agoasyncio, Tulip issue 220: Update doc of asyncio.Queue, add join and task_done
Victor Stinner [Tue, 17 Feb 2015 22:09:52 +0000 (23:09 +0100)]
asyncio, Tulip issue 220: Update doc of asyncio.Queue, add join and task_done
methods

10 years agoasyncio doc: fix the sphinx extension for coroutine commands
Victor Stinner [Tue, 17 Feb 2015 22:08:35 +0000 (23:08 +0100)]
asyncio doc: fix the sphinx extension for coroutine commands

10 years agoIssue #23475, asyncio: Fix test_close_kill_running()
Victor Stinner [Tue, 17 Feb 2015 21:54:11 +0000 (22:54 +0100)]
Issue #23475, asyncio: Fix test_close_kill_running()

Really kill the child process, don't mock completly the Popen.kill() method.

This change fix memory leaks and reference leaks.

10 years agoasyncio, Tulip issue 220: Merge JoinableQueue with Queue.
Victor Stinner [Tue, 17 Feb 2015 21:53:28 +0000 (22:53 +0100)]
asyncio, Tulip issue 220: Merge JoinableQueue with Queue.

Merge JoinableQueue with Queue. To more closely match the standard Queue,
asyncio.Queue has "join" and "task_done". JoinableQueue is deleted.

Docstring for Queue.join shouldn't mention threads.

Restore JoinableQueue as a deprecated alias for Queue. To more closely match
the standard Queue, asyncio.Queue has "join" and "task_done".  JoinableQueue
remains as a deprecated alias for Queue to avoid needlessly breaking too much
code that depended on it.

Patch written by A. Jesse Jiryu Davis <jesse@mongodb.com>.

10 years agoasyncio: BaseSubprocessTransport: repr() mentions when the child process is
Victor Stinner [Tue, 17 Feb 2015 21:50:33 +0000 (22:50 +0100)]
asyncio: BaseSubprocessTransport: repr() mentions when the child process is
running

10 years agoIssue #22883: Update PyInt to PyLong in C API example.
Serhiy Storchaka [Tue, 17 Feb 2015 08:18:44 +0000 (10:18 +0200)]
Issue #22883: Update PyInt to PyLong in C API example.

10 years agofix pydoc.apropos and pydoc.synopsis on modules with empty docstrings (#21548)
Benjamin Peterson [Tue, 17 Feb 2015 00:45:01 +0000 (19:45 -0500)]
fix pydoc.apropos and pydoc.synopsis on modules with empty docstrings (#21548)

Patch by Yuyang Guo and Berker Peksag.

10 years agoShoould be Py_MIN, not Py_MAX.
Serhiy Storchaka [Mon, 16 Feb 2015 18:54:03 +0000 (20:54 +0200)]
Shoould be Py_MIN, not Py_MAX.

10 years agoIssue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer
Serhiy Storchaka [Mon, 16 Feb 2015 11:28:22 +0000 (13:28 +0200)]
Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer
overflows.  Added few missed PyErr_NoMemory().

10 years agoIssue #17753: effective_ids unavailable on Windows.
Berker Peksag [Mon, 16 Feb 2015 02:36:18 +0000 (04:36 +0200)]
Issue #17753: effective_ids unavailable on Windows.

10 years agoFix typo in os.supports_effective_ids documentation.
Berker Peksag [Mon, 16 Feb 2015 01:36:10 +0000 (03:36 +0200)]
Fix typo in os.supports_effective_ids documentation.

10 years agoIssue #22885: Fixed arbitrary code execution vulnerability in the dbm.dumb
Serhiy Storchaka [Sun, 15 Feb 2015 22:30:43 +0000 (00:30 +0200)]
Issue #22885: Fixed arbitrary code execution vulnerability in the dbm.dumb
module.  Original patch by Claudiu Popa.

10 years agoIssue #23146: Fix mishandling of absolute Windows paths with forward slashes in pathlib.
Antoine Pitrou [Sun, 15 Feb 2015 17:03:59 +0000 (18:03 +0100)]
Issue #23146: Fix mishandling of absolute Windows paths with forward slashes in pathlib.

Detected and fixed by Serhiy.

10 years agoIssue #19681: Test the repr of partial with more than one keyword argument.
Serhiy Storchaka [Sun, 15 Feb 2015 14:20:47 +0000 (16:20 +0200)]
Issue #19681: Test the repr of partial with more than one keyword argument.

10 years agoUse pickled data compatible with Python 2 for testing protocols 0-2.
Serhiy Storchaka [Sun, 15 Feb 2015 12:10:03 +0000 (14:10 +0200)]
Use pickled data compatible with Python 2 for testing protocols 0-2.

10 years agoMerge heads
Serhiy Storchaka [Sun, 15 Feb 2015 12:02:15 +0000 (14:02 +0200)]
Merge heads

10 years agoUse os.devnull instead of hardcoded '/dev/null'.
Serhiy Storchaka [Sun, 15 Feb 2015 11:58:23 +0000 (13:58 +0200)]
Use os.devnull instead of hardcoded '/dev/null'.

10 years agoIssue #13637: Improve exception message of a2b_* functions.
Berker Peksag [Sat, 14 Feb 2015 22:31:00 +0000 (00:31 +0200)]
Issue #13637: Improve exception message of a2b_* functions.

Patch by Vajrasky Kok.

10 years agoIssue #13637: Remove outdated versionchanged directives.
Berker Peksag [Sat, 14 Feb 2015 22:05:42 +0000 (00:05 +0200)]
Issue #13637: Remove outdated versionchanged directives.

Patch by Martin Panter.

10 years agoIssue #17753: Skip test_zipfile tests which require write access to test
Serhiy Storchaka [Sat, 14 Feb 2015 21:04:35 +0000 (23:04 +0200)]
Issue #17753: Skip test_zipfile tests which require write access to test
and email.test.

10 years agoIssue #22844: Fized test_gdb failure on Debian Wheezy for Z.
Serhiy Storchaka [Sat, 14 Feb 2015 20:44:35 +0000 (22:44 +0200)]
Issue #22844: Fized test_gdb failure on Debian Wheezy for Z.
Patch by David Edelsohn.

10 years agoavoid reading unallocated memory when argc == 0 (closes #22633)
Benjamin Peterson [Sat, 14 Feb 2015 20:16:32 +0000 (15:16 -0500)]
avoid reading unallocated memory when argc == 0 (closes #22633)

10 years agoIssue #23418: Add missing entries to http.server.__all__.
Berker Peksag [Fri, 13 Feb 2015 18:48:15 +0000 (20:48 +0200)]
Issue #23418: Add missing entries to http.server.__all__.

Patch by Martin Panter.

10 years agoIssue #21849: Ported from 2.7 tests for non-ASCII data.
Serhiy Storchaka [Fri, 13 Feb 2015 13:13:33 +0000 (15:13 +0200)]
Issue #21849: Ported from 2.7 tests for non-ASCII data.

10 years agoasyncio doc: annotate coroutine on coroutine functions and methods
Victor Stinner [Thu, 12 Feb 2015 21:49:18 +0000 (22:49 +0100)]
asyncio doc: annotate coroutine on coroutine functions and methods

10 years agoIssue #23445: pydebug builds now use "gcc -Og" where possible, to make the resulting...
Antoine Pitrou [Wed, 11 Feb 2015 18:39:16 +0000 (19:39 +0100)]
Issue #23445: pydebug builds now use "gcc -Og" where possible, to make the resulting executable faster.

10 years agoFix typo: PyMem_Alloc => PyMem_Malloc
Victor Stinner [Wed, 11 Feb 2015 17:17:56 +0000 (18:17 +0100)]
Fix typo: PyMem_Alloc => PyMem_Malloc

10 years agoIssue #23433: Fix faulthandler._stack_overflow()
Victor Stinner [Wed, 11 Feb 2015 13:23:35 +0000 (14:23 +0100)]
Issue #23433: Fix faulthandler._stack_overflow()

Fix undefined behaviour: don't compare pointers. Use Py_uintptr_t type instead
of void*. It fixes test_faulthandler on Fedora 22 which now uses GCC 5.

10 years agoasyncio: BaseSubprocessTransport.close() doesn't try to kill the process if it
Victor Stinner [Tue, 10 Feb 2015 13:49:32 +0000 (14:49 +0100)]
asyncio: BaseSubprocessTransport.close() doesn't try to kill the process if it
already finished

10 years agoIssue #23421: Fixed compression in tarfile CLI. Patch by wdv4758h.
Serhiy Storchaka [Tue, 10 Feb 2015 06:45:53 +0000 (08:45 +0200)]
Issue #23421: Fixed compression in tarfile CLI.  Patch by wdv4758h.

10 years agomerge 3.3 (#23361)
Benjamin Peterson [Tue, 10 Feb 2015 01:58:52 +0000 (20:58 -0500)]
merge 3.3 (#23361)

10 years agoadd overflow checking (closes #23361)
Benjamin Peterson [Tue, 10 Feb 2015 01:58:12 +0000 (20:58 -0500)]
add overflow checking (closes #23361)

10 years agoAmend b8ebf381390f: find patchlevel.py in extensions.
Martin v. Löwis [Mon, 9 Feb 2015 07:07:12 +0000 (08:07 +0100)]
Amend b8ebf381390f: find patchlevel.py in extensions.

10 years agoIssue #17896: Update msi.py to new externals dir.
Martin v. Löwis [Mon, 9 Feb 2015 06:51:32 +0000 (07:51 +0100)]
Issue #17896: Update msi.py to new externals dir.

10 years agoPost-release updates for Python 3.4.3rc1.
Larry Hastings [Sun, 8 Feb 2015 22:04:36 +0000 (14:04 -0800)]
Post-release updates for Python 3.4.3rc1.

10 years agoAdded tag v3.4.3rc1 for changeset 69dd528ca625
Larry Hastings [Sun, 8 Feb 2015 00:04:55 +0000 (16:04 -0800)]
Added tag v3.4.3rc1 for changeset 69dd528ca625

10 years agoFix a copyright notice that still said 2014. v3.4.3rc1
Larry Hastings [Sun, 8 Feb 2015 00:04:22 +0000 (16:04 -0800)]
Fix a copyright notice that still said 2014.

10 years agoVersion bump for 3.4.3rc1.
Larry Hastings [Sun, 8 Feb 2015 00:00:45 +0000 (16:00 -0800)]
Version bump for 3.4.3rc1.

10 years agoUpdated pydoc topics data for 3.4.3rc1 release.
Larry Hastings [Sat, 7 Feb 2015 23:55:23 +0000 (15:55 -0800)]
Updated pydoc topics data for 3.4.3rc1 release.

10 years agoCorrected typo.
Vinay Sajip [Sat, 7 Feb 2015 10:56:06 +0000 (10:56 +0000)]
Corrected typo.

10 years agoMinor change to documentation on creating venvs.
Vinay Sajip [Sat, 7 Feb 2015 10:52:02 +0000 (10:52 +0000)]
Minor change to documentation on creating venvs.

10 years agoIssue #23399: pyvenv creates relative symlinks where possible.
Barry Warsaw [Fri, 6 Feb 2015 17:00:04 +0000 (12:00 -0500)]
Issue #23399: pyvenv creates relative symlinks where possible.

10 years agoFix definition mismatch for type_is_subtype_base_chain.
Steve Dower [Fri, 6 Feb 2015 16:50:23 +0000 (08:50 -0800)]
Fix definition mismatch for type_is_subtype_base_chain.

10 years agoIssue #23399: pyvenv creates relative symlinks where possible.
Barry Warsaw [Fri, 6 Feb 2015 16:23:58 +0000 (11:23 -0500)]
Issue #23399: pyvenv creates relative symlinks where possible.

10 years agoIssue #23392: Added tests for marshal C API that works with FILE*.
Serhiy Storchaka [Fri, 6 Feb 2015 06:58:56 +0000 (08:58 +0200)]
Issue #23392: Added tests for marshal C API that works with FILE*.

10 years agoIssue #23881: Only use entry-values with gdb 7.4 in tests.
Serhiy Storchaka [Fri, 6 Feb 2015 06:35:20 +0000 (08:35 +0200)]
Issue #23881: Only use entry-values with gdb 7.4 in tests.
Fixes a regression in issue #22765.  Patch by Vinson Lee.

10 years agoFix missing :ref: for idle in doc build.
Ned Deily [Fri, 6 Feb 2015 04:42:06 +0000 (15:42 +1100)]
Fix missing :ref: for idle in doc build.

10 years agofix many custom mro() edge cases and improve code quality (#22735)
Benjamin Peterson [Fri, 6 Feb 2015 03:29:14 +0000 (22:29 -0500)]
fix many custom mro() edge cases and improve code quality (#22735)

Patch by Eldar Abusalimov.

10 years agoIssue #23212: Update OS X installer build OpenSSL to 1.0.1l.
Ned Deily [Fri, 6 Feb 2015 03:13:30 +0000 (14:13 +1100)]
Issue #23212: Update OS X installer build OpenSSL to 1.0.1l.
(currently only used for builds with <= 10.5 deployment targets)

10 years agotest_multiprocessing: tolerate a delta of 30 ms because of bad clock resolution
Victor Stinner [Thu, 5 Feb 2015 13:25:05 +0000 (14:25 +0100)]
test_multiprocessing: tolerate a delta of 30 ms because of bad clock resolution
on Windows

10 years agoIssue #18982: Add tests for CLI of the calendar module.
Serhiy Storchaka [Thu, 5 Feb 2015 13:14:35 +0000 (15:14 +0200)]
Issue #18982: Add tests for CLI of the calendar module.

10 years agoasyncio: BaseEventLoop: rename _owner to _thread_id
Victor Stinner [Thu, 5 Feb 2015 10:45:33 +0000 (11:45 +0100)]
asyncio: BaseEventLoop: rename _owner to _thread_id

10 years agoIssue #23345: Prevent test_ssl failures with large OpenSSL patch level
Ned Deily [Thu, 5 Feb 2015 06:20:13 +0000 (17:20 +1100)]
Issue #23345: Prevent test_ssl failures with large OpenSSL patch level
values (like 0.9.8zc).

10 years agoUpdate pip to 6.0.8
Donald Stufft [Thu, 5 Feb 2015 03:00:17 +0000 (22:00 -0500)]
Update pip to 6.0.8

10 years agoMake the stdlib test suite helper test.script_helper._assert_python no longer
Gregory P. Smith [Thu, 5 Feb 2015 01:10:19 +0000 (17:10 -0800)]
Make the stdlib test suite helper test.script_helper._assert_python no longer
pass -I or -E to the child process by default when the environment is required
for the child process interpreter to function properly.

10 years agoasyncio doc: explain how to display ResourceWarning in the debug mode section
Victor Stinner [Wed, 4 Feb 2015 15:14:33 +0000 (16:14 +0100)]
asyncio doc: explain how to display ResourceWarning in the debug mode section

10 years agoasyncio: Only call _check_resolved_address() in debug mode
Victor Stinner [Wed, 4 Feb 2015 13:51:23 +0000 (14:51 +0100)]
asyncio: Only call _check_resolved_address() in debug mode

* _check_resolved_address() is implemented with getaddrinfo() which is slow
* If available, use socket.inet_pton() instead of socket.getaddrinfo(), because
  it is much faster

Microbenchmark (timeit) on Fedora 21 (Python 3.4, Linux 3.17, glibc 2.20) to
validate the IPV4 address "127.0.0.1" or the IPv6 address "::1":

* getaddrinfo() 10.4 usec per loop
* inet_pton(): 0.285 usec per loop

On glibc older than 2.14, getaddrinfo() always requests the list of all local
IP addresses to the kernel (using a NETLINK socket). getaddrinfo() has other
known issues, it's better to avoid it when it is possible.

10 years agoasyncio: BaseSelectorEventLoop uses directly the private _debug attribute
Victor Stinner [Wed, 4 Feb 2015 13:50:59 +0000 (14:50 +0100)]
asyncio: BaseSelectorEventLoop uses directly the private _debug attribute

Just try to be consistent: _debug was already used in some places, and always
used in BaseProactorEventLoop.