[issue47071] asyncio proactor udp transport stops responding after send to port that isn't listening

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report. Could you make a pull request? The whole attached windows_events.py is hard to analyze. -- ___ Python tracker <https://bugs.python.org/issue47

[issue25489] sys.exit() caught in exception handler

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not sure if the issue is still relevant. asyncio re-raises KeyboardInterrupt explicitly in all loop.call_exception_handler() branches: https://github.com/python/cpython/blob/main/Lib/asyncio/base_events.py#L1759-L1814

[issue25489] sys.exit() caught in exception handler

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: The change exists since Python 3.8 (October of 2019) The issue discussion belongs to 2015 -- ___ Python tracker <https://bugs.python.org/issue25

[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 94f038cbb27dc6d1a74ae2bfedea674911f8e8c6 by Hugo van Kemenade in branch '3.10': [3.10] bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12 (GH-31891) (#31997) https://github.com/python/cpyt

[issue34071] asyncio: repr(task) raises AssertionError for coros which loop.create_task accepts; complications ensue

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- ___ Python tracker <https://bugs.python.org/issue34071> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Again a relative short timeouts and super slow test boxes. I₩'ll relax numbers. Thanks forbthe report! -- ___ Python tracker <https://bugs.python.org/is

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

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

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: > The problem is more that a sleep is not a reliable synchronization primitive Yes, sure! I'm trying to avoid 'sleep for synchronization' when I'm writing new tests or fixing existing ones. The problem with this particular queue

[issue25489] sys.exit() caught in async event loop exception handler

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: I can describe what happens with test_sys_exit_in_exception_handler.py 1. The 'boom' task raises an exception. 2. The task is not awaited, Future.__del__ calls the exception handler with 'Task exception was never retrieved' message. 3

[issue25489] sys.exit() caught in async event loop exception handler

2022-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Guido, perhaps you had problems with the problem detection because the asyncio uses _asyncio C Extesions by default. It drops some calls from the python stack trace. -- ___ Python tracker <ht

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 673755bfbac46b3cd2c84d7e0d68c2c488e039c3 by Andrew Svetlov in branch 'main': bpo-47076: Make asyncio.Queue stable on slow test boxes (GH-32040) https://github.com/python/cpython/commit/673755bfbac46b3cd2c84d7e0d68c2

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. -- 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-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 32e77154ddfc514a3144d5912bffdd957246fd6c by Andrew Svetlov in branch 'main': bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) https://github.com/python/cpython/commit/32e77154ddfc514a3144d5912bffdd

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

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

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Welcome! -- ___ Python tracker <https://bugs.python.org/issue47076> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9d59381a5d20157930bae34e5f5a7bc5ef09fa89 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (#32047) https://github.com/python/cpython/commit/9d59381a5d20157930bae34e5f5a7b

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

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f47984b560f1dafe4d907cef4edadfb1746bf027 by Andrew Svetlov in branch '3.9': [3.9] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (GH-32049) https://github.com/python/cpython/commit/f47984b560f1dafe4d907cef4edadf

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: Tests, asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase versions: Python 3.10, Python 3.11 ___ Python

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

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

[issue34014] loop.run_in_executor should propagate current contextvars

2022-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: contextvars and run_in_executor() cannot be used together with process executor. asyncio.to_thread() runs with a copy of the current context. Available since Python 3.9 https://docs.python.org/3/library/asyncio-task.html?highlight=to_thread#asyncio.to_thread

[issue40320] Add ability to specify instance of contextvars context to Task() & asyncio.create_task()

2022-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate of #46994 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Accept explicit contextvars.Context in asyncio create_task() API ___ Python tra

[issue44306] asyncio.from_thread

2022-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: How is it better than passing the loop instance explicitly? What is the real use case? -- ___ Python tracker <https://bugs.python.org/issue44

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread Andrew Svetlov
New submission from Andrew Svetlov : New changeset ff619c7dfe8dcb0e4c8dc655abc3acc7dc586d0d by Andrew Svetlov in branch 'main': bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086) https://github.com/python/cpyt

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

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

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 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

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

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue47014> ___ ___

[issue46771] Implement asyncio.timeout() context manager

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: Add some form of cancel scopes -> Implement asyncio.timeout() context manager ___ Python tracker <https://bugs.python.org/issu

[issue45098] asyncio.CancelledError should contain more information on cancellations

2022-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: #46829 deprecates cancellation messages. #46771 implements timeout context manager based on previously added cancellation counter and task.uncancel() I think this issue should be closed. -- resolution: -> rejected stage: -> resolved status

