]> granicus.if.org Git - python/log
python
10 years agoIssue #21566: Make use of socket.listen() default backlog.
Charles-François Natali [Wed, 23 Jul 2014 18:28:13 +0000 (19:28 +0100)]
Issue #21566: Make use of socket.listen() default backlog.

10 years agoIssue #15275: Clean up and speed up the ntpath module.
Serhiy Storchaka [Wed, 23 Jul 2014 17:43:13 +0000 (20:43 +0300)]
Issue #15275: Clean up and speed up the ntpath module.

10 years agoCloses #22002: Merge with 3.4
Zachary Ware [Wed, 23 Jul 2014 17:06:47 +0000 (12:06 -0500)]
Closes #22002: Merge with 3.4

10 years agoIssue #22002: Make full use of test discovery in test sub-packages.
Zachary Ware [Wed, 23 Jul 2014 17:00:29 +0000 (12:00 -0500)]
Issue #22002: Make full use of test discovery in test sub-packages.

Adds `load_package_tests` function to test.support, uses it in test_asyncio,
test_email, test_json, test_tools, test_importlib and all test_importlib
sub-packages to implement test discovery.

10 years ago(Merge 3.4) asyncio: sync with Tulip
Victor Stinner [Wed, 23 Jul 2014 16:24:12 +0000 (18:24 +0200)]
(Merge 3.4) asyncio: sync with Tulip

* Tulip issue 194: Don't use sys.getrefcount() in unit tests
* signal.set_wakeup_fd() can now raise an OSError on Python 3.5

10 years agoasyncio: sync with Tulip
Victor Stinner [Wed, 23 Jul 2014 16:21:45 +0000 (18:21 +0200)]
asyncio: sync with Tulip

* Tulip issue 194: Don't use sys.getrefcount() in unit tests
* signal.set_wakeup_fd() can now raise an OSError on Python 3.5

10 years agoIssue #21888: plistlib's load() and loads() now work if the fmt parameter is
Serhiy Storchaka [Wed, 23 Jul 2014 15:50:19 +0000 (18:50 +0300)]
Issue #21888: plistlib's load() and loads() now work if the fmt parameter is
specified.

10 years agoIssue #21888: plistlib's load() and loads() now work if the fmt parameter is
Serhiy Storchaka [Wed, 23 Jul 2014 15:49:31 +0000 (18:49 +0300)]
Issue #21888: plistlib's load() and loads() now work if the fmt parameter is
specified.

10 years agoCorrect issue #21044 patch author.
Serhiy Storchaka [Wed, 23 Jul 2014 15:42:09 +0000 (18:42 +0300)]
Correct issue #21044 patch author.

10 years agoCorrect issue #21044 patch author.
Serhiy Storchaka [Wed, 23 Jul 2014 15:41:21 +0000 (18:41 +0300)]
Correct issue #21044 patch author.

10 years agoMerge 3.4
Andrew Svetlov [Wed, 23 Jul 2014 08:27:49 +0000 (11:27 +0300)]
Merge 3.4

10 years agoFix grammar
Andrew Svetlov [Wed, 23 Jul 2014 08:27:17 +0000 (11:27 +0300)]
Fix grammar

10 years agoIssue #21901: Cap the maximum number of file descriptors to use for the test.
Charles-François Natali [Tue, 22 Jul 2014 20:29:52 +0000 (21:29 +0100)]
Issue #21901: Cap the maximum number of file descriptors to use for the test.

10 years agoIssue #21901: Cap the maximum number of file descriptors to use for the test.
Charles-François Natali [Tue, 22 Jul 2014 20:25:03 +0000 (21:25 +0100)]
Issue #21901: Cap the maximum number of file descriptors to use for the test.

10 years agoIssue #22032: __qualname__ instead of __name__ is now always used to format
Serhiy Storchaka [Tue, 22 Jul 2014 12:00:37 +0000 (15:00 +0300)]
Issue #22032: __qualname__ instead of __name__ is now always used to format
fully qualified class names of Python implemented classes.

