[issue46040] asyncio.coroutine documented as removed in 3.10
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +28281 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30061 ___ Python tracker <https://bugs.python.org/issue46040> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46040] asyncio.coroutine documented as removed in 3.10
Andrew Svetlov added the comment: New changeset 991736697dff693b6c9f8964bb7540081bbf4ddb by Andrew Svetlov in branch '3.10': [3.10] bpo-46040: Fix removal text for @asyncio.coroutine (GH-30061) https://github.com/python/cpython/commit/991736697dff693b6c9f8964bb7540081bbf4ddb -- ___ Python tracker <https://bugs.python.org/issue46040> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46040] asyncio.coroutine documented as removed in 3.10
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46040> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45874] urllib.parse.parse_qsl does not parse empty query string with strict parsing
Andrew Svetlov added the comment: New changeset e6fe10d34096a23be7d26271cf6aba429313b01d by Christian Sattler in branch 'main': bpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl (#29716) https://github.com/python/cpython/commit/e6fe10d34096a23be7d26271cf6aba429313b01d -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue45874> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45855] PyCapsule_Import still using PyImport_ImportModuleNoBlock
Andrew Svetlov added the comment: New changeset 41026c3155012d6ea50e01205c163b6739c675b8 by Kumar Aditya in branch 'main': bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with PyImport_ImportModule (GH-30046) https://github.com/python/cpython/commit/41026c3155012d6ea50e01205c163b6739c675b8 -- ___ Python tracker <https://bugs.python.org/issue45855> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45855] Replace PyImport_ImportModuleNoBlock with PyImport_ImportModule in std modules
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: PyCapsule_Import still using PyImport_ImportModuleNoBlock -> Replace PyImport_ImportModuleNoBlock with PyImport_ImportModule in std modules ___ Python tracker <https://bugs.python.org/issue45855> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16594] SocketServer should set SO_REUSEPORT along with SO_REUSEADDR when present
Andrew Svetlov added the comment: New changeset b56774bd93822e1598bb5d6c1d0b1fe8c45a750d by AN Long in branch 'main': bpo-16594: Add allow_reuse_port on socketserver (GH-30072) https://github.com/python/cpython/commit/b56774bd93822e1598bb5d6c1d0b1fe8c45a750d -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue16594> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16594] SocketServer should set SO_REUSEPORT along with SO_REUSEADDR when present
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 2.7 ___ Python tracker <https://bugs.python.org/issue16594> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46116] _asyncio_backend.py datagram_received doesn't handle Future cancelled, throws Exception
Andrew Svetlov added the comment: dns package is not a part of Python standard library. Please file a bug in https://github.com/rthalley/dnspython/issues bugtracker. P.S. The fix is pretty straightforward: if not fut.done(): fut.set_result(...) -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46116> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46099] Solaris: Fix pthread_getcpuclockid test
Andrew Svetlov added the comment: New changeset 427a490c495cde8a152e938c6f02be65620e3e59 by Jakub KulĂk in branch 'main': bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) https://github.com/python/cpython/commit/427a490c495cde8a152e938c6f02be65620e3e59 -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue46099> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46099] Solaris: Fix pthread_getcpuclockid test
Andrew Svetlov added the comment: New changeset 4f945ad7a510ad6dde13353784e45239edcdc14e by Miss Islington (bot) in branch '3.10': bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (GH-30183) https://github.com/python/cpython/commit/4f945ad7a510ad6dde13353784e45239edcdc14e -- ___ Python tracker <https://bugs.python.org/issue46099> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46099] Solaris: Fix pthread_getcpuclockid test
Andrew Svetlov added the comment: New changeset a328ad7f9a9b6cd624da5efcc76daf88e0d22312 by Miss Islington (bot) in branch '3.9': bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (#30184) https://github.com/python/cpython/commit/a328ad7f9a9b6cd624da5efcc76daf88e0d22312 -- ___ Python tracker <https://bugs.python.org/issue46099> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces
New submission from Andrew Svetlov : #7815 supports `__unittest = True` module globals to stripping unittest framework calls from a stacktrace reported by a test failure. IsolatedAsyncioTestCase missed this setup. -- components: Library (Lib) messages: 408887 nosy: asvetlov priority: normal severity: normal status: open title: Strip IsolatedAsyncioTestCase frames from reported stacktraces versions: Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46128> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +28417 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30196 ___ Python tracker <https://bugs.python.org/issue46128> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
New submission from Andrew Svetlov : The change makes tests much better readable. -- components: Tests, asyncio messages: 40 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +28419 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30198 ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Change by Andrew Svetlov : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42413] Replace custom exceptions for timeouts with TimeoutError
Andrew Svetlov added the comment: New changeset da4b214304df38cf1831071804a2b83938f95923 by Kumar Aditya in branch 'main': bpo-42413: Replace `concurrent.futures.TimeoutError` and `asyncio.TimeoutError` with builtin `TimeoutError` (GH-30197) https://github.com/python/cpython/commit/da4b214304df38cf1831071804a2b83938f95923 -- ___ Python tracker <https://bugs.python.org/issue42413> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42413] Replace custom exceptions for timeouts with TimeoutError
Andrew Svetlov added the comment: Done. Thanks, Kumar! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42413> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces
Andrew Svetlov added the comment: `__unittest = True` flag doesn't work smoothly with async functions, unfortunately. Need to investigate why. -- ___ Python tracker <https://bugs.python.org/issue46128> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Andrew Svetlov added the comment: New changeset 9c06fd89514a9a2865e2adcc472095f6949cecb2 by Andrew Svetlov in branch 'main': bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198) https://github.com/python/cpython/commit/9c06fd89514a9a2865e2adcc472095f6949cecb2 -- ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Change by Andrew Svetlov : -- pull_requests: +28423 pull_request: https://github.com/python/cpython/pull/30202 ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Andrew Svetlov added the comment: New changeset cdb4579607ad5e0a3978ec29b8407bea4d19b4fa by Andrew Svetlov in branch '3.10': [3.10] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198) (GH-30202) https://github.com/python/cpython/commit/cdb4579607ad5e0a3978ec29b8407bea4d19b4fa -- ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Change by Andrew Svetlov : -- pull_requests: +28425 pull_request: https://github.com/python/cpython/pull/30204 ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Andrew Svetlov added the comment: New changeset f8fce5e4e4338fbe49e5e7a5a856101f69081a08 by Andrew Svetlov in branch '3.9': [3.9] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198) (GH-30204) https://github.com/python/cpython/commit/f8fce5e4e4338fbe49e5e7a5a856101f69081a08 -- ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45996] Worse error from asynccontextmanager in Python 3.10
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45996> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase
Change by Andrew Svetlov : -- pull_requests: +28426 pull_request: https://github.com/python/cpython/pull/30205 ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45996] Worse error from asynccontextmanager in Python 3.10
Andrew Svetlov added the comment: Sorry, I closed it because async behavior reflects sync version now. If you want to improve both -- you are welcome! Perhaps it is worth another issue with another problem description. -- resolution: fixed -> wont fix ___ Python tracker <https://bugs.python.org/issue45996> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46157] Typo in JSON documentation
Andrew Svetlov added the comment: New changeset 71ef0b4c2b77195bb1adc42602549284f7ee9566 by Kumar Aditya in branch 'main': bpo-46157: fix typo in docs (GH-30237) https://github.com/python/cpython/commit/71ef0b4c2b77195bb1adc42602549284f7ee9566 -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue46157> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46194] Wrong base class for transport returned by loop.create_datagram_endpoint()
New submission from Andrew Svetlov : Selector-based event loops returns `_SelectorDatagramTransport` which inherits `asyncio.Transport` instead of `asyncio.DatagramTransport`. isinstance(transp, asyncio.DatagramTransport) fails. It doesn't affect the actual execution since `transp.sendto()` and `transp.error_received()` are correctly implemented. The bug doesn't affect Windows proactor-based implementation. The fix is relatively easy, a champion is welcome! -- components: asyncio messages: 409309 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Wrong base class for transport returned by loop.create_datagram_endpoint() versions: Python 3.10, Python 3.11, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46194> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46222] posixmodule sendfile FreeBSD's constants update
Andrew Svetlov added the comment: New changeset c960b191b8999a9455bb4b2c50dc224d06fee80c by David CARLIER in branch 'main': bpo-46222: posixmodule sendfile FreeBSD's constants updates. (GH-30327) https://github.com/python/cpython/commit/c960b191b8999a9455bb4b2c50dc224d06fee80c -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue46222> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46222] posixmodule sendfile FreeBSD's constants update
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46222> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46238] Improve constants usage / definition in asyncio.windows_events
Andrew Svetlov added the comment: New changeset 1b111338cfe7840feea95e30ea8124063c450c65 by Nikita Sobolev in branch 'main': bpo-46238: reuse `_winapi` constants in `asyncio.windows_events` (GH-30352) https://github.com/python/cpython/commit/1b111338cfe7840feea95e30ea8124063c450c65 -- ___ Python tracker <https://bugs.python.org/issue46238> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46238] Improve constants usage / definition in asyncio.windows_events
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46238> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46239] Incosistent error message in asyncio: windows_events / windows_utils
Andrew Svetlov added the comment: New changeset 5a2a65096c3ec2d37f33615f2a420d2ffcabecf2 by Nikita Sobolev in branch 'main': bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353) https://github.com/python/cpython/commit/5a2a65096c3ec2d37f33615f2a420d2ffcabecf2 -- ___ Python tracker <https://bugs.python.org/issue46239> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46239] Incosistent error message in asyncio: windows_events / windows_utils
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46239> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46239] Incosistent error message in asyncio: windows_events / windows_utils
Andrew Svetlov added the comment: New changeset cf48a148190a6ccadc144cab2e2046e95c20fb57 by Miss Islington (bot) in branch '3.10': bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353) (#30388) https://github.com/python/cpython/commit/cf48a148190a6ccadc144cab2e2046e95c20fb57 -- ___ Python tracker <https://bugs.python.org/issue46239> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument
New submission from Andrew Svetlov : Actual implementations of asyncio event loops (both Unix and Windows) support contextvars and accept `context` argument in `loop.call_*()` methods. Abstract event loop definition doesn't it. It is not a bug but a signature incompatibility that can embarrass human readers and machine analyzing tools. -- messages: 409829 nosy: asvetlov priority: normal severity: normal status: open title: AbstractEventLoop.call_* should reflect the 'context' argument ___ Python tracker <https://bugs.python.org/issue46278> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument
Change by Andrew Svetlov : -- components: +asyncio nosy: +yselivanov versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46278> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument
Change by Andrew Svetlov : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue46278> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +28633 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30427 ___ Python tracker <https://bugs.python.org/issue46278> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument
Andrew Svetlov added the comment: New changeset 861a9aaf0f517623c58ca4eb5588804b2632fcba by Miss Islington (bot) in branch '3.10': bpo-46278: fix typo introduced in GH-30427 (GH-30430) (GH-30431) https://github.com/python/cpython/commit/861a9aaf0f517623c58ca4eb5588804b2632fcba -- ___ Python tracker <https://bugs.python.org/issue46278> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46278> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46223] asyncio cause infinite loop during debug
Andrew Svetlov added the comment: I guess applying '@reprlib.recursive_repr' decorator to 'events.Handle.__repr__()' function can help. Could you check, please? -- versions: +Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue46223> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46309] Task created by StreamReaderProtocol gets garbage collected.
Andrew Svetlov added the comment: Thanks for the bug report. Seems like your analysis is correct. Could you make a pull request which adds a task reference? -- ___ Python tracker <https://bugs.python.org/issue46309> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23819] test_asyncio fails when run under -O
Andrew Svetlov added the comment: Is anything left to do? -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue23819> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46335] asyncio.create_subprocess_exec throws RuntimeError yet still executes subprogram
Andrew Svetlov added the comment: What do you mean by *process-limited environment*? It is very unusual configuration IMHO. -- ___ Python tracker <https://bugs.python.org/issue46335> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46340] DeprecationWarning emitted when running asyncio tests
Andrew Svetlov added the comment: get_event_loop() is deprecated when there is no running event loop. Otherwise, it is equal to get_running_loop() and IS NOT deprecated. I think there is no reason to replace all occurrences where get_event_loop() works fine. -- ___ Python tracker <https://bugs.python.org/issue46340> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46310] Simplify `for` loop in `.close()` method in `asyncio/windows_events`
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46310> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46310] Simplify `for` loop in `.close()` method in `asyncio/windows_events`
Andrew Svetlov added the comment: New changeset fc75bfb8be8494e22123f2c14d1ab497c77cc22d by Nikita Sobolev in branch 'main': bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334) https://github.com/python/cpython/commit/fc75bfb8be8494e22123f2c14d1ab497c77cc22d -- ___ Python tracker <https://bugs.python.org/issue46310> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46335] asyncio.create_subprocess_exec throws RuntimeError yet still executes subprogram
Andrew Svetlov added the comment: Yes, your environment is clear. As I see from traceback, you are stuck not with new process creation but with new thread starting. The thread is used for waiting for the started process to finish. It is the default configuration. Maybe you need an alternative ChildWatcher setup by `asyncio.get_event_loop_policy().set_child_watcher(watcher)` call. A relatively fresh Linux can use `PidfdChildWatcher`. `MultiLoopChildWatcher` is cross-platform. `SafeChildWatcher` is the oldest and simplest implementation. Please choose one and see how it works for you. -- ___ Python tracker <https://bugs.python.org/issue46335> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46364] asyncio subprocess cannot read from /dev/stdin
Andrew Svetlov added the comment: True. Would you make a pull request that uses socketpair on AIX only? A test for desired behavior is required. -- ___ Python tracker <https://bugs.python.org/issue46364> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46425] Multiple test modules fail to run if invoked directly
Andrew Svetlov added the comment: New changeset 5a5340044ca98cbe6297668d91bccba04b102923 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `asyncio` tests (#30725) https://github.com/python/cpython/commit/5a5340044ca98cbe6297668d91bccba04b102923 -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue46425> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__
Andrew Svetlov added the comment: New changeset ea5b96842e066623a53015d8b2492ed61a5baf96 by Kumar Aditya in branch 'main': bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) https://github.com/python/cpython/commit/ea5b96842e066623a53015d8b2492ed61a5baf96 -- ___ Python tracker <https://bugs.python.org/issue46469> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__
Andrew Svetlov added the comment: New changeset 90e2998db78cd15e45b3c82f6360ac8841e03945 by Miss Islington (bot) in branch '3.10': [3.10] bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) (#30784) https://github.com/python/cpython/commit/90e2998db78cd15e45b3c82f6360ac8841e03945 -- ___ Python tracker <https://bugs.python.org/issue46469> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46425] Multiple test modules fail to run if invoked directly
Andrew Svetlov added the comment: New changeset 6111d5dee2b24916ff95dba56efc569396a31851 by Miss Islington (bot) in branch '3.10': bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) (#30782) https://github.com/python/cpython/commit/6111d5dee2b24916ff95dba56efc569396a31851 -- ___ Python tracker <https://bugs.python.org/issue46425> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46468] http.server documentation missing default value for port
Andrew Svetlov added the comment: New changeset c8a536624e8f5d6612e3c275c5b19592583a8cf8 by Jelle Zijlstra in branch 'main': bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776) https://github.com/python/cpython/commit/c8a536624e8f5d6612e3c275c5b19592583a8cf8 -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue46468> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46469> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46468] http.server documentation missing default value for port
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.9 ___ Python tracker <https://bugs.python.org/issue46468> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46468] http.server documentation missing default value for port
Andrew Svetlov added the comment: New changeset b4088801db4b4f56b177b1c01dd873c7922e6a9f by Miss Islington (bot) in branch '3.9': bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776) (#30786) https://github.com/python/cpython/commit/b4088801db4b4f56b177b1c01dd873c7922e6a9f -- ___ Python tracker <https://bugs.python.org/issue46468> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46468] http.server documentation missing default value for port
Andrew Svetlov added the comment: New changeset 923c994400b3f1c67f95d25c703e131890a16912 by Miss Islington (bot) in branch '3.10': bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776) (#30787) https://github.com/python/cpython/commit/923c994400b3f1c67f95d25c703e131890a16912 -- ___ Python tracker <https://bugs.python.org/issue46468> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46468] http.server documentation missing default value for port
Change by Andrew Svetlov : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue46468> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46425] Multiple test modules fail to run if invoked directly
Andrew Svetlov added the comment: New changeset 101a184d49756043a0c39dde6eca08b1891137a2 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_traceback` (GH-30746) https://github.com/python/cpython/commit/101a184d49756043a0c39dde6eca08b1891137a2 -- ___ Python tracker <https://bugs.python.org/issue46425> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46425] Multiple test modules fail to run if invoked directly
Andrew Svetlov added the comment: New changeset 55f4ec460ee6dcffc26180fd982ad89083c9acb1 by Nikita Sobolev in branch 'main': bpo-46425: use absolute imports in `test_sqlite3` (GH-30676) https://github.com/python/cpython/commit/55f4ec460ee6dcffc26180fd982ad89083c9acb1 -- ___ Python tracker <https://bugs.python.org/issue46425> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46425] Multiple test modules fail to run if invoked directly
Andrew Svetlov added the comment: New changeset 57316c52bae5d6420f5067f3891ec328deb97305 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_importlib` (GH-30682) https://github.com/python/cpython/commit/57316c52bae5d6420f5067f3891ec328deb97305 -- ___ Python tracker <https://bugs.python.org/issue46425> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46425] Multiple test modules fail to run if invoked directly
Andrew Svetlov added the comment: New changeset 1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_fileutils` and `test_zoneinfo` (GH-30792) https://github.com/python/cpython/commit/1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 -- ___ Python tracker <https://bugs.python.org/issue46425> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46457] test_unittest: TestAsyncCase.test_debug_cleanup_same_loop() hangs with gc.set_threshold(500)
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker <https://bugs.python.org/issue46457> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46483] `pathlib.PurePath.__class_getitem__` does not return `GenericAlias`
Andrew Svetlov added the comment: IIRC it was added to reflect the presence of __class_getitem__ method in typeshed. Please feel free to drop it the method is not really needed. -- ___ Python tracker <https://bugs.python.org/issue46483> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34680] asyncio event_loop fails when accessed from multiple threads
Andrew Svetlov added the comment: All asyncio loop methods except `loop.call_soon_threadsafe()` should be done from the same thread as been used for the loop creation. Did you violate this rule? -- ___ Python tracker <https://bugs.python.org/issue34680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure
Andrew Svetlov added the comment: Guido, I can not confirm your suggestion but it seems correct to me. -- ___ Python tracker <https://bugs.python.org/issue41682> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41682] [Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure
Andrew Svetlov added the comment: I'm sorry, Victor. -- ___ Python tracker <https://bugs.python.org/issue41682> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34680] asyncio event_loop fails when accessed from multiple threads
Andrew Svetlov added the comment: BaseEventLoop has _check_loop() method that is closed in debug mode only. UnixEventLoop doesn't call this method for unix-specific API. Adding the check to add_signal_handler()/remove_signal_handler() doesn't hurt, sure. But it doesn't help as the script is executed in non-debug mode. Performing a check on every call_soon() call kills the performance, that's why debug mode is required. -- ___ Python tracker <https://bugs.python.org/issue34680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.
Andrew Svetlov added the comment: Technically it should not provide the method according to the current design. get_write_buffer_limits() is not a part of public transports API, this method is defined by private class _FlowControlMixin only. WriteTransport requires only get_write_buffer_size() and set_write_buffer_limits() *setter* but not get_write_buffer_limits() getter. I agree, looks weird. The best solution maybe is adding get_write_buffer_limits() to WriteTransport definition and documenting the change. Would you prepare a pull request? I'm happy to review/merge it. -- ___ Python tracker <https://bugs.python.org/issue46487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.
Andrew Svetlov added the comment: Forgot to write, after making the method public we can implement it in SSL transport easily. -- ___ Python tracker <https://bugs.python.org/issue46487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34680] asyncio event_loop fails when accessed from multiple threads
Andrew Svetlov added the comment: Please feel free to propose pull request for documentation tuning. -- ___ Python tracker <https://bugs.python.org/issue34680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.
Andrew Svetlov added the comment: Sorry, I didn't look into docs before writing. Now we have an interesting situation: the documentation reflects the desired state already but the code is not :) The PR should contain fixes for transports.py and sslproto.py only (plus a blurb record for NEWs). Sorry for misleading you. -- ___ Python tracker <https://bugs.python.org/issue46487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning
Andrew Svetlov added the comment: Your code has at least one concurrency problem. Let's look back at forward_stream() function: async def forward_stream(reader: StreamReader, writer: StreamWriter, event: asyncio.Event, source: str): writer_drain = writer.drain() # <--- awaitable is created here while not event.is_set(): try: data = await asyncio.wait_for(reader.read(1024), 1) # <-- CancelledError can be caught here, stack unwinds and writer_drain is never awaited, sure. except asyncio.TimeoutError: continue ... # the rest is not important for this case To solve the problem, you should create writer_drain *before its awaiting*, not before another 'await' call. -- ___ Python tracker <https://bugs.python.org/issue46568> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning
Andrew Svetlov added the comment: Your version works but can be simplified. Just use await writer.drain() writer.write(data) without grabbing the drainer early. The purpose of the .drain() method is to write pausing if the write buffer side is greater than the high watermark. The 'await writer.drain()' waits until the buffer size became less than low watermark. It prevents uncontrollable write buffer growth if a peer cannot accept TCP message as fast as `writer.write()` sends them. The .drain() call has no hidden process under the hood, there is no need to get write_drain reference as early as possible. It is just 'waiting for a flag'. Also, there is no need for `await write_drain` at the end: asyncio transport sends all data from the internal write buffer before closing (and doesn't do it on 'transport.abort()'). -- ___ Python tracker <https://bugs.python.org/issue46568> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning
Change by Andrew Svetlov : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46568> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning
Andrew Svetlov added the comment: You are welcome! -- ___ Python tracker <https://bugs.python.org/issue46568> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45339] concurrent.future.ThreadPoolExecutor should parameterize class used for threads
Andrew Svetlov added the comment: I guess if you are asking for initialization and finalization of thread-specific data in a thread pool -- you need exactly these things (or a context manager). A custom thread class reveals too many implementation details. I personally prefer an explicit initializer/finalizer based approach. -- ___ Python tracker <https://bugs.python.org/issue45339> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.
Change by Andrew Svetlov : -- versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.
Andrew Svetlov added the comment: New changeset 64568acbd88a88d54ac9b8215447f88280448dd5 by Emiya in branch 'main': bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol transports (GH-30958) https://github.com/python/cpython/commit/64568acbd88a88d54ac9b8215447f88280448dd5 -- ___ Python tracker <https://bugs.python.org/issue46487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.
Andrew Svetlov added the comment: Done, thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46487> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check
Andrew Svetlov added the comment: New changeset 3483aa65dfebfc60a87ea9db3f20da84be41f606 by Nikita Sobolev in branch 'main': bpo-46583: remove unused `sys.version_info` check from `selectors` (GH-31023) https://github.com/python/cpython/commit/3483aa65dfebfc60a87ea9db3f20da84be41f606 -- ___ Python tracker <https://bugs.python.org/issue46583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check
Andrew Svetlov added the comment: The change should NOT be backported, it doesn't fix any bug but clears code a little -- versions: -Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46622] Support decorating a coroutine with functools.cached_property
Andrew Svetlov added the comment: Pull Request is welcome! I would say that the PR should not use asyncio directly but 'async def', 'await', and `inspect.iscoroutine()` / `inspect.iscoroutinefunction()` instead. The property should work with any async framework, not asyncio only. -- ___ Python tracker <https://bugs.python.org/issue46622> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46622] Support decorating a coroutine with functools.cached_property
Andrew Svetlov added the comment: You can return a wrapper from __get__ that awaits the inner function and saves the result somewhere. -- ___ Python tracker <https://bugs.python.org/issue46622> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy
Andrew Svetlov added the comment: Thanks for the report! Let me make a fix PR in a few minutes -- ___ Python tracker <https://bugs.python.org/issue46708> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29421 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31253 ___ Python tracker <https://bugs.python.org/issue46708> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy
Change by Andrew Svetlov : -- pull_requests: +29423 pull_request: https://github.com/python/cpython/pull/31255 ___ Python tracker <https://bugs.python.org/issue46708> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy
Change by Andrew Svetlov : -- pull_requests: +29424 pull_request: https://github.com/python/cpython/pull/31256 ___ Python tracker <https://bugs.python.org/issue46708> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy
Change by Andrew Svetlov : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46708> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46708> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43216] Removal of @asyncio.coroutine in Python 3.11
Andrew Svetlov added the comment: Closed. Thanks for the reminder! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43216> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46622] Support decorating a coroutine with functools.cached_property
Andrew Svetlov added the comment: I have a design question. Does `print(await a.hello)` look awkward? I'm not speaking about correction. In asyncio code I have seen before, `await val` means waiting for a future object. `await func()` means async function call. `await obj.attr` looks more like a future waiting but, in fact, it is not. Should we encourage such syntax? I have no strong opinion here and like to hear other devs. -- ___ Python tracker <https://bugs.python.org/issue46622> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46741] Docstring for asyncio.protocols.BufferedProtocol appears out of date
Andrew Svetlov added the comment: Alex, you are right. BufferedProtocol is considered stable since 3.8 A pull request with docstring fix is welcome. -- ___ Python tracker <https://bugs.python.org/issue46741> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46622] Support decorating a coroutine with functools.cached_property
Andrew Svetlov added the comment: Agree. Let's start from async functions support by `functools.lru_cache`. If we will have an agreement that cached_property is an important use-case we can return to this issue. I have a feeling that async lru_cache is much more important. https://pypi.org/project/async_lru/ has 0.5 million downloads per month: https://pypistats.org/packages/async-lru -- ___ Python tracker <https://bugs.python.org/issue46622> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com