summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28613: Expose asyncio._get_running_loop() and _set_running_loop()Yury Selivanov2016-11-081-0/+1
|
* Issue #28613: Fix get_event_loop() to return the current loopYury Selivanov2016-11-041-1/+35
| | | | when called from coroutines or callbacks.
* Issue #28600: Optimize loop.call_soon().Yury Selivanov2016-11-031-1/+0
| | | | | Run expensive type checks only in debug mode. In addition, stop supporting passing handles to loop.run_in_executor.
* Issue #26654: Inspect functools.partial in asyncio.Handle.__repr__.Yury Selivanov2016-09-151-13/+14
| | | | Patch by iceboy.
* asyncio: Sync with the upstreamYury Selivanov2016-09-151-0/+4
|
* Issue #27041: asyncio: Add loop.create_future methodYury Selivanov2016-05-161-0/+3
|
* Issue #27040: Add loop.get_exception_handler methodYury Selivanov2016-05-161-0/+3
|
* Issue #23972: updates to asyncio datagram API. By Chris Laws.Guido van Rossum2015-10-051-2/+38
|
* Issue #23630, asyncio: host parameter of loop.create_server() can now be aVictor Stinner2015-09-211-1/+2
| | | | sequence of strings. Patch written by Yann Sionneau.
* asyncio: Add asyncio.compat moduleVictor Stinner2015-07-251-4/+3
| | | | | Move compatibility helpers for the different Python versions to a new asyncio.compat module.
* Sync asyncio changes from the main repo.Yury Selivanov2015-05-111-1/+9
|
* Asyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions ↵Guido van Rossum2015-05-031-4/+10
| | | | without __name__.
* Issue #23074: asyncio.get_event_loop() now raises an exception if the threadVictor Stinner2014-12-181-3/+3
| | | | has no event loop even if assertions are disabled.
* asyncio: Improve canceled timer handles cleanup. Closes issue #22448.Yury Selivanov2014-09-251-9/+20
| | | | Patch by Joshua Moore-Oliva.
* asyncio, Tulip issue 206: In debug mode, keep the callback in theVictor Stinner2014-09-171-13/+19
| | | | representation of Handle and TimerHandle after cancel().
* asyncio: sync with TulipVictor Stinner2014-07-291-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | * _WaitHandleFuture.cancel() now notify IocpProactor through the overlapped object that the wait was cancelled. * Optimize IocpProactor.wait_for_handle() gets the result if the wait is signaled immediatly. * Enhance representation of Future and Future subclasses - Add "created at filename:lineno" in the representation - Add Future._repr_info() method which can be more easily overriden than Future.__repr__(). It should now be more easy to enhance Future representation without having to modify each subclass. For example, _OverlappedFuture and _WaitHandleFuture get the new "created at" information. - Use reprlib to format Future result, and function arguments when formatting a callback, to limit the length of the representation. * Fix repr(_WaitHandleFuture) * _WaitHandleFuture and _OverlappedFuture: hide frames of internal calls in the source traceback. * Cleanup ProactorIocp._poll(): set the timeout to 0 after the first call to GetQueuedCompletionStatus() * test_locks: close the temporary event loop and check the condition lock * Remove workaround in test_futures, no more needed
* 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