summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
Commit message (Collapse)AuthorAgeFilesLines
* asyncio: sync with TulipVictor Stinner2014-07-101-4/+14
| | | | | | | | - Issues #21936, #21163: Fix sporadic failures of test_future_exception_never_retrieved() - Handle.cancel() now clears references to callback and args - In debug mode, repr(Handle) now contains the location where the Handle was created.
* asyncio: sync with TulipVictor Stinner2014-07-081-0/+9
| | | | | | | | | | | - Tulip issue 185: Add a create_task() method to event loops. The create_task() method can be overriden in custom event loop to implement their own task class. For example, greenio and Pulsar projects use their own task class. The create_task() method is now preferred over creating directly task using the Task class. - tests: fix a warning - fix typo in the name of a test function - Update AbstractEventLoop: add new event loop methods; update also the unit test
* asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task andVictor Stinner2014-06-271-4/+14
| | | | | | | | | | | Handle objects are created. Pass the traceback to call_exception_handler() in the 'source_traceback' key. The traceback is truncated to hide internal calls in asyncio, show only the traceback from user code. Add tests for the new source_traceback, and a test for the 'Future/Task exception was never retrieved' log.
* asyncio: Handle error handler: enhance formatting of the callbackVictor Stinner2014-06-251-2/+2
|
* asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and TimerHandleVictor Stinner2014-06-251-17/+39
| | | | | | - Uniformize repr() output to format "<Class ...>" - On Python 3.5+, repr(Task) uses the qualified name instead of the short name of the coroutine
* asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)Victor Stinner2014-06-121-1/+29
| | | | | | | | | | repr(Handle) is shorter for function: "foo" instead of "<function foo at 0x...>". It now also includes the source of the callback, filename and line number where it was defined, if available. repr(Task) now also includes the current position in the code, filename and line number, if available. If the coroutine (generator) is done, the line number is omitted and "done" is added.
* Tulip issue 83, Python issue #21252: Fill some XXX docstrings in asyncioVictor Stinner2014-06-051-12/+23
|
* Issue #21454: Fix asyncio.BaseEventLoop.connect_read_pipe docVictor Stinner2014-05-281-3/+3
| | | | The function sets the the pipe to non-blocking mode.
* asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166.Guido van Rossum2014-04-271-1/+1
|
* asyncio: remove unused imports and unused variables noticed by pyflakesVictor Stinner2014-02-201-3/+0
|
* asyncio, Tulip issue #136: Add get/set_debug() methods to BaseEventLoopTests.Victor Stinner2014-02-191-0/+8
| | | | | | Add also a PYTHONASYNCIODEBUG environment variable to debug coroutines since Python startup, to be able to debug coroutines defined directly in the asyncio module.
* asyncio: Fix spelling and typos.Yury Selivanov2014-02-191-3/+3
| | | | Thanks to Vajrasky Kok for discovering some of them.
* asyncio: New error handling API. Issue #20681.Yury Selivanov2014-02-181-7/+24
|
* asyncio: Add support for UNIX Domain Sockets.Yury Selivanov2014-02-181-0/+26
|
* asyncio.events: Use __slots__ in Handle and TimerHandleYury Selivanov2014-02-121-0/+4
|
* asyncio: Tulip issue 112: Inline make_handle() into Handle constructorVictor Stinner2014-02-091-6/+1
|
* Fix typo in asyncio.AbstractServer documentationVictor Stinner2013-12-031-1/+1
|
* asyncio: Use Interface instead of ABC. Fixes issue 19726.Guido van Rossum2013-11-301-2/+2
|
* asyncio: Fix get_event_loop() to call set_event_loop() when setting the ↵Guido van Rossum2013-11-271-1/+1
| | | | loop. By Anthony Baire.
* asyncio: Refactor SIGCHLD handling. By Anthony Baire.Guido van Rossum2013-11-041-19/+51
|
* asyncio: Document EventLoop.close().Guido van Rossum2013-11-011-0/+13
|
* asyncio: Add server_hostname as create_connection() argument, with secure ↵Guido van Rossum2013-11-011-1/+1
| | | | default.
* asyncio: Update some comments.Guido van Rossum2013-10-301-3/+1
|
* Rename the logger to plain "logger".Guido van Rossum2013-10-171-3/+3
|
* Initial checkin of asyncio package (== Tulip, == PEP 3156).Guido van Rossum2013-10-171-0/+395