10 years ago(Merge 3.4) asyncio, tulip issue 193: Convert StreamWriter.drain() to a classic
Victor Stinner [Tue, 22 Jul 2014 10:03:54 +0000 (12:03 +0200)]
(Merge 3.4) asyncio, tulip issue 193: Convert StreamWriter.drain() to a classic
coroutine

Replace also _make_drain_waiter() function with a classic _drain_helper()
coroutine.

10 years agoasyncio, tulip issue 193: Convert StreamWriter.drain() to a classic coroutine
Victor Stinner [Tue, 22 Jul 2014 10:03:40 +0000 (12:03 +0200)]
asyncio, tulip issue 193: Convert StreamWriter.drain() to a classic coroutine

Replace also _make_drain_waiter() function with a classic _drain_helper()
coroutine.

10 years agoIssue #22031: Reprs now always use hexadecimal format with the "0x" prefix
Serhiy Storchaka [Tue, 22 Jul 2014 09:14:52 +0000 (12:14 +0300)]
Issue #22031: Reprs now always use hexadecimal format with the "0x" prefix
when contain an id in form " at 0x...".

10 years agoFixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
Serhiy Storchaka [Tue, 22 Jul 2014 08:10:37 +0000 (11:10 +0300)]
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.

10 years agoFixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
Serhiy Storchaka [Tue, 22 Jul 2014 08:09:36 +0000 (11:09 +0300)]
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.

10 years agoNull merge
Serhiy Storchaka [Tue, 22 Jul 2014 08:03:28 +0000 (11:03 +0300)]
Null merge

10 years agoMerge heads
Serhiy Storchaka [Tue, 22 Jul 2014 08:03:16 +0000 (11:03 +0300)]
Merge heads

10 years agoMerge heads
Serhiy Storchaka [Tue, 22 Jul 2014 08:02:56 +0000 (11:02 +0300)]
Merge heads

10 years agoIssue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
Serhiy Storchaka [Tue, 22 Jul 2014 07:28:21 +0000 (10:28 +0300)]
Issue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
now display special message when and only when there are failures.

10 years agoIssue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
Serhiy Storchaka [Tue, 22 Jul 2014 07:24:25 +0000 (10:24 +0300)]
Issue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
now display special message when and only when there are failures.

10 years agoMerge 3.4
Senthil Kumaran [Tue, 22 Jul 2014 07:16:18 +0000 (00:16 -0700)]
Merge 3.4

Fix localhost checking in FileHandler. Raised in #21970.

10 years agoFix localhost checking in FileHandler. Raised in #21970.
Senthil Kumaran [Tue, 22 Jul 2014 07:15:20 +0000 (00:15 -0700)]
Fix localhost checking in FileHandler. Raised in #21970.

10 years agoIssue #21976: Fix test_ssl to accept LibreSSL version strings.
Antoine Pitrou [Mon, 21 Jul 2014 22:37:36 +0000 (18:37 -0400)]
Issue #21976: Fix test_ssl to accept LibreSSL version strings.
Thanks to William Orr.

10 years agoIssue #21976: Fix test_ssl to accept LibreSSL version strings.
Antoine Pitrou [Mon, 21 Jul 2014 22:35:01 +0000 (18:35 -0400)]
Issue #21976: Fix test_ssl to accept LibreSSL version strings.
Thanks to William Orr.

10 years ago(Merge 3.4) Issue #19629: Add missing "import stat"
Victor Stinner [Mon, 21 Jul 2014 19:40:55 +0000 (21:40 +0200)]
(Merge 3.4) Issue #19629: Add missing "import stat"

Sort also imports in support/__init__.py

10 years agoIssue #19629: Add missing "import stat"
Victor Stinner [Mon, 21 Jul 2014 19:40:19 +0000 (21:40 +0200)]
Issue #19629: Add missing "import stat"

Sort also imports in support/__init__.py

