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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
-
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
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
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
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
-
Change by Andrew Svetlov :
--
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue45099>
___
___
Python-bugs-list mailin
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
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
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
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
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
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
Andrew Svetlov added the comment:
I believe the error is fixed by #47118
--
___
Python tracker
<https://bugs.python.org/issue47062>
___
___
Python-bugs-list m
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
Change by Andrew Svetlov :
--
pull_requests: +30189
pull_request: https://github.com/python/cpython/pull/32113
___
Python tracker
<https://bugs.python.org/issue47
Change by Andrew Svetlov :
--
pull_requests: +30184
pull_request: https://github.com/python/cpython/pull/32105
___
Python tracker
<https://bugs.python.org/issue39
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Change by Andrew Svetlov :
--
title: Add some form of cancel scopes -> Implement asyncio.timeout() context
manager
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
resolution: -> wont fix
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue47014>
___
___
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.9
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue47104>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
Andrew Svetlov added the comment:
Welcome!
--
___
Python tracker
<https://bugs.python.org/issue47076>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andrew Svetlov :
--
pull_requests: +30138
pull_request: https://github.com/python/cpython/pull/32049
___
Python tracker
<https://bugs.python.org/issue45
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
Andrew Svetlov added the comment:
Fixed.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
Change by Andrew Svetlov :
--
pull_requests: +30130
pull_request: https://github.com/python/cpython/pull/32040
___
Python tracker
<https://bugs.python.org/issue47
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
Andrew Svetlov added the comment:
Thanks!
--
___
Python tracker
<https://bugs.python.org/issue34071>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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:
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
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
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
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
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
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
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
Change by Andrew Svetlov :
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue39622>
___
___
Python-bugs-list mailing list
Unsubscrib
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46030>
___
___
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
-
Change by Andrew Svetlov :
--
pull_requests: +30053
pull_request: https://github.com/python/cpython/pull/31964
___
Python tracker
<https://bugs.python.org/issue34
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
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://
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
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)
__
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://
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
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
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
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Change by Andrew Svetlov :
--
pull_requests: +30042
pull_request: https://github.com/python/cpython/pull/31951
___
Python tracker
<https://bugs.python.org/issue47
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
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
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
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
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
1 - 100 of 1001 matches
Mail list logo