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
Change by Andrew Svetlov :
--
pull_requests: +30035
pull_request: https://github.com/python/cpython/pull/31944
___
Python tracker
<https://bugs.python.org/issue47
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
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
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
versions: -Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/issue47035>
___
___
Python-bugs-list mailin
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
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
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
Andrew Svetlov added the comment:
#46994 fixed this problem
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Andrew Svetlov added the comment:
Thanks, Yuri.
I'll take a look.
--
___
Python tracker
<https://bugs.python.org/issue45997>
___
___
Python-bugs-list m
Change by Andrew Svetlov :
--
pull_requests: +30003
pull_request: https://github.com/python/cpython/pull/31910
___
Python tracker
<https://bugs.python.org/issue45
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!
--
resolution: -> fixed
status: -> closed
___
Python tracker
<https://bugs.python.org/issue43253>
___
___
Pyth
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
Change by Andrew Svetlov :
--
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue43253>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46993>
___
___
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
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
-
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
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
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
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
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
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
Andrew Svetlov added the comment:
Known problem, PR is welcome!
I expect the fix is not trivial.
--
___
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 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
Change by Andrew Svetlov :
--
stage: resolved ->
___
Python tracker
<https://bugs.python.org/issue46522>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Andrew Svetlov :
--
stage: resolved -> patch review
___
Python tracker
<https://bugs.python.org/issue44886>
___
___
Python-bugs-list mailing list
Un
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
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
nosy: -asvetlov
___
Python tracker
<https://bugs.python.org/issue37355>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andrew Svetlov :
--
resolution: not a bug ->
status: closed ->
___
Python tracker
<https://bugs.python.org/issue43253>
___
___
Python-bugs-list
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
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
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 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
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 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
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
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
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
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
Change by Andrew Svetlov :
--
resolution: -> wont fix
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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 ssl support was rewritten from scratch.
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Andrew Svetlov added the comment:
Fixed by #41696
--
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Andrew Svetlov added the comment:
Using selectors with blocked files looks weird at least. Should we care?
--
___
Python tracker
<https://bugs.python.org/issue40
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Andrew Svetlov :
--
resolution: -> duplicate
stage: -> 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.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python
3.8, Python 3.9
___
Python tracker
<https://bug
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:
Andrew Svetlov added the comment:
I support the idea but we have no PR yet.
The request is not very strong.
Anyway, if you still want such change -- please recreate an issue.
--
resolution: -> postponed
stage: -> resolved
status: open -&g
Andrew Svetlov added the comment:
No activity, closing.
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
loop.shutdown_default_executor() exists for it, asyncio.run() calls the method
--
nosy: +asvetlov
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bug
Andrew Svetlov added the comment:
Implemented a long time ago, closing
--
nosy: +asvetlov
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Docs were rewritten from scratch in Python 3.8, they are much better now.
--
nosy: +asvetlov
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bug
Andrew Svetlov added the comment:
TaskGroup has landed, aiodag is present on pypi.
Closing.
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Reproducer is missing
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Superseded by #28533
--
nosy: +asvetlov
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Remove asyncore, asynchat and smtpd modules
___
Python tracker
<https://
Change by Andrew Svetlov :
--
resolution: -> duplicate
stage: -> 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:
Please re-read the rejection reason:
https://bugs.python.org/issue33544#msg316962
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Please use TaskGroup from Python 3.11 for structural concurrency.
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Fixed in Python 3.10
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: backport needed -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +29937
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31838
___
Python tracker
<https://bugs.python.org/issu
New submission from Andrew Svetlov :
The method was introduced by Python 3.8
Let's raise DeprecationWarning if third-party task implementation doesn't
support it. Convert the depreciation into a strict error in Python 3.13
--
components: asyncio
messages: 414990
nosy
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +29936
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31837
___
Python tracker
<https://bugs.python.org/issu
New submission from Andrew Svetlov :
Now asyncio creates a new context copy on task creation.
It is the perfect behavior *by default* and should stay as is.
However, sometimes passing an explicit context into a task and using back the
context modified by task code is desired.
The most
Andrew Svetlov added the comment:
The idea looks interesting.
The devil in the details I guess.
I'm curious what is the memory and performance penalty.
Waiting for the PR as the discussion starting point.
--
___
Python tracker
&
Andrew Svetlov added the comment:
> We’d like to merge our implementation into CPython
Could you provide a link first, please?
--
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
The implementation has landed, docs are still required.
--
___
Python tracker
<https://bugs.python.org/issue46771>
___
___
Andrew Svetlov added the comment:
Thanks!
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
'catch (boost::python::error_already_set e)' is equal to `except BaseException
as e:`
In Python, blind catching base exception is dangerous, the code should re-raise
it usually.
The same is true for boost::python usage.
> how would it tell t
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue33886>
___
___
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue30740>
___
___
Change by Andrew Svetlov :
--
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset da80d6b2f3beff519cb1457d5e055168c89f7224 by Stefan Zabka in
branch 'main':
bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
https://github.com/python/cpython/commit/da80d6b2f3beff519cb1457d5e0551
Change by Andrew Svetlov :
--
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46955>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
Thanks for checking
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Please consider passing 'sock' argument as the ownership transfer.
You should not perform any action on 'sock' object directly anymore.
This is true for all asyncio API.
--
resolution: -> not a bug
stage: -> resol
Andrew Svetlov added the comment:
Correct.
3.8 is in security mode.
It doesn't accept regular patches
--
___
Python tracker
<https://bugs.python.org/is
Andrew Svetlov added the comment:
Agree
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
versions: +Python 3.11 -Python 3.10
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
versions: -Python 3.10, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Awesome!
--
___
Python tracker
<https://bugs.python.org/issue46318>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
New changeset 41ddcd3f40f8171a396e57b841a74fcc83884eab by Kumar Aditya in
branch 'main':
bpo-44011: Document ssl_shutdown_timeout added by revisited asyncio SSL
implementation (GH-31597)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
Also, fix is 1 week old. There are no python releases with the fix
included yet.
On Sat, Feb 26, 2022, 06:58 Norman Fung wrote:
>
> Norman Fung added the comment:
>
> Thanks Jelle, let me try upgrade first.
>
> Norman
>
> On Sat,
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 personally don't think that the described opt-in trick should be a part of
asyncio.
A third-party library that patches asyncio.create_task() can be a useful thing
though during the transition period.
We even cannot deprecate asyncio.create_task() righ
Andrew Svetlov added the comment:
-1
Now bare `create_task()` does fire-and-forget action.
After the proposed change it will fail loudly.
Even if this behavior is better it is not backward compatible.
People start blaming and asking "how to return everything
101 - 200 of 1001 matches
Mail list logo