10 years agoMerge Python 3.4
Victor Stinner [Mon, 21 Jul 2014 17:20:06 +0000 (19:20 +0200)]
Merge Python 3.4

* Issue #19811, #22022: test_pathlib uses support.rmtree() instead of
  shutil.rmtree() to remove the temporary directory.

* Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a
  directory, not os.path.isdir()

10 years agoIssue #19811, #22022: test_pathlib uses support.rmtree() instead of
Victor Stinner [Mon, 21 Jul 2014 17:19:05 +0000 (19:19 +0200)]
Issue #19811, #22022: test_pathlib uses support.rmtree() instead of
shutil.rmtree() to remove the temporary directory.

10 years agoIssue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a
Victor Stinner [Mon, 21 Jul 2014 17:18:12 +0000 (19:18 +0200)]
Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a
directory, not os.path.isdir()

10 years agoIssue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows
Victor Stinner [Mon, 21 Jul 2014 15:17:28 +0000 (17:17 +0200)]
Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows

10 years agoIssue #22018: signal.set_wakeup_fd() now raises an OSError instead of a
Victor Stinner [Mon, 21 Jul 2014 14:28:54 +0000 (16:28 +0200)]
Issue #22018: signal.set_wakeup_fd() now raises an OSError instead of a
ValueError on fstat() failure.

