[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4186dd662cf22613b21af948163978af4243a8d6 by Miss Islington (bot) in branch '3.10': bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase (GH-31942) (GH-31943) https://github.com/python/cpyt

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30035 pull_request: https://github.com/python/cpython/pull/31944 ___ Python tracker <https://bugs.python.org/issue47

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset dd0082c627713634c7fd88ad33d18b5cc9f4a7b8 by Andrew Svetlov in branch 'main': bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase (GH-31942) https://github.com/python/cpython/commit/dd0082c627713634c7fd88ad33d18b

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +30033 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31942 ___ Python tracker <https://bugs.python.org/issu

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
New submission from Andrew Svetlov : It simplifies future maintenance. -- components: Tests, asyncio messages: 415359 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase versions: Python 3.10

[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

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

[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue47035> ___ ___ Python-bugs-list mailin

[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +30027 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31935 ___ Python tracker <https://bugs.python.org/issu

[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
New submission from Andrew Svetlov : It can help with future maintenance a lot. Current tests are cumbersome. -- components: asyncio messages: 415342 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Rewrite asyncio queue tests with

[issue25291] better Exception message for certain task termination scenario

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Python 3.7 forbids Task.set_exception() and Task.set_result(), the error message is pretty clear. Nothing to do here -- nosy: +asvetlov resolution: -> wont fix stage: -> resolved status: open -&g

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

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: #46994 fixed this problem -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38912] test_asyncio altered the execution environment

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: The main branch is clear -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Yuri. I'll take a look. -- ___ Python tracker <https://bugs.python.org/issue45997> ___ ___ Python-bugs-list m

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-15 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30003 pull_request: https://github.com/python/cpython/pull/31910 ___ Python tracker <https://bugs.python.org/issue45

[issue20392] Inconsistency with uppercase file extensions in MimeTypes.guess_type

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

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- resolution: -> fixed status: -> closed ___ Python tracker <https://bugs.python.org/issue43253> ___ ___ Pyth

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 70155412f1543f100d4aa309b8691cbcabd3e0e1 by Maximilian Hils in branch 'main': bpo-43253: Don't call shutdown() for invalid socket handles (GH-31892) https://github.com/python/cpython/commit/70155412f1543f100d4aa309b

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-15 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue43253> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46993] Speed up bytearray creation from list and tuple

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

[issue20392] Inconsistency with uppercase file extensions in MimeTypes.guess_type

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5dd7ec52b83e7f239774cf7478106fcc7b0a36f3 by Kumar Aditya in branch 'main': bpo-20392: Fix inconsistency with uppercase file extensions in mimetypes.guess_type (GH-30229) https://github.com/python/cpyt

[issue46993] Speed up bytearray creation from list and tuple

2022-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 6dfe09fc5fd5a3ddc6009d5656e635eae30c5240 by Kumar Aditya in branch 'main': bpo-46993: Speed up bytearray creation from list and tuple (GH-31834) https://github.com/python/cpython/commit/6dfe09fc5fd5a3ddc6009d5656e635eae30c5240 -

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2022-03-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.or

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maximilian, thanks for the investigation. A check for 'fileno != -1' seems correct to me. Would you prepare a pull request? -- ___ Python tracker <https://bugs.python.o

[issue47014] ProactorEventLoop ignores Ctrl+C after closing unrelated loop

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ctrl-C handling is added by #23057 It uses signal.set_wakeup_fd() https://github.com/asvetlov/cpython/blob/main/Lib/asyncio/proactor_events.py#L631-L634 So, the last event loop steals Ctrl+C handling. Not sure if we can improve it. Running two concurrent

[issue43215] Document Happy Eyeballs arguments of asyncio.open_connection

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset c6828408342cb1a2f8ba5038adccfbc1a95250cc by Illia Volochii in branch '3.10': [3.10] bpo-43215: Document Happy Eyeballs args of asyncio.open_connection (GH-24525) (GH-31869) https://github.com/python/cpyt

[issue43215] Document Happy Eyeballs arguments of asyncio.open_connection

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 649cc9d688f79765cf052429683b708678c26fbd by Illia Volochii in branch '3.9': [3.9] bpo-43215: Document Happy Eyeballs args of asyncio.open_connection (GH-24525) (GH-31868) https://github.com/python/cpyt

[issue46843] PersistentTaskGroup API

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think we should close the PR now. I'm open to the discussion resurrection in Python 3.12 or 3.13, when aiotools implementation will be battle-tested. -- ___ Python tracker <https://bugs.python.org/is

[issue47010] Implement zero copy writes in SelectorSocketTransport in asyncio

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Known problem, PR is welcome! I expect the fix is not trivial. -- ___ Python tracker <https://bugs.python.org/issue47

[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

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

[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9523c0d84f351a610dc651b234461eb015fa3b82 by Andrew Svetlov in branch 'main': bpo-46994: Accept explicit contextvars.Context in asyncio create_task() API (GH-31837) https://github.com/python/cpyt

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: resolved -> ___ Python tracker <https://bugs.python.org/issue46522> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44886] asyncio: create_datagram_endpoint() does not return a DatagramTransport

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: resolved -> patch review ___ Python tracker <https://bugs.python.org/issue44886> ___ ___ Python-bugs-list mailing list Un

[issue47003] Cleanup _overlapped module

2022-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 690490e4de9f2baf07171b3d63fc440239928fb4 by Andrew Svetlov in branch 'main': bpo-47003: Cleanup _overlapped module (GH-31848) https://github.com/python/cpython/commit/690490e4de9f2baf07171b3d63fc44

[issue47003] Cleanup _overlapped module

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

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: -asvetlov ___ Python tracker <https://bugs.python.org/issue37355> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: not a bug -> status: closed -> ___ Python tracker <https://bugs.python.org/issue43253> ___ ___ Python-bugs-list

[issue47003] Cleanup _overlapped module

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29946 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31848 ___ Python tracker <https://bugs.python.org/issu

[issue47003] Cleanup _overlapped module

2022-03-13 Thread Andrew Svetlov
New submission from Andrew Svetlov : 1. CancelIoEx is mandatory for supported Windows versions, there is no need for dynamic checks. 2. Argument Clinic supports Py_buffer, use it. -- components: asyncio messages: 415064 nosy: asvetlov, yselivanov priority: normal severity: normal

[issue46805] Add low level UDP socket functions to asyncio

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

[issue46805] Add low level UDP socket functions to asyncio

2022-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9f04ee569cebb8b4c6f04bea95d91a19c5403806 by Alex Grönholm in branch 'main': bpo-46805: Add low level UDP socket functions to asyncio (GH-31455) https://github.com/python/cpython/commit/9f04ee569cebb8b4c6f04bea95d91a

[issue46995] Make Task.set_name() mandatory for third-parties

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

[issue46995] Make Task.set_name() mandatory for third-parties

2022-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 7e473e94a52024ac821dd2f206290423e4987ead by Andrew Svetlov in branch 'main': bpo-46995: Deprecate missing asyncio.Task.set_name() for third-party task implementations (GH-31838) https://github.com/python/cpyt

[issue43215] Document Happy Eyeballs arguments of asyncio.open_connection

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

[issue43215] Document Happy Eyeballs arguments of asyncio.open_connection

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3543ddb4c4ebc26fb2d6c67a97e66f5267876f72 by Illia Volochii in branch 'main': bpo-43215: Document Happy Eyeballs args of asyncio.open_connection (GH-24525) https://github.com/python/cpython/commit/3543ddb4c4ebc26fb2d6c67a97e66f

[issue44318] Asyncio classes missing __slots__

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: 1. Guido van Rossum explicitly designed asyncio to *don't* use slots. 2. Changing it produces potential backward incompatibility issues. Very many stdlib classes don't have slots, as already mentioned. The default is really the reverse: no slots

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: If the cancellation message should be kept it needs improvements anyway, the single message doesn't work well with multiple `.cancel()` calls. I can imagine a 'CancelledError(*msgs)' and 'raise exc.drop_msg(msg)' as a fu

[issue45279] avoid redundant _commit_removals pending_removals guard

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

[issue25292] [asyncio] ssl socket gets into broken state when client exits during handshake

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio ssl support was rewritten from scratch. If you still observe the problem, please open a new issue. -- nosy: +asvetlov resolution: -> out of date stage: patch review -> resolved status: open -&g

[issue41696] asyncio.run interacts surprisingly with debug mode

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

[issue40227] SSLError is not passed to the client during handshake

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio ssl support was rewritten from scratch. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38955] Non indemnpotent behavior of asyncio.get_event_loop and asyncio.run sequence.

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: The usage of get_event_loop() outside of a loop is deprecated since Python 3.10 -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40454] DEBUG kw to asyncio.run overrides DEBUG mode set elsewhere

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by #41696 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40487] Unexpected exception handler behavior in Jupyter when returning task objects created with create_task

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: tasks are not awaited, this is the problem. The reproducer is not correct. Closing. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40251] selectors.KqueueSelector hangs on EOF, unlike other selectors

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Using selectors with blocked files looks weird at least. Should we care? -- ___ Python tracker <https://bugs.python.org/issue40

[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

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

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29940 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31840 ___ Python tracker <https://bugs.python.org/issu

[issue42760] inspect.iscoroutine returns False for asynchronous generator methods

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37529] Mimetype module duplicates

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bug

[issue37529] Mimetype module duplicates

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset d9db07a3100105768ba83ffd67991e78452bb22e by andrei kulakov in branch 'main': bpo-37529: Add test for guessing extensions (GH-28243) https://github.com/python/cpython/commit/d9db07a3100105768ba83ffd67991e78452bb22e -- nosy:

[issue35392] Create asyncio/sockutils.py

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: I support the idea but we have no PR yet. The request is not very strong. Anyway, if you still want such change -- please recreate an issue. -- resolution: -> postponed stage: -> resolved status: open -&g

[issue32396] Implement method to write/read to serials without blocking on windows with asyncio

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: No activity, closing. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28464] BaseEventLoop.close should shutdown executor before marking itself closed

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: loop.shutdown_default_executor() exists for it, asyncio.run() calls the method -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue25230] asyncio/Windows: Unix datagram sockets not supported

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Implemented a long time ago, closing -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue22476] asyncio task chapter confusion about 'task', 'future', and 'schedule'

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Docs were rewritten from scratch in Python 3.8, they are much better now. -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue44604] [Enhancement] Asyncio task decorator to provide interface to define async DAGs (similar to dask's delayed interface)

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: TaskGroup has landed, aiodag is present on pypi. Closing. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44221] ImportError: sys.meta_path is None, Python is likely shutting down

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Reproducer is missing -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28534] Replace asynchat

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Superseded by #28533 -- nosy: +asvetlov resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Remove asyncore, asynchat and smtpd modules ___ Python tracker <https://

