[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-11 Thread Andrew Svetlov
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/issu

[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-11 Thread Andrew Svetlov
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/991736697dff693b6c9f8964bb7540

[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45874] urllib.parse.parse_qsl does not parse empty query string with strict parsing

2021-12-12 Thread Andrew Svetlov
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/e6fe10d34096a23be7d26271cf6aba

[issue45855] PyCapsule_Import still using PyImport_ImportModuleNoBlock

2021-12-12 Thread Andrew Svetlov
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/cpyt

[issue45855] Replace PyImport_ImportModuleNoBlock with PyImport_ImportModule in std modules

2021-12-12 Thread Andrew Svetlov
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

[issue16594] SocketServer should set SO_REUSEPORT along with SO_REUSEADDR when present

2021-12-13 Thread Andrew Svetlov
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:

[issue16594] SocketServer should set SO_REUSEPORT along with SO_REUSEADDR when present

2021-12-13 Thread Andrew Svetlov
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.or

[issue46116] _asyncio_backend.py datagram_received doesn't handle Future cancelled, throws Exception

2021-12-17 Thread Andrew Svetlov
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 pa

[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread Andrew Svetlov
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 -

[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread Andrew Svetlov
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/4f945ad7a510ad6dde13353784e452

[issue46099] Solaris: Fix pthread_getcpuclockid test

2021-12-18 Thread Andrew Svetlov
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/a328ad7f9a9b6cd624da5efcc76daf

[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces

2021-12-19 Thread Andrew Svetlov
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

[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces

2021-12-19 Thread Andrew Svetlov
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/issu

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
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

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
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/issu

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46129> ___ ___ Python-bugs-list mailin

[issue42413] Replace custom exceptions for timeouts with TimeoutError

2021-12-19 Thread Andrew Svetlov
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/cpyt

[issue42413] Replace custom exceptions for timeouts with TimeoutError

2021-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done. Thanks, Kumar! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46128] Strip IsolatedAsyncioTestCase frames from reported stacktraces

2021-12-19 Thread Andrew Svetlov
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/is

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
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/9c06fd89514a9a2865e2adcc472095

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +28423 pull_request: https://github.com/python/cpython/pull/30202 ___ Python tracker <https://bugs.python.org/issue46

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
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/cpyt

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +28425 pull_request: https://github.com/python/cpython/pull/30204 ___ Python tracker <https://bugs.python.org/issue46

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
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/cpyt

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45996> ___ ___

[issue46129] Rewrite asyncio.locks tests with IsolatedAsyncioTestCase

2021-12-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +28426 pull_request: https://github.com/python/cpython/pull/30205 ___ Python tracker <https://bugs.python.org/issue46

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-20 Thread Andrew Svetlov
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

[issue46157] Typo in JSON documentation

2021-12-23 Thread Andrew Svetlov
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:

[issue46194] Wrong base class for transport returned by loop.create_datagram_endpoint()

2021-12-29 Thread Andrew Svetlov
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.s

[issue46222] posixmodule sendfile FreeBSD's constants update

2022-01-03 Thread Andrew Svetlov
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/c960b191b8999a9455bb4b2c5

[issue46222] posixmodule sendfile FreeBSD's constants update

2022-01-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46222> ___ ___

[issue46238] Improve constants usage / definition in asyncio.windows_events

2022-01-04 Thread Andrew Svetlov
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/1b111338cfe7840feea95e30ea8124

[issue46238] Improve constants usage / definition in asyncio.windows_events

2022-01-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread Andrew Svetlov
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/5a2a65096c3ec2d37f33615f2a420d

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread Andrew Svetlov
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/cpyt

[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument

2022-01-06 Thread Andrew Svetlov
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 tha

[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument

2022-01-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +asyncio nosy: +yselivanov versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46

[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument

2022-01-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue46278> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument

2022-01-06 Thread Andrew Svetlov
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/issu

[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument

2022-01-06 Thread Andrew Svetlov
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/861a9aaf0f517623c58ca4eb558880

[issue46278] AbstractEventLoop.call_* should reflect the 'context' argument

2022-01-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46223] asyncio cause infinite loop during debug

2022-01-08 Thread Andrew Svetlov
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 <

[issue46309] Task created by StreamReaderProtocol gets garbage collected.

2022-01-08 Thread Andrew Svetlov
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/issue46

[issue23819] test_asyncio fails when run under -O

2022-01-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is anything left to do? -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46335] asyncio.create_subprocess_exec throws RuntimeError yet still executes subprogram

2022-01-11 Thread Andrew Svetlov
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/issue46

[issue46340] DeprecationWarning emitted when running asyncio tests

2022-01-11 Thread Andrew Svetlov
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

[issue46310] Simplify `for` loop in `.close()` method in `asyncio/windows_events`

2022-01-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46310] Simplify `for` loop in `.close()` method in `asyncio/windows_events`

2022-01-11 Thread Andrew Svetlov
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/fc75bfb8be8494e22123f2c14d1ab4

[issue46335] asyncio.create_subprocess_exec throws RuntimeError yet still executes subprogram

2022-01-12 Thread Andrew Svetlov
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

[issue46364] asyncio subprocess cannot read from /dev/stdin

2022-01-13 Thread Andrew Svetlov
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/issue46

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
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 -

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Andrew Svetlov
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/ea5b96842e066623a53015d8b2492e

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Andrew Svetlov
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/cpyt

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
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/6111d5dee2b24916ff95dba56efc56

[issue46468] http.server documentation missing default value for port

2022-01-22 Thread Andrew Svetlov
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/c8a536624e8f5d6612e3

[issue46469] asyncio Generic classes should return GenericAlias in __class_getitem__

2022-01-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46468] http.server documentation missing default value for port

2022-01-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.9 ___ Python tracker <https://bugs.python.or

[issue46468] http.server documentation missing default value for port

2022-01-22 Thread Andrew Svetlov
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/p

[issue46468] http.server documentation missing default value for port

2022-01-22 Thread Andrew Svetlov
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/p

[issue46468] http.server documentation missing default value for port

2022-01-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue46468> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
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/101a184d49756043a0c39dde6eca08

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
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/55f4ec460ee6dcffc26180fd982ad8

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
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/57316c52bae5d6420f5067f3891ec3

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
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/1f8014c5b4ea7acee069ca453f6fbc

[issue46457] test_unittest: TestAsyncCase.test_debug_cleanup_same_loop() hangs with gc.set_threshold(500)

2022-01-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker <https://bugs.python.org/issue46457> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46483] `pathlib.PurePath.__class_getitem__` does not return `GenericAlias`

2022-01-24 Thread Andrew Svetlov
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/issue46

[issue34680] asyncio event_loop fails when accessed from multiple threads

2022-01-24 Thread Andrew Svetlov
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.

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Guido, I can not confirm your suggestion but it seems correct to me. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41682] [Windows] : Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2022-01-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm sorry, Victor. -- ___ Python tracker <https://bugs.python.org/issue41682> ___ ___ Python-bugs-list mailing list

[issue34680] asyncio event_loop fails when accessed from multiple threads

2022-01-26 Thread Andrew Svetlov
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 a

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-01-26 Thread Andrew Svetlov
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

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-01-26 Thread Andrew Svetlov
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/issue46

[issue34680] asyncio event_loop fails when accessed from multiple threads

2022-01-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please feel free to propose pull request for documentation tuning. -- ___ Python tracker <https://bugs.python.org/issue34

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-01-27 Thread Andrew Svetlov
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

[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning

2022-01-29 Thread Andrew Svetlov
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() # <--- awai

[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning

2022-01-29 Thread Andrew Svetlov
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

[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning

2022-01-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46568] non awaited coroutines on a IsolatedAsyncioTestCase results on a RuntimeWarning

2022-01-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: You are welcome! -- ___ Python tracker <https://bugs.python.org/issue46568> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45339] concurrent.future.ThreadPoolExecutor should parameterize class used for threads

2022-02-01 Thread Andrew Svetlov
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

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46487> ___ ___ Python-bugs-list mailin

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread Andrew Svetlov
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/64568acbd88a88d54ac9b8215447f8

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-02-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done, thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check

2022-02-02 Thread Andrew Svetlov
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/3483aa65dfebfc60a87ea9db3f20da

[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check

2022-02-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check

2022-02-02 Thread Andrew Svetlov
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/is

[issue46622] Support decorating a coroutine with functools.cached_property

2022-02-09 Thread Andrew Svetlov
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 framewo

[issue46622] Support decorating a coroutine with functools.cached_property

2022-02-10 Thread Andrew Svetlov
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/issue46

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread Andrew Svetlov
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/issue46

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread Andrew Svetlov
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/issu

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +29423 pull_request: https://github.com/python/cpython/pull/31255 ___ Python tracker <https://bugs.python.org/issue46

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +29424 pull_request: https://github.com/python/cpython/pull/31256 ___ Python tracker <https://bugs.python.org/issue46

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46708> ___ ___ Python-bugs-list mailin

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43216] Removal of @asyncio.coroutine in Python 3.11

2022-02-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closed. Thanks for the reminder! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46622] Support decorating a coroutine with functools.cached_property

2022-02-13 Thread Andrew Svetlov
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

[issue46741] Docstring for asyncio.protocols.BufferedProtocol appears out of date

2022-02-14 Thread Andrew Svetlov
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/issue46

[issue46622] Support decorating a coroutine with functools.cached_property

2022-02-14 Thread Andrew Svetlov
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.

  1   2   3   4   5   6   7   8   9   10   >