Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-93453: No longer create an event loop in get_event_loop() (#98440) | Serhiy Storchaka | 2022-12-06 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | asyncio.get_event_loop() now always return either running event loop or the result of get_event_loop_policy().get_event_loop() call. The latter should now raise an RuntimeError if no current event loop was set instead of creating and setting a new event loop. It affects also a number of asyncio functions and constructors which call get_event_loop() implicitly: ensure_future(), shield(), gather(), etc. DeprecationWarning is no longer emitted if there is no running event loop but the current event loop was set. Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | GH-90985: Revert "Deprecate passing a message into cancel()" (#97999) | Guido van Rossum | 2022-10-07 | 1 | -6/+0 |
| | | | | | Reason: we were too hasty in deprecating this. We shouldn't deprecate it before we have a replacement. | ||||
* | GH-96827: Don't touch closed loops from executor threads (#96837) | Guido van Rossum | 2022-09-30 | 1 | -0/+2 |
| | | | | | * When chaining futures, skip callback if loop closed. * When shutting down an executor, don't wake a closed loop. | ||||
* | bpo-45924: Fix asyncio incorrect traceback when future's exception is raised ↵ | Kumar Aditya | 2022-07-11 | 1 | -1/+2 |
| | | | | multiple times (GH-30274) | ||||
* | bpo-46829: Deprecate passing a message into Future.cancel() and ↵ | Andrew Svetlov | 2022-03-23 | 1 | -0/+6 |
| | | | | | Task.cancel() (GH-31840) After a long deliberation we ended up feeling that the message argument for Future.cancel(), added in 3.9, was a bad idea, so we're deprecating it in 3.11 and plan to remove it in 3.13. | ||||
* | bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950) | Andrew Svetlov | 2022-03-17 | 1 | -4/+1 |
| | |||||
* | bpo-45390: Propagate CancelledError's message from cancelled task to its ↵ | Andrew Svetlov | 2022-02-21 | 1 | -0/+5 |
| | | | | | | awaiter (GH-31383) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) | Kumar Aditya | 2022-01-22 | 1 | -2/+2 |
| | | | | | | | | | | | | * bpo-46469: Make asyncio generic classes return GenericAlias * 📜🤖 Added by blurb_it. * Update Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() ↵ | Serhiy Storchaka | 2021-04-25 | 1 | -2/+2 |
| | | | | | | (GH-23554) asyncio.get_event_loop() emits now a deprecation warning when it creates a new event loop. In future releases it will became an alias of asyncio.get_running_loop(). | ||||
* | bpo-41241: Unnecessary Type casting in 'if condition' (GH-21396) | Wansoo Kim | 2020-11-28 | 1 | -1/+1 |
| | | | | | | | | This is my first issue! So, if there's anything wrong, please tell me! Also, thank you always for all the contributors! Automerge-Triggered-By: GH:asvetlov | ||||
* | bpo-31033: Improve the traceback for cancelled asyncio tasks (GH-19951) | Chris Jerdonek | 2020-05-18 | 1 | -5/+21 |
| | | | | | When an asyncio.Task is cancelled, the exception traceback now starts with where the task was first interrupted. Previously, the traceback only had "depth one." | ||||
* | bpo-31033: Add a msg argument to Future.cancel() and Task.cancel() (GH-19979) | Chris Jerdonek | 2020-05-15 | 1 | -3/+8 |
| | |||||
* | bpo-38978: Implement __class_getitem__ for asyncio objects (GH-17491) | Batuhan Taşkaya | 2019-12-07 | 1 | -0/+3 |
| | | | https://bugs.python.org/issue38978 | ||||
* | bpo-38785: Prevent asyncio from crashing (GH-17144) | Andrew Svetlov | 2019-11-13 | 1 | -1/+4 |
| | | | | | | | if parent `__init__` is not called from a constructor of object derived from `asyncio.Future` https://bugs.python.org/issue38785 | ||||
* | bpo-34622: Extract asyncio exceptions into a separate module (GH-9141) | Andrew Svetlov | 2018-09-11 | 1 | -12/+21 |
| | |||||
* | bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171) | Yury Selivanov | 2018-05-28 | 1 | -0/+3 |
| | |||||
* | bpo-32643: Drop support for a few private Task and Future APIs. (#5293) | Yury Selivanov | 2018-01-24 | 1 | -4/+4 |
| | | | | | | | | Specifically, it's not possible to subclass Task/Future classes and override the following methods: * Future._schedule_callbacks * Task._step * Task._wakeup | ||||
* | bpo-32436: Implement PEP 567 (#5027) | Yury Selivanov | 2018-01-23 | 1 | -6/+11 |
| | |||||
* | bpo-31721: Allow Future._log_traceback to only be set to False (#5009) | Yury Selivanov | 2017-12-25 | 1 | -6/+16 |
| | |||||
* | bpo-32363: Disable Task.set_exception() and Task.set_result() (#4923) | Yury Selivanov | 2017-12-25 | 1 | -3/+4 |
| | |||||
* | bpo-32415: Add asyncio.Task.get_loop() and Future.get_loop() (#4992) | Yury Selivanov | 2017-12-23 | 1 | -2/+18 |
| | |||||
* | bpo-32311: Implement asyncio.create_task() shortcut (#4848) | Andrew Svetlov | 2017-12-15 | 1 | -1/+3 |
| | | | | | * Implement functionality * Add documentation | ||||
* | bpo-32258: Replace 'yield from' to 'await' in asyncio docs (#4779) | Andrew Svetlov | 2017-12-11 | 1 | -2/+3 |
| | | | | | | * Replace 'yield from' to 'await' in asyncio docs * Fix docstrings | ||||
* | bpo-32262: Fix codestyle; use f-strings formatting where necessary. (#4775) | Yury Selivanov | 2017-12-10 | 1 | -8/+10 |
| | |||||
* | asyncio: Remove asyncio/compat.py (#4606) | Victor Stinner | 2017-11-28 | 1 | -3/+1 |
| | | | | | | | | | | The asyncio/compat.py file was written to support Python < 3.5 and Python < 3.5.2. But Python 3.5 doesn't accept bugfixes anymore, only security fixes. There is no more need to backport bugfixes to Python 3.5, and so no need to have a single code base for Python 3.5, 3.6 and 3.7. Say hello (again) to "async" and "await", who became real keywords in Python 3.7 ;-) | ||||
* | asyncio: Remove unused Future._tb_logger attribute (#4596) | Victor Stinner | 2017-11-27 | 1 | -8/+1 |
| | | | | It was only used on Python 3.3, now only Future._log_traceback is used. | ||||
* | bpo-31970: Reduce performance overhead of asyncio debug mode. (#4314) | Antoine Pitrou | 2017-11-07 | 1 | -1/+1 |
| | | | | * bpo-31970: Reduce performance overhead of asyncio debug mode. | ||||
* | bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (#4319) | Antoine Pitrou | 2017-11-07 | 1 | -1/+3 |
| | |||||
* | bpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050) | Yury Selivanov | 2017-06-11 | 1 | -0/+1 |
| | |||||
* | bpo-29617: Remove Python 3.3 support from asyncio (GH-232) | INADA Naoki | 2017-04-25 | 1 | -106/+16 |
| | |||||
* | Issue #28544: Implement asyncio.Task in C. | Yury Selivanov | 2016-10-28 | 1 | -71/+18 |
| | | | | | | | | This implementation provides additional 10-20% speed boost for asyncio programs. The patch also fixes _asynciomodule.c to use Arguments Clinic, and makes '_schedule_callbacks' an overridable method (as it was in 3.5). | ||||
* | asyncio: Increase asyncio.Future test coverage; test both implementations. | Yury Selivanov | 2016-10-24 | 1 | -2/+7 |
| | | | | | Also, add 'isfuture' to 'asyncio.futures.__all__', so that it's exposed as 'asyncio.isfuture'. | ||||
* | Issue #28448: Fix C implemented asyncio.Future didn't work on Windows | INADA Naoki | 2016-10-21 | 1 | -4/+4 |
| | |||||
* | Issue #28452: Remove _asyncio._init_module function | INADA Naoki | 2016-10-18 | 1 | -15/+8 |
| | |||||
* | Issue #28428: Rename _futures module to _asyncio. | INADA Naoki | 2016-10-15 | 1 | -3/+3 |
| | | | | It will have more speedup functions or classes other than asyncio.Future. | ||||
* | Issue #26801: Added C implementation of asyncio.Future. | INADA Naoki | 2016-10-09 | 1 | -37/+57 |
| | | | | Original patch by Yury Selivanov. | ||||
* | Merge asyncio upstream. | Guido van Rossum | 2016-09-09 | 1 | -6/+18 |
| | |||||
* | Rename Future._blocking to _asyncio_future_blocking. | Guido van Rossum | 2016-09-09 | 1 | -2/+10 |
| | | | | | | | | | | | | This is now an official "protected" API that can be used to write classes that are duck-type-compatible with Future without subclassing it. (For that purpose I also changed isinstance(result, Future) to check for this attribute instead.) Hopefully Amber Brown can use this to make Twisted.Deferred compatible with asyncio.Future. Tests and docs are TBD. | ||||
* | Issue #27041: asyncio: Add loop.create_future method | Yury Selivanov | 2016-05-16 | 1 | -1/+3 |
| | |||||
* | asyncio: Prevent StopIteration from being thrown into a Future | Yury Selivanov | 2016-03-02 | 1 | -0/+3 |
| | | | | Patch by Chris Angelico (issue #26221) | ||||
* | Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar | Martin Panter | 2016-02-10 | 1 | -1/+1 |
| | | | | | The original form is incorrect grammar and feels awkward, even though the meaning is clear. | ||||
* | asyncio: Cleanup Future API | Yury Selivanov | 2015-11-17 | 1 | -30/+30 |
| | | | | See https://github.com/python/asyncio/pull/292 for details. | ||||
* | Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. | Guido van Rossum | 2015-10-03 | 1 | -16/+58 |
| | |||||
* | asyncio: Add asyncio.compat module | Victor Stinner | 2015-07-25 | 1 | -6/+4 |
| | | | | | Move compatibility helpers for the different Python versions to a new asyncio.compat module. | ||||
* | asyncio: Support PEP 492. Issue #24017. | Yury Selivanov | 2015-05-12 | 1 | -0/+4 |
| | |||||
* | Asyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions ↵ | Guido van Rossum | 2015-05-03 | 1 | -1/+1 |
| | | | | without __name__. | ||||
* | Issue #23243, asyncio: Emit a ResourceWarning when an event loop or a transport | Victor Stinner | 2015-01-29 | 1 | -3/+3 |
| | | | | is not explicitly closed. Close also explicitly transports in test_sslproto. | ||||
* | Issue #23209: Break some reference cycles in asyncio. Patch written by Martin | Victor Stinner | 2015-01-09 | 1 | -1/+1 |
| | | | | Richard. | ||||
* | asyncio: sync with Tulip | Victor Stinner | 2015-01-09 | 1 | -2/+0 |
| | | | | | | | * Tulip issue 184: FlowControlMixin constructor now get the event loop if the loop parameter is not set. Add unit tests to ensure that constructor of StreamReader and StreamReaderProtocol classes get the event loop. * Remove outdated TODO/XXX | ||||
* | asyncio: Initialize more Future and Task attributes in the class definition to | Victor Stinner | 2014-12-04 | 1 | -2/+1 |
| | | | | avoid attribute errors in destructors. |