[issue32181] runaway Tasks with Task.cancel() ignored.

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41879] Outdated description of async iterables in documentation of async for statement

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

[issue44373] make Event an Awaitable

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please re-read the rejection reason: https://bugs.python.org/issue33544#msg316962 -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44795] asyncio.run does not allow for graceful shutdown of main task

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please use TaskGroup from Python 3.11 for structural concurrency. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40977] asyncio.trsock.TransportSocket says some APIs will be prohibited in 3.9

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in Python 3.10 -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39951] Ignore specific errors when closing ssl connections

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46995] Make Task.set_name() mandatory for third-parties

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29937 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31838 ___ Python tracker <https://bugs.python.org/issu

[issue46995] Make Task.set_name() mandatory for third-parties

2022-03-12 Thread Andrew Svetlov
New submission from Andrew Svetlov : The method was introduced by Python 3.8 Let's raise DeprecationWarning if third-party task implementation doesn't support it. Convert the depreciation into a strict error in Python 3.13 -- components: asyncio messages: 414990 nosy

[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29936 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31837 ___ Python tracker <https://bugs.python.org/issu

[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

2022-03-12 Thread Andrew Svetlov
New submission from Andrew Svetlov : Now asyncio creates a new context copy on task creation. It is the perfect behavior *by default* and should stay as is. However, sometimes passing an explicit context into a task and using back the context modified by task code is desired. The most

[issue46892] Async Call-Stack Reconstruction

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: The idea looks interesting. The devil in the details I guess. I'm curious what is the memory and performance penalty. Waiting for the PR as the discussion starting point. -- ___ Python tracker &

[issue46892] Async Call-Stack Reconstruction

2022-03-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: > We’d like to merge our implementation into CPython Could you provide a link first, please? -- ___ Python tracker <https://bugs.python.org/issu

[issue46771] Add some form of cancel scopes

2022-03-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: The implementation has landed, docs are still required. -- ___ Python tracker <https://bugs.python.org/issue46771> ___ ___

[issue36709] Asyncio SSL keep-alive connections raise errors after loop close.

2022-03-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45033] Calls to PyErr_PrintEx in destructors cause calling async functions to incorrectly return None

2022-03-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: 'catch (boost::python::error_already_set e)' is equal to `except BaseException as e:` In Python, blind catching base exception is dangerous, the code should re-raise it usually. The same is true for boost::python usage. > how would it tell t

[issue33886] SSL on aiomysql hangs on reconnection

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

[issue30740] SSLError when cancelling an SSL connection

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

[issue46955] The documentation mentions asyncio.Server. It does not exist.

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

[issue46955] The documentation mentions asyncio.Server. It does not exist.

2022-03-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset da80d6b2f3beff519cb1457d5e055168c89f7224 by Stefan Zabka in branch 'main': bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760) https://github.com/python/cpython/commit/da80d6b2f3beff519cb1457d5e0551

