Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-110733: Micro-optimization in BaseEventLoop._run_once (#110735) | J. Nick Koston | 2023-10-11 | 1 | -2/+5 | |
| | ||||||
* | gh-109955 : Update state transition comments for asyncio.Task (#109910) | Kristján Valur Jónsson | 2023-09-27 | 1 | -7/+17 | |
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | |||||
* | Remove loop from docstring for asyncio.streams.open_connection (#108528) | Tom Gillespie | 2023-09-27 | 1 | -3/+2 | |
| | ||||||
* | gh-109653: Remove unused imports in the `Lib/` directory (#109803) | Alex Waygood | 2023-09-24 | 1 | -1/+0 | |
| | ||||||
* | gh-109709: Fix asyncio test_stdin_broken_pipe() (#109710) | Victor Stinner | 2023-09-22 | 1 | -6/+8 | |
| | | | | | | Replace harcoded sleep of 500 ms with synchronization using a pipe. Fix also Process._feed_stdin(): catch also BrokenPipeError on stdin.write(input), not only on stdin.drain(). | |||||
* | gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (#109431) | Victor Stinner | 2023-09-20 | 1 | -2/+1 | |
| | | | | | | | | | | | | | SubprocessProtocol process_exited() method can be called before pipe_data_received() and pipe_connection_lost() methods. Document it and adapt the test for that. Revert commit 282edd7b2a74c4dfe1bfe3c5b1d30f9c21d554d6. _child_watcher_callback() calls immediately _process_exited(): don't add an additional delay with call_soon(). The reverted change didn't make _process_exited() more determistic: it can still be called before pipe_connection_lost() for example. Co-authored-by: Davide Rizzo <sorcio@gmail.com> | |||||
* | gh-108903: Remove unneeded `lambda`s from `asyncio` (GH-108904) | Nikita Sobolev | 2023-09-05 | 1 | -3/+3 | |
| | ||||||
* | Fix patchcheck for `asyncio.tasks` (#108159) | Kumar Aditya | 2023-08-20 | 1 | -9/+9 | |
| | ||||||
* | GH-106684: raise `ResourceWarning` when `asyncio.StreamWriter` is not closed ↵ | Kumar Aditya | 2023-08-05 | 1 | -0/+6 | |
| | | | | (#107650) | |||||
* | gh-82500: Fix asyncio sendfile overflow on 32bit (#107056) | J. Nick Koston | 2023-07-23 | 1 | -0/+3 | |
| | ||||||
* | gh-106527: asyncio: optimize to add/remove readers and writers (#106528) | J. Nick Koston | 2023-07-22 | 1 | -35/+29 | |
| | ||||||
* | gh-106634: Corrected minor asyncio doc issues (#106671) | Chris Brett | 2023-07-13 | 2 | -2/+2 | |
| | ||||||
* | gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on ↵ | Andrew Geng | 2023-07-07 | 1 | -0/+1 | |
| | | | | close(). (#106504) | |||||
* | gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (#106090) | James Webber | 2023-06-26 | 2 | -1/+2 | |
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | |||||
* | GH-105684: Require `asyncio.Task` implementations to support `set_name` ↵ | Kumar Aditya | 2023-06-13 | 3 | -16/+3 | |
| | | | | method (#105685) | |||||
* | gh-105331: Change `asyncio.sleep` to raise ``ValueError` for nan (#105641) | Jay | 2023-06-12 | 1 | -0/+4 | |
| | | | | Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | |||||
* | gh-104340: Suppress warning about unawaited exception for closed pipe stdin ↵ | Guido van Rossum | 2023-05-17 | 1 | -0/+3 | |
| | | | | (#104586) | |||||
* | gh-98539: Make _SSLTransportProtocol.abort() safe to call when closed (#104474) | Sam Bull | 2023-05-14 | 1 | -1/+2 | |
| | ||||||
* | gh-97696 Remove unnecessary check for eager_start kwarg (#104188) | Jacob Bower | 2023-05-09 | 1 | -4/+17 | |
| | | | | Instead, add docstring to create_eager_task_factory. | |||||
* | gh-104144: Optimize gather to finish eagerly when all futures complete ↵ | Itamar Ostricher | 2023-05-06 | 1 | -1/+12 | |
| | | | | eagerly (#104138) | |||||
* | gh-104144: Skip scheduling a done callback if a TaskGroup task completes ↵ | Itamar Ostricher | 2023-05-05 | 1 | -2/+8 | |
| | | | | | eagerly (#104140) Co-authored-by: Carl Meyer <carl@oddbird.net> | |||||
* | gh-97696: asyncio eager tasks factory (#102853) | Itamar Ostricher | 2023-05-01 | 2 | -26/+106 | |
| | | | | Co-authored-by: Jacob Bower <jbower@meta.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> | |||||
* | gh-83925: Make asyncio.subprocess communicate similar to non-asyncio (#18650) | Marek Marczykowski-Górecki | 2023-04-28 | 1 | -5/+6 | |
| | | | | | | | subprocess's communicate(None) closes stdin of the child process, after sending no (extra) data. Make asyncio variant do the same. This fixes issues with processes that waits for EOF on stdin before continuing. | |||||
* | gh-103607: Fix `pause_reading` to work when called from `connection_made` in ↵ | Itayazolay | 2023-04-27 | 2 | -24/+32 | |
| | | | | | `asyncio`. (#17425) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | |||||
* | gh-103462: Ensure SelectorSocketTransport.writelines registers a writer when ↵ | Ali-Akber Saifee | 2023-04-13 | 1 | -0/+3 | |
| | | | | data is still pending (#103463) | |||||
* | gh-102780: Fix uncancel() call in asyncio timeouts (#102815) | Kristján Valur Jónsson | 2023-03-22 | 1 | -3/+4 | |
| | | | | | | | Also use `raise TimeOut from <CancelledError instance>` so that the CancelledError is set in the `__cause__` field rather than in the `__context__` field. Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | gh-102810: Add docstrings to the public-facing methods of `asyncio.Timeout` ↵ | JosephSBoyle | 2023-03-19 | 1 | -0/+12 | |
| | | | | | | (#102811) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | GH-102748: remove legacy support for generator based coroutines from ↵ | Kumar Aditya | 2023-03-16 | 1 | -2/+1 | |
| | | | | | `asyncio.iscoroutine` (#102749) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | GH-100112: avoid using iterable coroutines in asyncio internally (#100128) | Kumar Aditya | 2023-03-16 | 1 | -16/+6 | |
| | ||||||
* | gh-102560 Add docstrings to asyncio.TaskGroup (#102565) | JosephSBoyle | 2023-03-15 | 1 | -0/+18 | |
| | ||||||
* | Remove redundant `_ensure_future` in favor of `ensure_future` in `asyncio` ↵ | Kumar Aditya | 2023-03-07 | 1 | -6/+2 | |
| | | | | (#102398) | |||||
* | gh-100226: Clarify StreamReader.read behavior (#101807) | Jan Gosmann | 2023-02-17 | 1 | -8/+9 | |
| | ||||||
* | GH-96764: rewrite `asyncio.wait_for` to use `asyncio.timeout` (#98518) | Kumar Aditya | 2023-02-16 | 1 | -48/+29 | |
| | | | Changes `asyncio.wait_for` to use `asyncio.timeout` as its underlying implementation. | |||||
* | gh-101317: Add `ssl_shutdown_timeout` parameter for ↵ | beavailable | 2023-02-01 | 1 | -2/+4 | |
| | | | | | `asyncio.StreamWriter.start_tls` (#101335) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | |||||
* | gh-101143: Remove references to `TimerHandle` from ↵ | J. Nick Koston | 2023-01-21 | 1 | -6/+3 | |
| | | | | | `asyncio.base_events.BaseEventLoop._add_callback` (#101197) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | |||||
* | GH-100573: Fix server hang caused by os.stat() on named pipe (Windows) (#100959) | Guido van Rossum | 2023-01-13 | 1 | -0/+5 | |
| | ||||||
* | gh-100160: Restore and deprecate implicit creation of an event loop (GH-100410) | Serhiy Storchaka | 2023-01-13 | 1 | -1/+23 | |
| | | | | | | | | | | Partially revert changes made in GH-93453. asyncio.DefaultEventLoopPolicy.get_event_loop() now emits a DeprecationWarning and creates and sets a new event loop instead of raising a RuntimeError if there is no current event loop set. Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | |||||
* | GH-86508: skip binding to local addresses of different family in ↵ | Kumar Aditya | 2023-01-04 | 1 | -2/+8 | |
| | | | | `asyncio.open_connection` (#100615) | |||||
* | GH-91166: Implement zero copy writes for `SelectorSocketTransport` in ↵ | Kumar Aditya | 2022-12-24 | 1 | -11/+75 | |
| | | | | | asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | |||||
* | gh-100344: Add C implementation for `asyncio.current_task` (#100345) | Itamar Ostricher | 2022-12-22 | 1 | -1/+4 | |
| | | | Co-authored-by: pranavtbhat | |||||
* | GH-100133: fix `asyncio` subprocess losing `stderr` and `stdout` output ↵ | Kumar Aditya | 2022-12-21 | 1 | -3/+0 | |
| | | | | (#100154) | |||||
* | GH-100363: Speed up `asyncio.get_running_loop` (#100364) | Kumar Aditya | 2022-12-21 | 1 | -0/+1 | |
| | ||||||
* | gh-100348: Fix ref cycle in `asyncio._SelectorSocketTransport` with ↵ | Richard Kojedzinszky | 2022-12-20 | 1 | -0/+4 | |
| | | | | `_read_ready_cb` (#100349) | |||||
* | gh-99941: Ensure that asyncio.Protocol.data_received receives immutable ↵ | DarioDaF | 2022-12-10 | 2 | -3/+4 | |
| | | | | bytes (#100053) | |||||
* | gh-93453: No longer create an event loop in get_event_loop() (#98440) | Serhiy Storchaka | 2022-12-06 | 4 | -23/+9 | |
| | | | | | | | | | | | | | | | 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-66285: fix forking in asyncio (#99769) | Kumar Aditya | 2022-11-27 | 1 | -0/+11 | |
| | | | Closes #66285 | |||||
* | GH-66285: Revert "fix forking in asyncio" (#99756) | Kumar Aditya | 2022-11-24 | 1 | -9/+0 | |
| | ||||||
* | GH-79033: Fix asyncio.Server.wait_closed() (#98582) | Guido van Rossum | 2022-11-24 | 1 | -1/+1 | |
| | | | | | | | | | | | It was a no-op when used as recommended (after close()). I had to debug one test (test__sock_sendfile_native_failure) -- the cleanup sequence for the test fixture was botched. Hopefully that's not a portend of problems in user code -- this has never worked so people may well be doing this wrong. :-( Co-authored-by: kumar aditya | |||||
* | GH-66285: fix forking in `asyncio` (#99539) | Kumar Aditya | 2022-11-24 | 1 | -0/+9 | |
| | | | `asyncio` now does not shares event loop and signal wakeupfd in forked processes. | |||||
* | gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection ↵ | Dong Uk, Kang | 2022-11-22 | 3 | -14/+35 | |
| | | | | | | | raises (#95739) Break reference cycles to resolve memory leak, by removing local exception and future instances from the frame |