summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22018: Hum, set_wakeup_fd() still raises ValueError on WindowsVictor Stinner2014-07-211-1/+2
|
* Issue #22018: signal.set_wakeup_fd() now raises an OSError instead of aVictor Stinner2014-07-213-6/+17
| | | | ValueError on fstat() failure.
* (Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutineVictor Stinner2014-07-211-2/+7
|\
| * asyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutineVictor Stinner2014-07-211-2/+7
| |
* | Issue #22018: Add _testcapi.raise_signal()Victor Stinner2014-07-214-53/+85
| | | | | | | | | | | | | | | | - 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
* | mergeRaymond Hettinger2014-07-201-1/+1
|\ \ | |/
| * Issue #21868: Prevent turtle crash due to invalid undo buffer size.Raymond Hettinger2014-07-202-1/+3
| |
* | merge 3.4Benjamin Peterson2014-07-201-1/+1
|\ \ | |/
| * add #Benjamin Peterson2014-07-201-1/+1
| |
* | merge 3.4 (#17210)Benjamin Peterson2014-07-191-1/+1
|\ \ | |/
| * args doesn't need to be a tuple (closes #17210)Benjamin Peterson2014-07-191-1/+1
| |
* | Issue #22006: Merge from 3.4.Mark Dickinson2014-07-191-4/+0
|\ \ | |/
| * Issue #22006: Remove outdated _thread caveat. Thanks Dan O'Reilly for the ↵Mark Dickinson2014-07-191-4/+0
| | | | | | | | report.
* | Closes #22004: Merge with 3.4Zachary Ware2014-07-181-1/+1
|\ \ | |/
| * Issue #22004: Correct an argument name.Zachary Ware2014-07-181-1/+1
| |
* | (Merge 3.4) Fix asyncio.__all__: export also unix_events and windows_eventsVictor Stinner2014-07-181-6/+7
|\ \ | |/ | | | | | | | | | | symbols For example, on Windows, it was not possible to get ProactorEventLoop or DefaultEventLoopPolicy using "from asyncio import *".
| * Fix asyncio.__all__: export also unix_events and windows_events symbolsVictor Stinner2014-07-181-6/+7
| | | | | | | | | | For example, on Windows, it was not possible to get ProactorEventLoop or DefaultEventLoopPolicy using "from asyncio import *".
* | (Merge 3.4) Issue #21247: Fix a race condition in test_send_signal() of asyncioVictor Stinner2014-07-171-4/+15
|\ \ | |/ | | | | | | Add a basic synchronization mechanism to wait until the child process is ready before sending it a signal.
| * Issue #21247: Fix a race condition in test_send_signal() of asyncioVictor Stinner2014-07-171-4/+15
| | | | | | | | | | Add a basic synchronization mechanism to wait until the child process is ready before sending it a signal.
* | (Merge 3.4) Python issue #21645, Tulip issue 192: Rewrite signal handlingVictor Stinner2014-07-175-7/+27
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Python issue #21645, Tulip issue 192: Rewrite signal handlingVictor Stinner2014-07-175-7/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | (Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() can also raiseVictor Stinner2014-07-171-2/+2
|\ \ | |/ | | | | ConnectionResetError
| * asyncio: Fix test_stdin_broken_pipe(), drain() can also raiseVictor Stinner2014-07-171-2/+2
| | | | | | | | ConnectionResetError
* | (Merge 3.4) asyncio, tulip issue 190: Process.communicate() now ignoresVictor Stinner2014-07-172-9/+12
|\ \ | |/ | | | | ConnectionResetError too
| * asyncio, tulip issue 190: Process.communicate() now ignoresVictor Stinner2014-07-172-9/+12
| | | | | | | | ConnectionResetError too
* | (Merge 3.4) asyncio, tulip issue 190: Process.communicate() must ignoreVictor Stinner2014-07-173-8/+32
|\ \ | |/ | | | | | | | | | | | | | | | | 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.
| * asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeErrorVictor Stinner2014-07-173-8/+32
| | | | | | | | | | | | | | | | 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.
* | Issue #21994: Merge with 3.4.Berker Peksag2014-07-171-2/+2
|\ \ | |/
| * Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.Berker Peksag2014-07-171-2/+2
| |
* | Issue 21044: tarfile.open() now handles fileobj with an integer 'name'Serhiy Storchaka2014-07-174-7/+36
|\ \ | |/ | | | | attribute. Based on patch by Martin Panter.
| * Issue 21044: tarfile.open() now handles fileobj with an integer 'name'Serhiy Storchaka2014-07-164-7/+36
| | | | | | | | attribute. Based on patch by Martin Panter.
* | Merge with 3.4Zachary Ware2014-07-161-1/+1
|\ \ | |/
| * Fix a minor typo in the turtle docs. Found by Brandon Passmore on docs@.Zachary Ware2014-07-161-1/+1
| |
* | Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-1610-195/+283
|\ \ | |/ | | | | Merge with 3.4.
| * Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-1610-195/+283
| |
* | Merge removal of Tools/scripts/pydocgui.pywZachary Ware2014-07-161-7/+0
|\ \ | |/
| * Remove Tools/scripts/pydocgui.pyw.Zachary Ware2014-07-161-7/+0
| | | | | | | | | | pydoc.gui was removed over 3 years ago (#10818), this script has been utterly bereft of worth since then.
* | (Merge 3.4) asyncio: test_as_completed(): disable "slow callback" warningVictor Stinner2014-07-161-0/+2
|\ \ | |/
| * asyncio: test_as_completed(): disable "slow callback" warningVictor Stinner2014-07-161-0/+2
| |
* | (Merge 3.4) Issue #21163: Fix "destroy pending task" warning in ↵Victor Stinner2014-07-162-6/+9
|\ \ | |/ | | | | test_wait_errors()
| * Issue #21163: Fix "destroy pending task" warning in test_wait_errors()Victor Stinner2014-07-162-6/+9
| |
* | (Merge 3.4) Issue #21163, asyncio: Ignore "destroy pending task" warnings forVictor Stinner2014-07-161-11/+23
|\ \ | |/ | | | | private tasks in gather().
| * Issue #21163, asyncio: Ignore "destroy pending task" warnings for private tasksVictor Stinner2014-07-161-11/+23
| | | | | | | | in gather().
* | (Merge 3.4) asyncio: test_selector_events: remove duplicate call toVictor Stinner2014-07-161-3/+3
|\ \ | |/ | | | | | | | | _on_handshake() method The _SelectorSslTransport constructor already calls it.
| * asyncio: test_selector_events: remove duplicate call to _on_handshake() methodVictor Stinner2014-07-161-3/+3
| | | | | | | | The _SelectorSslTransport constructor already calls it.
* | Fixed recently added Misc/NEWS entry which was moved during mergeTal Einat2014-07-161-2/+2
| |
* | Issue #21765: Add support for non-ascii identifiers to HyperParserTal Einat2014-07-164-44/+213
|\ \ | |/
| * Issue #21765: Add support for non-ascii identifiers to HyperParserTal Einat2014-07-164-44/+213
| |
* | Issue #21645, #21985: Remove debug codeVictor Stinner2014-07-161-33/+17
| |
* | Fix getargspec() doctring (varkw -> keywords).Guido van Rossum2014-07-151-4/+3
| |