[issue46955] The documentation mentions asyncio.Server. It does not exist.

2022-03-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46955> ___ ___ Python-bugs-list mailin

[issue36098] asyncio: ssl client-server with "slow" read

2022-03-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for checking -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

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

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please consider passing 'sock' argument as the ownership transfer. You should not perform any action on 'sock' object directly anymore. This is true for all asyncio API. -- resolution: -> not a bug stage: -> resol

[issue46672] NameError in asyncio.gather when passing a invalid type as an arg with multiple awaitables

2022-02-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Correct. 3.8 is in security mode. It doesn't accept regular patches -- ___ Python tracker <https://bugs.python.org/is

[issue30698] asyncio sslproto do not shutdown ssl layer cleanly

2022-02-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45159] data_received called on protocol after call to pause_reading on ssl transport

2022-02-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.11 -Python 3.10 ___ Python tracker <https://bugs.python.or

[issue46318] asyncio and ssl: ResourceWarning: unclosed transport

2022-02-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.or

[issue46318] asyncio and ssl: ResourceWarning: unclosed transport

2022-02-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Awesome! -- ___ Python tracker <https://bugs.python.org/issue46318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44011] Borrow asyncio ssl implementation from uvloop

2022-02-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 41ddcd3f40f8171a396e57b841a74fcc83884eab by Kumar Aditya in branch 'main': bpo-44011: Document ssl_shutdown_timeout added by revisited asyncio SSL implementation (GH-31597) https://github.com/python/cpyt

[issue46859] NameError: free variable 'outer' referenced before assignment in enclosing scope

2022-02-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Also, fix is 1 week old. There are no python releases with the fix included yet. On Sat, Feb 26, 2022, 06:58 Norman Fung wrote: > > Norman Fung added the comment: > > Thanks Jelle, let me try upgrade first. > > Norman > > On Sat,

[issue44886] asyncio: create_datagram_endpoint() does not return a DatagramTransport

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

[issue46844] Context-based TaskGroup for legacy libraries

2022-02-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: I personally don't think that the described opt-in trick should be a part of asyncio. A third-party library that patches asyncio.create_task() can be a useful thing though during the transition period. We even cannot deprecate asyncio.create_task() righ

[issue46844] Context-based TaskGroup for legacy libraries

2022-02-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: -1 Now bare `create_task()` does fire-and-forget action. After the proposed change it will fail loudly. Even if this behavior is better it is not backward compatible. People start blaming and asking "how to return everything

<    1   2   3   4   5   6   7   8   9   10   >