10 years ago(Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutine
Victor Stinner [Mon, 21 Jul 2014 14:23:51 +0000 (16:23 +0200)]
(Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutine

10 years agoasyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutine
Victor Stinner [Mon, 21 Jul 2014 14:23:33 +0000 (16:23 +0200)]
asyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutine

10 years agoIssue #22018: Add _testcapi.raise_signal()
Victor Stinner [Mon, 21 Jul 2014 10:30:22 +0000 (12:30 +0200)]
Issue #22018: Add _testcapi.raise_signal()

- Use _testcapi.raise_signal() in test_signal
- close also os.pipe() file descriptors in some test_signal tests where they
  were not closed properly
- Remove faulthandler._sigill() and faulthandler._sigbus(): reuse
  _testcapi.raise_signal() in test_faulthandler

10 years agomerge
Raymond Hettinger [Mon, 21 Jul 2014 04:31:35 +0000 (21:31 -0700)]
merge

10 years agoIssue #21868: Prevent turtle crash due to invalid undo buffer size.
Raymond Hettinger [Mon, 21 Jul 2014 04:30:32 +0000 (21:30 -0700)]
Issue #21868: Prevent turtle crash due to invalid undo buffer size.

10 years agomerge 3.4
Benjamin Peterson [Sun, 20 Jul 2014 20:06:19 +0000 (13:06 -0700)]
merge 3.4

10 years agoadd #
Benjamin Peterson [Sun, 20 Jul 2014 20:05:01 +0000 (13:05 -0700)]
add #

10 years agomerge 3.4 (#17210)
Benjamin Peterson [Sat, 19 Jul 2014 23:35:08 +0000 (16:35 -0700)]
merge 3.4 (#17210)

10 years agoargs doesn't need to be a tuple (closes #17210)
Benjamin Peterson [Sat, 19 Jul 2014 23:34:33 +0000 (16:34 -0700)]
args doesn't need to be a tuple (closes #17210)

10 years agoIssue #22006: Merge from 3.4.
Mark Dickinson [Sat, 19 Jul 2014 20:45:24 +0000 (21:45 +0100)]
Issue #22006: Merge from 3.4.

10 years agoIssue #22006: Remove outdated _thread caveat. Thanks Dan O'Reilly for the report.
Mark Dickinson [Sat, 19 Jul 2014 20:45:06 +0000 (21:45 +0100)]
Issue #22006: Remove outdated _thread caveat.  Thanks Dan O'Reilly for the report.

10 years agoCloses #22004: Merge with 3.4
Zachary Ware [Fri, 18 Jul 2014 14:14:55 +0000 (09:14 -0500)]
Closes #22004: Merge with 3.4

10 years agoIssue #22004: Correct an argument name.
Zachary Ware [Fri, 18 Jul 2014 14:11:48 +0000 (09:11 -0500)]
Issue #22004: Correct an argument name.

10 years ago(Merge 3.4) Fix asyncio.__all__: export also unix_events and windows_events
Victor Stinner [Fri, 18 Jul 2014 10:47:14 +0000 (12:47 +0200)]
(Merge 3.4) Fix asyncio.__all__: export also unix_events and windows_events
symbols

For example, on Windows, it was not possible to get ProactorEventLoop or
DefaultEventLoopPolicy using "from asyncio import *".

10 years agoFix asyncio.__all__: export also unix_events and windows_events symbols
Victor Stinner [Fri, 18 Jul 2014 10:44:25 +0000 (12:44 +0200)]
Fix asyncio.__all__: export also unix_events and windows_events symbols

For example, on Windows, it was not possible to get ProactorEventLoop or
DefaultEventLoopPolicy using "from asyncio import *".

10 years ago(Merge 3.4) Issue #21247: Fix a race condition in test_send_signal() of asyncio
Victor Stinner [Thu, 17 Jul 2014 21:49:40 +0000 (23:49 +0200)]
(Merge 3.4) Issue #21247: Fix a race condition in test_send_signal() of asyncio

Add a basic synchronization mechanism to wait until the child process is ready
before sending it a signal.

10 years agoIssue #21247: Fix a race condition in test_send_signal() of asyncio
Victor Stinner [Thu, 17 Jul 2014 21:49:11 +0000 (23:49 +0200)]
Issue #21247: Fix a race condition in test_send_signal() of asyncio

Add a basic synchronization mechanism to wait until the child process is ready
before sending it a signal.

10 years ago(Merge 3.4) Python issue #21645, Tulip issue 192: Rewrite signal handling
Victor Stinner [Thu, 17 Jul 2014 20:45:42 +0000 (22:45 +0200)]
(Merge 3.4) Python issue #21645, Tulip issue 192: Rewrite signal handling

Since Python 3.3, the C signal handler writes the signal number into the wakeup
file descriptor and then schedules the Python call using Py_AddPendingCall().

asyncio uses the wakeup file descriptor to wake up the event loop, and relies
on Py_AddPendingCall() to schedule the final callback with call_soon().

If the C signal handler is called in a thread different than the thread of the
event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In
this case, the event loop has nothing to do and go to sleep again.
Py_AddPendingCall() is called while the event loop is sleeping again and so the
final callback is not scheduled immediatly.

This patch changes how asyncio handles signals. Instead of relying on
Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on
the wakeup file descriptor. asyncio reads signal numbers from the wakeup file
descriptor to call its signal handler.

10 years agoPython issue #21645, Tulip issue 192: Rewrite signal handling
Victor Stinner [Thu, 17 Jul 2014 20:43:40 +0000 (22:43 +0200)]
Python issue #21645, Tulip issue 192: Rewrite signal handling

Since Python 3.3, the C signal handler writes the signal number into the wakeup
file descriptor and then schedules the Python call using Py_AddPendingCall().

asyncio uses the wakeup file descriptor to wake up the event loop, and relies
on Py_AddPendingCall() to schedule the final callback with call_soon().

If the C signal handler is called in a thread different than the thread of the
event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In
this case, the event loop has nothing to do and go to sleep again.
Py_AddPendingCall() is called while the event loop is sleeping again and so the
final callback is not scheduled immediatly.

This patch changes how asyncio handles signals. Instead of relying on
Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on
the wakeup file descriptor. asyncio reads signal numbers from the wakeup file
descriptor to call its signal handler.

10 years ago(Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() can also raise
Victor Stinner [Thu, 17 Jul 2014 12:01:39 +0000 (14:01 +0200)]
(Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() can also raise
ConnectionResetError

10 years agoasyncio: Fix test_stdin_broken_pipe(), drain() can also raise
Victor Stinner [Thu, 17 Jul 2014 12:01:14 +0000 (14:01 +0200)]
asyncio: Fix test_stdin_broken_pipe(), drain() can also raise
ConnectionResetError

10 years ago(Merge 3.4) asyncio, tulip issue 190: Process.communicate() now ignores
Victor Stinner [Thu, 17 Jul 2014 11:12:20 +0000 (13:12 +0200)]
(Merge 3.4) asyncio, tulip issue 190: Process.communicate() now ignores
ConnectionResetError too

10 years agoasyncio, tulip issue 190: Process.communicate() now ignores
Victor Stinner [Thu, 17 Jul 2014 11:12:03 +0000 (13:12 +0200)]
asyncio, tulip issue 190: Process.communicate() now ignores
ConnectionResetError too

10 years ago(Merge 3.4) asyncio, tulip issue 190: Process.communicate() must ignore
Victor Stinner [Thu, 17 Jul 2014 10:48:33 +0000 (12:48 +0200)]
(Merge 3.4) asyncio, tulip issue 190: Process.communicate() must ignore
BrokenPipeError

If you want to handle the BrokenPipeError, you can easily reimplement
communicate().

Add also a unit test to ensure that stdin.write() + stdin.drain() raises
BrokenPipeError.

10 years agoasyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeError
Victor Stinner [Thu, 17 Jul 2014 10:25:27 +0000 (12:25 +0200)]
asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeError

If you want to handle the BrokenPipeError, you can easily reimplement
communicate().

Add also a unit test to ensure that stdin.write() + stdin.drain() raises
BrokenPipeError.

11 years agoIssue #21994: Merge with 3.4.
Berker Peksag [Thu, 17 Jul 2014 02:02:02 +0000 (05:02 +0300)]
Issue #21994: Merge with 3.4.

11 years agoIssue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.
Berker Peksag [Thu, 17 Jul 2014 02:00:36 +0000 (05:00 +0300)]
Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.

11 years agoIssue 21044: tarfile.open() now handles fileobj with an integer 'name'
Serhiy Storchaka [Wed, 16 Jul 2014 21:00:26 +0000 (00:00 +0300)]
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
attribute.  Based on patch by Martin Panter.

11 years agoIssue 21044: tarfile.open() now handles fileobj with an integer 'name'
Serhiy Storchaka [Wed, 16 Jul 2014 20:58:58 +0000 (23:58 +0300)]
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
attribute.  Based on patch by Martin Panter.

11 years agoMerge with 3.4
Zachary Ware [Wed, 16 Jul 2014 19:49:05 +0000 (14:49 -0500)]
Merge with 3.4

11 years agoFix a minor typo in the turtle docs. Found by Brandon Passmore on docs@.
Zachary Ware [Wed, 16 Jul 2014 19:48:48 +0000 (14:48 -0500)]
Fix a minor typo in the turtle docs.  Found by Brandon Passmore on docs@.

11 years agoIssue #21918: Convert test_tools.py to a sub-package of test.
Zachary Ware [Wed, 16 Jul 2014 19:31:51 +0000 (14:31 -0500)]
Issue #21918: Convert test_tools.py to a sub-package of test.

Merge with 3.4.

11 years agoIssue #21918: Convert test_tools.py to a sub-package of test.
Zachary Ware [Wed, 16 Jul 2014 19:26:09 +0000 (14:26 -0500)]
Issue #21918: Convert test_tools.py to a sub-package of test.

11 years agoMerge removal of Tools/scripts/pydocgui.pyw
Zachary Ware [Wed, 16 Jul 2014 18:30:27 +0000 (13:30 -0500)]
Merge removal of Tools/scripts/pydocgui.pyw

11 years agoRemove Tools/scripts/pydocgui.pyw.
Zachary Ware [Wed, 16 Jul 2014 18:24:55 +0000 (13:24 -0500)]
Remove Tools/scripts/pydocgui.pyw.

pydoc.gui was removed over 3 years ago (#10818), this script has been
utterly bereft of worth since then.

11 years ago(Merge 3.4) asyncio: test_as_completed(): disable "slow callback" warning
Victor Stinner [Wed, 16 Jul 2014 16:54:25 +0000 (18:54 +0200)]
(Merge 3.4) asyncio: test_as_completed(): disable "slow callback" warning

11 years agoasyncio: test_as_completed(): disable "slow callback" warning
Victor Stinner [Wed, 16 Jul 2014 16:54:13 +0000 (18:54 +0200)]
asyncio: test_as_completed(): disable "slow callback" warning

11 years ago(Merge 3.4) Issue #21163: Fix "destroy pending task" warning in test_wait_errors()
Victor Stinner [Wed, 16 Jul 2014 16:50:54 +0000 (18:50 +0200)]
(Merge 3.4) Issue #21163: Fix "destroy pending task" warning in test_wait_errors()

11 years agoIssue #21163: Fix "destroy pending task" warning in test_wait_errors()
Victor Stinner [Wed, 16 Jul 2014 16:50:39 +0000 (18:50 +0200)]
Issue #21163: Fix "destroy pending task" warning in test_wait_errors()

11 years ago(Merge 3.4) Issue #21163, asyncio: Ignore "destroy pending task" warnings for
Victor Stinner [Wed, 16 Jul 2014 16:36:58 +0000 (18:36 +0200)]
(Merge 3.4) Issue #21163, asyncio: Ignore "destroy pending task" warnings for
private tasks in gather().

11 years agoIssue #21163, asyncio: Ignore "destroy pending task" warnings for private tasks
Victor Stinner [Wed, 16 Jul 2014 16:36:24 +0000 (18:36 +0200)]
Issue #21163, asyncio: Ignore "destroy pending task" warnings for private tasks
in gather().

11 years ago(Merge 3.4) asyncio: test_selector_events: remove duplicate call to
Victor Stinner [Wed, 16 Jul 2014 16:03:26 +0000 (18:03 +0200)]
(Merge 3.4) asyncio: test_selector_events: remove duplicate call to
_on_handshake() method

The _SelectorSslTransport constructor already calls it.

11 years agoasyncio: test_selector_events: remove duplicate call to _on_handshake() method
Victor Stinner [Wed, 16 Jul 2014 16:02:10 +0000 (18:02 +0200)]
asyncio: test_selector_events: remove duplicate call to _on_handshake() method

The _SelectorSslTransport constructor already calls it.

11 years agoFixed recently added Misc/NEWS entry which was moved during merge
Tal Einat [Wed, 16 Jul 2014 13:52:20 +0000 (16:52 +0300)]
Fixed recently added Misc/NEWS entry which was moved during merge

11 years agoIssue #21765: Add support for non-ascii identifiers to HyperParser
Tal Einat [Wed, 16 Jul 2014 13:41:14 +0000 (16:41 +0300)]
Issue #21765: Add support for non-ascii identifiers to HyperParser

11 years agoIssue #21765: Add support for non-ascii identifiers to HyperParser
Tal Einat [Wed, 16 Jul 2014 13:33:36 +0000 (16:33 +0300)]
Issue #21765: Add support for non-ascii identifiers to HyperParser

11 years agoIssue #21645, #21985: Remove debug code
Victor Stinner [Wed, 16 Jul 2014 08:24:27 +0000 (10:24 +0200)]
Issue #21645, #21985: Remove debug code

11 years agoFix getargspec() doctring (varkw -> keywords).
Guido van Rossum [Tue, 15 Jul 2014 19:29:11 +0000 (12:29 -0700)]
Fix getargspec() doctring (varkw -> keywords).

11 years agoIssue #18974: Tools/scripts/diff.py now uses argparse instead of optparse.
Serhiy Storchaka [Tue, 15 Jul 2014 10:23:58 +0000 (13:23 +0300)]
Issue #18974: Tools/scripts/diff.py now uses argparse instead of optparse.

11 years agoMerge with 3.4
Terry Jan Reedy [Tue, 15 Jul 2014 03:07:47 +0000 (23:07 -0400)]
Merge with 3.4

11 years agoIssue #21982: Add minimal unittest for configDialog with 46% coverage.
Terry Jan Reedy [Tue, 15 Jul 2014 03:07:32 +0000 (23:07 -0400)]
Issue #21982: Add minimal unittest for configDialog with 46% coverage.
Fix regression that this test would have caught.

11 years agoMerge with Python 3.4
Victor Stinner [Mon, 14 Jul 2014 20:26:57 +0000 (22:26 +0200)]
Merge with Python 3.4

11 years agoasyncio tests: make quiet the logs of SSL handshake failures when running tests
Victor Stinner [Mon, 14 Jul 2014 20:26:34 +0000 (22:26 +0200)]
asyncio tests: make quiet the logs of SSL handshake failures when running tests
in debug mode

11 years agoIssue #21645: test_asyncio, log debug trace into sys.__stderr__, not in
Victor Stinner [Mon, 14 Jul 2014 20:04:18 +0000 (22:04 +0200)]
Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not in
sys.stderr, to get output even if tests are run with the -j command line
option.

11 years agoIssue #21645: Add debug code to analyze a failure on FreeBSD 9
Victor Stinner [Mon, 14 Jul 2014 19:29:23 +0000 (21:29 +0200)]
Issue #21645: Add debug code to analyze a failure on FreeBSD 9

11 years agoMerge with Python 3.4
Victor Stinner [Mon, 14 Jul 2014 16:36:24 +0000 (18:36 +0200)]
Merge with Python 3.4

11 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 14 Jul 2014 16:33:40 +0000 (18:33 +0200)]
asyncio: sync with Tulip

* Tulip issue #184: Log subprocess events in debug mode

  - Log stdin, stdout and stderr transports and protocols
  - Log process identifier (pid)
  - Log connection of pipes
  - Log process exit
  - Log Process.communicate() tasks: feed stdin, read stdout and stderr
  - Add __repr__() method to many classes related to subprocesses

* Add BaseSubprocessTransport._pid attribute. Store the pid so it is still
  accessible after the process exited. It's more convinient for debug.

* create_connection(): add the socket in the "connected to" debug log

* Clean up some docstrings and comments. Remove unused unimplemented
  _read_from_self().

11 years agoCall PyErr_NoMemory() when PyMem_Malloc() fails.
Serhiy Storchaka [Mon, 14 Jul 2014 09:20:49 +0000 (12:20 +0300)]
Call PyErr_NoMemory() when PyMem_Malloc() fails.

11 years agoCall PyErr_NoMemory() when PyMem_Malloc() fails.
Serhiy Storchaka [Mon, 14 Jul 2014 09:20:15 +0000 (12:20 +0300)]
Call PyErr_NoMemory() when PyMem_Malloc() fails.

11 years agomerge
Raymond Hettinger [Mon, 14 Jul 2014 08:52:44 +0000 (01:52 -0700)]
merge

11 years agoIssue 21977: Minor improvements to the regexes in the tokenizer example.
Raymond Hettinger [Mon, 14 Jul 2014 08:52:00 +0000 (01:52 -0700)]
Issue 21977:  Minor improvements to the regexes in the tokenizer example.

11 years agoMerge with 3.4
Terry Jan Reedy [Sun, 13 Jul 2014 21:27:41 +0000 (17:27 -0400)]
Merge with 3.4

11 years agoIssue #18592: Method return signature changes made to SearchDialogBase for
Terry Jan Reedy [Sun, 13 Jul 2014 21:27:26 +0000 (17:27 -0400)]
Issue #18592: Method return signature changes made to SearchDialogBase for
test purposes are now reflected in GrepDialog and ReplaceDialog.  Docstrings
are improved. Initial patch by Saimadhav Heblikar

11 years agoIssue #21323: Fix http.server to again handle scripts in CGI subdirectories,
Ned Deily [Sun, 13 Jul 2014 05:20:15 +0000 (22:20 -0700)]
Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.