- 21 Jul, 2014 6 commits
-
-
Victor Stinner authored
ValueError on fstat() failure.
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
- 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
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 20 Jul, 2014 2 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
- 19 Jul, 2014 4 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Mark Dickinson authored
-
Mark Dickinson authored
-
- 18 Jul, 2014 4 commits
-
-
Zachary Ware authored
-
Zachary Ware authored
-
Victor Stinner authored
symbols For example, on Windows, it was not possible to get ProactorEventLoop or DefaultEventLoopPolicy using "from asyncio import *".
-
Victor Stinner authored
For example, on Windows, it was not possible to get ProactorEventLoop or DefaultEventLoopPolicy using "from asyncio import *".
-
- 17 Jul, 2014 12 commits
-
-
Victor Stinner authored
Add a basic synchronization mechanism to wait until the child process is ready before sending it a signal.
-
Victor Stinner authored
Add a basic synchronization mechanism to wait until the child process is ready before sending it a signal.
-
Victor Stinner authored
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.
-
Victor Stinner authored
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.
-
Victor Stinner authored
ConnectionResetError
-
Victor Stinner authored
ConnectionResetError
-
Victor Stinner authored
ConnectionResetError too
-
Victor Stinner authored
ConnectionResetError too
-
Victor Stinner authored
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.
-
Victor Stinner authored
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.
-
Berker Peksag authored
-
Berker Peksag authored
-
- 16 Jul, 2014 12 commits
-
-
Serhiy Storchaka authored
attribute. Based on patch by Martin Panter.
-
Serhiy Storchaka authored
attribute. Based on patch by Martin Panter.
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
Merge with 3.4.
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
pydoc.gui was removed over 3 years ago (#10818), this script has been utterly bereft of worth since then.
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-