[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:

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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:

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 -

[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
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46993> ___ ___

[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:

[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
Andrew Svetlov added the comment: Thanks! -- resolution: -> fixed status: -> closed ___ Python tracker <https://bugs.python.org/issue43253> ___ ___ Pyth

[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

[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

[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

[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

[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

[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

[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

[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
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 : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[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

[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
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 : -- 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 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
Andrew Svetlov added the comment: New changeset 3244659521798417810100904f39ae5dabe60a7f by Andrew Svetlov in branch '3.9': [3.9] bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase (GH-31942). (GH-31944) https://github.com/python/cpyt

[issue47038] Rewrite asyncio.wait_for test to use 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

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: test_cancel_blocking_wait_for() / test_cancel_wait_for() is not converted still. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker <https://bugs.python.or

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

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

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3dd9bfac04d3dcdbfd3f8011a6c9d4b9ac8c116a by Andrew Svetlov in branch 'main': bpo-47038: Rewrite missed asyncio.wait_for test to use IsolatedAnsyncioTestCase (GH-31946) https://github.com/python/cpyt

[issue47039] Normalize asyncio future and task repr()

2022-03-16 Thread Andrew Svetlov
New submission from Andrew Svetlov : Return `...` in the case of recursive representation. Now the only result is replaced with `...`, all other future properties are still printed. It doesn't follow `repr()` for other stdlib objects. -- components: asyncio messages: 415375

[issue47039] Normalize asyncio future and task repr()

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

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 36f62c55759c4246f969f60f7470ba756f77b268 by Miss Islington (bot) in branch '3.10': bpo-47038: Rewrite missed asyncio.wait_for test to use IsolatedAnsyncioTestCase (GH-31946) (#31948) 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: +30042 pull_request: https://github.com/python/cpython/pull/31951 ___ 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 a7c54148322781cb0f332d440a3454d550ef6414 by Andrew Svetlov in branch 'main': bpo-47038: Increase a test timeout for slow CI machines (GH-31951) https://github.com/python/cpython/commit/a7c54148322781cb0f332d440a3454

[issue47039] Normalize asyncio future and task repr()

2022-03-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 30b5d41fabad04f9f34d603f1ce2249452c18c71 by Andrew Svetlov in branch 'main': bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950) https://github.com/python/cpython/commit/30b5d41fabad04f9f34d603f1ce224

[issue47039] Normalize asyncio future and task repr()

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

[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

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

[issue42941] Infinite loop in asyncio sslproto

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: sslproto was rewritten from scratch in Python 3.11 -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40007] An attempt to make asyncio.transport.writelines (selector) use Scatter I/O

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: A duplicate of #47010 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Implement zero copy writes in SelectorSocketTransport in asyncio ___ Python tra

[issue40811] Allow to create new Event Loops on Threads

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: I suggest closing. The documentation explicitly describes how asyncio works with threads. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio.run() does the task -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43019] wait_for(to_thread)) does not work as expected. Extra documentation or fix needed.

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Threads are not interruptable in Python. The same for concurrent.future executor. asyncio and `wait_for` is not special. I'm not sure should we document it and *if* yes -- where should we do it? Adding a note to every function could be cumbe

[issue42683] asyncio should handle keyboard interrupt while the event loop is running

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate for #39622 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> KeyboardInterrupt is ignored when await asyncio.sleep(0) ___ Python tracker <https://

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Implemented by #32591 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s) __

[issue34790] Deprecate-remove passing coroutine objects to asyncio.wait()

2022-03-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: Deprecate passing coroutine objects to asyncio.wait() -> Deprecate-remove passing coroutine objects to asyncio.wait() ___ Python tracker <https://bugs.python.org/issu

[issue24080] asyncio.Event.wait() Task was destroyed but it is pending

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate for #39622 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> KeyboardInterrupt is ignored when await asyncio.sleep(0) ___ Python tracker <https://

[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio.run() present since Python 3.7 After the main coroutine finish, it cancels all background tasks and waits for their termination. Background tasks can use old good `try/finally` for resources cleanup. An additional API is not required IMHO

[issue34790] Deprecate-remove passing coroutine objects to asyncio.wait()

2022-03-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30053 pull_request: https://github.com/python/cpython/pull/31964 ___ Python tracker <https://bugs.python.org/issue34

[issue46030] socket module add couple of FreeBSD constants

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 33698e8ff40fcc67df3d95658e87196f8021de6f by David CARLIER in branch 'main': bpo-46030: socket module add couple of FreeBSD constants. (GH-30018) https://github.com/python/cpython/commit/33698e8ff40fcc67df3d95658e87196f8021de6f -

[issue46030] socket module add couple of FreeBSD constants

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

[issue34790] Deprecate-remove passing coroutine objects to asyncio.wait()

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 903f0a02c16240dc769a08c30e8d072a4fb09154 by Andrew Svetlov in branch 'main': bpo-34790: Remove passing coroutine objects to asyncio.wait() (GH-31964) https://github.com/python/cpython/commit/903f0a02c16240dc769a08c30e8d07

[issue34790] Deprecate-remove passing coroutine objects to asyncio.wait()

2022-03-17 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-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by #47039 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Normalize asyncio future and task repr() ___ Python tracker <https://bugs.python

[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

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

[issue47057] Use FASTCALL convention for FutureIter.throw()

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

[issue47057] Use FASTCALL convention for FutureIter.throw()

2022-03-18 Thread Andrew Svetlov
New submission from Andrew Svetlov : All other asyncio functions are converted to fast calls already. -- components: asyncio messages: 415489 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Use FASTCALL convention for FutureIter.throw() versions: Python

[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException

2022-03-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: I have a side question. generator.throw() and coroutine.throw() have throw(type[, value[, traceback]]) signature. Is there a plan to update generators somehow to accept the exception value only? The change can go in line with other exception API changes

[issue47062] Implement asyncio.Runner context manager

2022-03-18 Thread Andrew Svetlov
New submission from Andrew Svetlov : Sometimes asyncio.run() is not enough. For example, unittest test case needs to call several async functions (setup, test, teardown) from the synchronous code using the same execution context and event loop. The proposal provides the following: with

[issue47062] Implement asyncio.Runner context manager

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

[issue44075] Add a PEP578 audit hook for Asyncio loop stalls

2022-03-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: I am still not convinced that audit events should be used. Maybe support of explicit callbacks pair (on_start() + on_finish()) with `None` for fast-and-cheap "do nothing flag" is a better alternative for catching stale

[issue47057] Use FASTCALL convention for FutureIter.throw()

2022-03-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0a8b8e0d262eae83ffbc6b414a1f5747cdbd1d88 by Andrew Svetlov in branch 'main': bpo-47057: Use FASTCALL convention for FutureIter.throw() (GH-31973) https://github.com/python/cpython/commit/0a8b8e0d262eae83ffbc6b414a1f57

[issue44544] Add full list of possible args to textwrap: wrap, fill, shorten

2022-03-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset cb7874f49d3d55df73a3c529773af14e2e344fb7 by andrei kulakov in branch 'main': bpo-44544: add textwrap placeholder arg (GH-27671) https://github.com/python/cpython/commit/cb7874f49d3d55df73a3c529773af14e2e344fb7 -- nosy:

[issue47057] Use FASTCALL convention for FutureIter.throw()

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

[issue47015] Update tests from asyncore to asyncio

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3ae975f1ac880c47d51cca6c9e305547bd365be7 by Oleg Iarygin in branch 'main': bpo-47015: Update test_os from asyncore to asyncio (GH-31876) https://github.com/python/cpython/commit/3ae975f1ac880c47d51cca6c9e3055

[issue47015] Update tests from asyncore to asyncio

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

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