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
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:
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:
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:
Thanks!
--
___
Python tracker
<https://bugs.python.org/issue34071>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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:
> 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
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:
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:
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:
Fixed.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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:
Welcome!
--
___
Python tracker
<https://bugs.python.org/issue47076>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
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
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
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
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
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:
How is it better than passing the loop instance explicitly?
What is the real use case?
--
___
Python tracker
<https://bugs.python.org/issue44
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
Change by Andrew Svetlov :
--
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue47104>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
resolution: -> wont fix
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue47014>
___
___
Change by Andrew Svetlov :
--
title: Add some form of cancel scopes -> Implement asyncio.timeout() context
manager
___
Python tracker
<https://bugs.python.org/issu
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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 :
--
pull_requests: +30184
pull_request: https://github.com/python/cpython/pull/32105
___
Python tracker
<https://bugs.python.org/issue39
Change by Andrew Svetlov :
--
pull_requests: +30189
pull_request: https://github.com/python/cpython/pull/32113
___
Python tracker
<https://bugs.python.org/issue47
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
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
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:
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 :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
I believe the error is fixed by #47118
--
___
Python tracker
<https://bugs.python.org/issue47062>
___
___
Python-bugs-list m
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
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 bad6ffaa64eecd33f4320ca31b1201b25cd8fc91 by Andrew Svetlov in
branch 'main':
bpo-47062: Rename factory argument to loop_factory (GH-32113)
https://github.com/python/cpython/commit/bad6ffaa64eecd33f4320ca31b1201
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
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
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 :
--
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue45099>
___
___
Python-bugs-list mailin
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 :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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 :
--
keywords: +patch
pull_requests: +30273
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32197
___
Python tracker
<https://bugs.python.org/issu
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 :
--
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 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 3.10, Python 3.9
___
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 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
Andrew Svetlov added the comment:
ResourceWarning?
I'll take a look
--
___
Python tracker
<https://bugs.python.org/issue36732>
___
___
Python-bugs-list m
Change by Andrew Svetlov :
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue36732>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
Change by Andrew Svetlov :
--
pull_requests: +15179
pull_request: https://github.com/python/cpython/pull/15492
___
Python tracker
<https://bugs.python.org/issue34
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
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
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
Change by Andrew Svetlov :
--
pull_requests: -15179
___
Python tracker
<https://bugs.python.org/issue34769>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andrew Svetlov :
--
pull_requests: +15183
pull_request: https://github.com/python/cpython/pull/15492
___
Python tracker
<https://bugs.python.org/issue34
Change by Andrew Svetlov :
--
pull_requests: +15183, 15184
pull_request: https://github.com/python/cpython/pull/15492
___
Python tracker
<https://bugs.python.org/issue34
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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 ->
Change by Andrew Svetlov :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Thanks for the report xtreak, I'll make a fix.
--
___
Python tracker
<https://bugs.python.org/issue36373>
___
___
Pytho
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
Change by Andrew Frost :
--
pull_requests: +15522
pull_request: https://github.com/python/cpython/pull/15881
___
Python tracker
<https://bugs.python.org/issue7
Change by Andrew Svetlov :
--
pull_requests: +15530
pull_request: https://github.com/python/cpython/pull/15889
___
Python tracker
<https://bugs.python.org/issue36
Andrew Svetlov added the comment:
Answered in https://github.com/python/cpython/pull/15889
--
___
Python tracker
<https://bugs.python.org/issue36373>
___
___
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.
Change by Andrew Svetlov :
--
pull_requests: +15542
pull_request: https://github.com/python/cpython/pull/15901
___
Python tracker
<https://bugs.python.org/issue36
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Change by Andrew Svetlov :
--
keywords: -3.3regression, patch
___
Python tracker
<https://bugs.python.org/issue38107>
___
___
Python-bugs-list mailing list
Unsub
Change by Andrew Svetlov :
--
keywords: +patch
___
Python tracker
<https://bugs.python.org/issue38107>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Andrew Svetlov added the comment:
Done, thanks!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Yes, please do
--
___
Python tracker
<https://bugs.python.org/issue34634>
___
___
Python-bugs-list mailing list
Unsubscribe:
501 - 600 of 3160 matches
Mail list logo