[issue47062] Implement asyncio.Runner context manager

2022-03-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4119d2d7c9e25acd4f16994fb92d656f8b7816d7 by Andrew Svetlov in branch 'main': bpo-47062: Implement asyncio.Runner context manager (GH-31799) https://github.com/python/cpython/commit/4119d2d7c9e25acd4f16994fb92d65

[issue47062] Implement asyncio.Runner context manager

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

[issue47077] test_asyncio ignores exception in _ProactorBasePipeTransport.__del__: RuntimeError('Event loop is closed')

2022-03-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Perhaps the proactor should just silently skip protocol events if the event loop is closed. Selector-based event loops do it implicitly already. -- ___ Python tracker <https://bugs.python.org/issue47

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

2022-03-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30184 pull_request: https://github.com/python/cpython/pull/32105 ___ Python tracker <https://bugs.python.org/issue39

[issue47062] Implement asyncio.Runner context manager

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

[issue44036] asyncio SSL server can be DOSed, event loop gets blocked: busy loops and uses 100% CPU

2022-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Could you check Python 3.11? It has a new asyncio SSL implementation rewritten from scratch. -- ___ Python tracker <https://bugs.python.org/issue44

[issue47118] test_run_keeps_context in test_asyncio fails

2022-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report! I read it ad 'decimal context tests modifies the environment'. I'll update asyncio runner test to ignore external contextvars. -- ___ Python tracker <https://bugs.pyt

[issue47118] test_run_keeps_context in test_asyncio fails

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

[issue47118] test_run_keeps_context in test_asyncio fails

2022-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 20e6e5636a06fe5e1472062918d0a302d82a71c3 by Andrew Svetlov in branch 'main': bpo-47118: Fix asyncio.Runner tests error (32117) https://github.com/python/cpython/commit/20e6e5636a06fe5e1472062918d0a3

[issue47118] test_run_keeps_context in test_asyncio fails

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

[issue47062] Implement asyncio.Runner context manager

2022-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I believe the error is fixed by #47118 -- ___ Python tracker <https://bugs.python.org/issue47062> ___ ___ Python-bugs-list m

[issue43352] Add a Barrier object in asyncio lib

2022-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset d03acd7270d66ddb8e987f9743405147ecc15087 by Duprat in branch 'main': bpo-43352: Add a Barrier object in asyncio lib (GH-24903) https://github.com/python/cpython/commit/d03acd7270d66ddb8e987f97434051

[issue43352] Add a Barrier object in asyncio lib

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

[issue47062] Implement asyncio.Runner context manager

2022-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset bad6ffaa64eecd33f4320ca31b1201b25cd8fc91 by Andrew Svetlov in branch 'main': bpo-47062: Rename factory argument to loop_factory (GH-32113) https://github.com/python/cpython/commit/bad6ffaa64eecd33f4320ca31b1201

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2022-03-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5c30388f3c586ba2f33e349e22e5949cb92de621 by Vincent Bernat in branch 'main': bpo-27929: resolve names only for AF_INET/AF_INET6 with asyncio (GH-32131) https://github.com/python/cpython/commit/5c30388f3c586ba2f33e349e22e594

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

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

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

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

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

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

[issue14265] Fully qualified test name in failure output

2022-03-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 755be9b1505af591b9f2ee424a6525b6c2b65ce9 by Sam Ezeh in branch 'main': bpo-14265: Adds fully qualified test name to unittest output (GH-32138) https://github.com/python/cpython/commit/755be9b1505af591b9f2ee424a6525b6c2b65ce9 -

[issue14265] Fully qualified test name in failure output

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

[issue30479] improve asyncio debugging

2022-03-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio doesn't crash with scary messages like "AttributeError: 'NoneType' object has no attribute '_PENDING'" now. Checked with Python 3.9+ -- resolution: -> out of date stag

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

2022-03-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f08a191882f75bb79d42a49039892105b2212fb9 by Andrew Svetlov in branch 'main': bpo-39622: Interrupt the main asyncio task on Ctrl+C (GH-32105) https://github.com/python/cpython/commit/f08a191882f75bb79d42a490398921

[issue39622] Handle KeyboardInterrupt in asyncio

2022-03-30 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: KeyboardInterrupt is ignored when await asyncio.sleep(0) -> Handle KeyboardInterrupt in asyncio versions: +Python 3.11 -Python 3.7, Python 3.8

[issue47167] Allow overriding future-task compliance check in asyncio

2022-03-30 Thread Andrew Svetlov
New submission from Andrew Svetlov : Now asyncio.Task has a strict hardcoded check for futures processes on task's step. Sometimes third-party library [1] wants to replace it with custom logic. Currently it is impossible without implementing the full asyncio.Task replacement from sc

[issue47167] Allow overriding future-task compliance check in asyncio

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

[issue14911] generator.throw() documentation inaccurate

2022-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 8be7c2bc5ad5e295f0f855bb31db412eef2c7c92 by Dave Goncalves in branch 'main': bpo-14911: Corrected generator.throw() documentation (GH-32207) https://github.com/python/cpython/commit/8be7c2bc5ad5e295f0f855bb31db412eef2c7c92 -

[issue14911] generator.throw() documentation inaccurate

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

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2022-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset ab89ccff3ca6efc2a8e6f5f45c30d568fb3d212f by Andrew Svetlov in branch 'main': bpo-45099: Document asyncio internal API (GH-32166) https://github.com/python/cpython/commit/ab89ccff3ca6efc2a8e6f5f45c30d5

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

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

[issue47167] Allow overriding future-task compliance check in asyncio

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

[issue47167] Allow overriding future-task compliance check in asyncio

2022-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset d4bb38f82bf18b00db3129031ce4969b6f0caab9 by Andrew Svetlov in branch 'main': bpo-47167: Allow overriding a future compliance check in asyncio.Task (GH-32197) https://github.com/python/cpython/commit/d4bb38f82bf18b00db3129031ce496

[issue36732] test_asyncio: test_huge_content_recvinto() fails randomly

2019-08-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: ResourceWarning? I'll take a look -- ___ Python tracker <https://bugs.python.org/issue36732> ___ ___ Python-bugs-list m

[issue36732] test_asyncio: test_huge_content_recvinto() fails randomly

2019-08-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker <https://bugs.python.org/issue36732> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue17305] IDNA2008 encoding is missing

2019-08-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: There is no consensus yet, IMHO. There is a lack of resources for the issue. -- ___ Python tracker <https://bugs.python.org/issue17

[issue37703] Inconsistent gather with child exception

2019-08-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: The behavior change is not backward compatible, we cannot apply it. Also, please use github pull requests for proposing a patch: https://devguide.python.org/pullrequest/ -- ___ Python tracker <ht

[issue7982] extend captured_output to simulate different stdout.encoding

2019-08-18 Thread Andrew Frost
Andrew Frost added the comment: The patch Berker attached back in 2014 was never added to Python, I'd like to submit a PR for it as my first Python contribution! -- nosy: +adfrost ___ Python tracker <https://bugs.python.org/i

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2019-08-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +15179 pull_request: https://github.com/python/cpython/pull/15492 ___ Python tracker <https://bugs.python.org/issue34

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: The issue is related to Python 3.8 and master only. 3.6-3.7 are not affected -- versions: +Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue34

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Kyle, thanks for the fix. I have basically the same change in my PR but with test and news note. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +15180 pull_request: https://github.com/python/cpython/pull/15492 ___ Python tracker <https://bugs.python.org/issue34

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2019-08-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: -15179 ___ Python tracker <https://bugs.python.org/issue34769> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2019-08-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +15183 pull_request: https://github.com/python/cpython/pull/15492 ___ Python tracker <https://bugs.python.org/issue34

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2019-08-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +15183, 15184 pull_request: https://github.com/python/cpython/pull/15492 ___ Python tracker <https://bugs.python.org/issue34

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2019-08-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +15183, 15184, 15185 pull_request: https://github.com/python/cpython/pull/15492 ___ Python tracker <https://bugs.python.org/issue34

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 1c0600998681295735a18690fae184b0c9a4ca51 by Andrew Svetlov in branch 'master': bpo-34679: Restore instantiation Windows IOCP event loop from non-main thread (#15492) https://github.com/python/cpyt

[issue34679] asyncio.add_signal_handler call fails if not on main thread

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

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2019-08-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: The solution produces subtle and error-prone code. It can live in third party library but not good enough for stdlib I think. -- ___ Python tracker <https://bugs.python.org/issue33

[issue37909] Thread pool return ref hold memory

2019-08-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: In asyncio code please use non-blocking code and await a future returned by run_until_complete. The following code doesn't leak: import asyncio import concurrent import threading def prepare_a_giant_list(): m = [] for i in range(1000

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

2019-09-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: This is a new feature (and not a blocker). Shift to 3.9. Nathaniel, the PR is outdated. Have you an intention to land it or the issue can be closed by the lack of interest? -- nosy: +asvetlov versions: +Python 3.9 -Python 3.8

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2019-09-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's close the issue as "won't fix". Third-party loop implementation *can* be reentrant but we don't want to encourage people to use this pattern in stdlib. -- resolution: -> wont fix stage: patch review ->

[issue37909] Thread pool return ref hold memory

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

[issue38066] Hide internal asyncio.Stream methods

2019-09-09 Thread Andrew Svetlov
New submission from Andrew Svetlov : As discussed in discussion https://github.com/python/cpython/pull/14488#discussion_r322176319 Hide feed_eof(), feed_data(), set_exception() and set_transport() methods. -- components: asyncio messages: 351433 nosy: asvetlov, yselivanov priority

[issue38066] Hide internal asyncio.Stream methods

2019-09-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +15415 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15762 ___ Python tracker <https://bugs.python.org/issu

[issue38066] Hide internal asyncio.Stream methods

2019-09-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done. The only API from transport that users really need is get_extra_info() which is exposed as a stream method already. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38066] Hide internal asyncio.Stream methods

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

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report xtreak, I'll make a fix. -- ___ Python tracker <https://bugs.python.org/issue36373> ___ ___ Pytho

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Better to avoid _asyncio_internal if not strictly necessary. Currently, _asyncio_internal is used for protection of asyncio class direct instantiation. E.g. stream = asyncio.Stream() is forbidden, people should use factories like stream = await

[issue7982] extend captured_output to simulate different stdout.encoding

2019-09-10 Thread Andrew Frost
Change by Andrew Frost : -- pull_requests: +15522 pull_request: https://github.com/python/cpython/pull/15881 ___ Python tracker <https://bugs.python.org/issue7

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +15530 pull_request: https://github.com/python/cpython/pull/15889 ___ Python tracker <https://bugs.python.org/issue36

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Answered in https://github.com/python/cpython/pull/15889 -- ___ Python tracker <https://bugs.python.org/issue36373> ___ ___

[issue32972] unittest.TestCase coroutine support

2019-09-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! The test case re-creates a loop per test for the sake of test isolation (scheduled activities from test_a() don't interleave with test_b()). Unfortunately, on the class level level (setUpClass()/tearDownClass()) the loop doesn't exits.

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +15542 pull_request: https://github.com/python/cpython/pull/15901 ___ Python tracker <https://bugs.python.org/issue36

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4601f7a49fe8ed00c4b6b70b0eda2b3922568e9b by Andrew Svetlov in branch '3.8': [3.8] bpo-36373: Fix deprecation warnings (GH-15889) (GH-15901) https://github.com/python/cpython/commit/4601f7a49fe8ed00c4b6b70b0eda2b

[issue32972] unittest.TestCase coroutine support

2019-09-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0ba5dbd992d68d7df23396148ad55624200a1dbc by Andrew Svetlov (Miss Islington (bot)) in branch '3.8': bpo-32972: Document IsolatedAsyncioTestCase of unittest module (GH-15878) (GH-15918) https://github.com/python/cpyt

[issue32972] unittest.TestCase coroutine support

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

[issue38107] Replace direct future and task contructor calls with factories in asyncio tests

2019-09-11 Thread Andrew Svetlov
New submission from Andrew Svetlov : 1. Factories are recommended way for a task and a future creation. 2. Consider this task as asyncio tests tidy up. -- components: asyncio keywords: 3.3regression messages: 351837 nosy: asvetlov, yselivanov priority: normal severity: normal status

[issue38107] Replace direct future and task contructor calls with factories in asyncio tests

2019-09-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +15568 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15928 ___ Python tracker <https://bugs.python.org/issu

[issue38107] Replace direct future and task contructor calls with factories in asyncio tests

2019-09-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: -3.3regression, patch ___ Python tracker <https://bugs.python.org/issue38107> ___ ___ Python-bugs-list mailing list Unsub

[issue38107] Replace direct future and task contructor calls with factories in asyncio tests

2019-09-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch ___ Python tracker <https://bugs.python.org/issue38107> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38107] Replace direct future and task contructor calls with factories in asyncio tests

2019-09-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9aee90018a5213e3529768e0b873955d23f5e50b by Andrew Svetlov in branch 'master': bpo-38107: Replace direct future and task contructor calls with factories in asyncio tests (GH-15928) https://github.com/python/cpyt

[issue37651] Change of inheritance of asyncio.CancelledError needs documentation

2019-09-11 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

[issue34634] New asyncio streams API

2019-09-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yes, please do -- ___ Python tracker <https://bugs.python.org/issue34634> ___ ___ Python-bugs-list mailing list Unsubscribe:

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