[issue45823] python stopped working

2021-12-04 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

The reproducer is absent, closing

--
nosy: +asvetlov
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45823>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45896>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset e99c5e039b380199843db4e06974883d9f3ddad0 by Miss Islington (bot) 
in branch '3.10':
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29877)
https://github.com/python/cpython/commit/e99c5e039b380199843db4e06974883d9f3ddad0


--

___
Python tracker 
<https://bugs.python.org/issue45896>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 4203a5d1918ca874e305806b787e3c8c6fc35e3e by Miss Islington (bot) 
in branch '3.9':
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29878)
https://github.com/python/cpython/commit/4203a5d1918ca874e305806b787e3c8c6fc35e3e


--

___
Python tracker 
<https://bugs.python.org/issue45896>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset f27bef30438d2f07f19de91e021f34b77ccc4b20 by Rob in branch 'main':
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857)
https://github.com/python/cpython/commit/f27bef30438d2f07f19de91e021f34b77ccc4b20


--

___
Python tracker 
<https://bugs.python.org/issue45896>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39529] Deprecate get_event_loop()

2021-12-01 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Ages ago, get_event_loop() did not return the current running loop if called 
from async function context; it returned a loop instance registered with 
previous set_event_loop(...) call instead.

Later we fixed get_event_loop() behavior in 3.5.4 IIRC and added 
get_running_loop() in 3.7

set_event_loop() doesn't make sense now from my perspective.

--

___
Python tracker 
<https://bugs.python.org/issue39529>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39529] Deprecate get_event_loop()

2021-12-01 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

IMHO, asyncio.set_event_loop() and 
policy.get_event_loop()/policy.set_event_loop() are not deprecated by oversight.

In IPython, I think you could use new_event_loop() for getting a new loop 
instance.
Then, save the loop reference somewhere as a direct attribute, threading.local 
or ContextVar.
Calling loop.run_until_complete() looks pretty normal in your situation.

At my job, we have Runner class, the basic usage is:
with Runner() as runner:
runner.run(async_func())

The implementation is pretty close to asyncio.run() but runner.run(...) can be 
called multiple times. Async context manager interface is responsible for 
resource closing.

Maybe I should extract the implementation into a third-party library, I've 
found this concept useful for CLI applications at least.

--

___
Python tracker 
<https://bugs.python.org/issue39529>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-11-30 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 99a9b343316172f049a52b39a406f0c0c42c106f by Miss Islington (bot) 
in branch '3.9':
bpo-37658: Actually return result in race condition (GH-29202) (GH-29832)
https://github.com/python/cpython/commit/99a9b343316172f049a52b39a406f0c0c42c106f


--

___
Python tracker 
<https://bugs.python.org/issue37658>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-11-29 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue43498>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19460] Add test for MIMENonMultipart

2021-11-29 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.org/issue19460>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-29 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45813>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-11-29 Thread Andrew Svetlov

Andrew Svetlov  added the comment:


New changeset 7431448b817d3bf87f71661cf8f3d537807ab2e2 by Jakub Kulík in branch 
'main':
bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)
https://github.com/python/cpython/commit/7431448b817d3bf87f71661cf8f3d537807ab2e2


--
message_count: 10.0 -> 11.0
nosy: +miss-islington
nosy_count: 11.0 -> 12.0
pull_requests: +28068
pull_request: https://github.com/python/cpython/pull/29836

___
Python tracker 
<https://bugs.python.org/issue43498>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-11-29 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
assignee:  -> asvetlov

___
Python tracker 
<https://bugs.python.org/issue43498>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-11-29 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks for the report.

Atomic copy (`list(self.processes.values()`) should fix the bug, sure.

I doubt if writing a reliable test for this situation is possible; 
multithreading is hard.

I think we can accept a patch without a test but with an inline comment that 
describes why copy is crucial.

--
versions: +Python 3.11

___
Python tracker 
<https://bugs.python.org/issue43498>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-11-29 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 934a82623793e9d52b85f74d5395d65927a52205 by Sam Bull in branch 
'main':
bpo-37658: Actually return result in race condition (GH-29202)
https://github.com/python/cpython/commit/934a82623793e9d52b85f74d5395d65927a52205


--

___
Python tracker 
<https://bugs.python.org/issue37658>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19460] Add test for MIMENonMultipart

2021-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 209cec8a2a2e845df5af764a9171af05a2a4c8e3 by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-19460: Add test for MIMENonMultipart (GH-29817) (#29819)
https://github.com/python/cpython/commit/209cec8a2a2e845df5af764a9171af05a2a4c8e3


--

___
Python tracker 
<https://bugs.python.org/issue19460>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19460] Add test for MIMENonMultipart

2021-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 2c398a5acf85d1bbc5796f3385972d0759b90e54 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-19460: Add test for MIMENonMultipart (GH-29817) (GH-29818)
https://github.com/python/cpython/commit/2c398a5acf85d1bbc5796f3385972d0759b90e54


--

___
Python tracker 
<https://bugs.python.org/issue19460>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19460] Add test for MIMENonMultipart

2021-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 46c8d915715aa2bd4d697482aa051fe974d440e1 by 180909 in branch 
'main':
bpo-19460: Add test for MIMENonMultipart (GH-29817)
https://github.com/python/cpython/commit/46c8d915715aa2bd4d697482aa051fe974d440e1


--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue19460>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45568] @asynccontextmanager is missing in decorator usage example

2021-11-25 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45568] @asynccontextmanager is missing in decorator usage example

2021-11-25 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
versions: +Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45568] @asynccontextmanager is missing in decorator usage example

2021-11-25 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 52d10f6485a168141e7a50d68f9a9566fdd8379d by Andrew Svetlov in 
branch '3.10':
[3.10] bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151) 
(GH-29779)
https://github.com/python/cpython/commit/52d10f6485a168141e7a50d68f9a9566fdd8379d


--

___
Python tracker 
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45900] Type annotations needed for convenience functions in ipaddress module

2021-11-25 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Typing for stdlib is provided by https://github.com/python/typeshed
CPython policy discourages embedded typing declarations.

--
nosy: +asvetlov
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45900>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45568] @asynccontextmanager is missing in decorator usage example

2021-11-25 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
nosy: +asvetlov
nosy_count: 3.0 -> 4.0
pull_requests: +28016
pull_request: https://github.com/python/cpython/pull/29779

___
Python tracker 
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-11-24 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

You are correct, the first statement is outdated.

Please feel free to make a pull request.

--

___
Python tracker 
<https://bugs.python.org/issue45896>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28806] Improve the netrc library

2021-11-17 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
versions: +Python 3.11 -Python 3.7

___
Python tracker 
<https://bugs.python.org/issue28806>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28806] Improve the netrc library

2021-11-17 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 15409c720be0503131713e3d3abc1acd0da07378 by Emmanuel Arias in 
branch 'main':
bpo-28806: Continue work: improve the netrc library (GH-26330)
https://github.com/python/cpython/commit/15409c720be0503131713e3d3abc1acd0da07378


--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue28806>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45792] contextvars.Token has wrong module name in Sphinx's objects.inv

2021-11-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45792>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45752] copy module doc wrongly says it doesn't copy arrays

2021-11-14 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45752>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45752] copy module doc wrongly says it doesn't copy arrays

2021-11-14 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset b7360ae395e9e633d384d16064c5dc04a9841e19 by M. Mostafa Farzan in 
branch 'main':
bpo-45752: Fix no-support examples in 'copy' docs (GH-29548)
https://github.com/python/cpython/commit/b7360ae395e9e633d384d16064c5dc04a9841e19


--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue45752>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 4c792f39e688b11c7c19e411ed4f76a7baa44638 by Hong Xu in branch 
'main':
bpo-45772: socket.socket should be a class instead of a function (GH-23960)
https://github.com/python/cpython/commit/4c792f39e688b11c7c19e411ed4f76a7baa44638


--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue45772>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45792] contextvars.Token has wrong module name in Sphinx's objects.inv

2021-11-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 8b6a474071bcc88ec3453e16f079181e551513c3 by Miss Islington (bot) 
in branch '3.9':
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29536)
https://github.com/python/cpython/commit/8b6a474071bcc88ec3453e16f079181e551513c3


--

___
Python tracker 
<https://bugs.python.org/issue45792>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45792] contextvars.Token has wrong module name in Sphinx's objects.inv

2021-11-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 628667ac9a634c7a7fa7f681dd2f98ff5841c843 by Miss Islington (bot) 
in branch '3.10':
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29535)
https://github.com/python/cpython/commit/628667ac9a634c7a7fa7f681dd2f98ff5841c843


--

___
Python tracker 
<https://bugs.python.org/issue45792>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45792] contextvars.Token has wrong module name in Sphinx's objects.inv

2021-11-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset e501d70b347c5093018d12482c30a7a98aab86d0 by Hynek Schlawack in 
branch 'main':
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533)
https://github.com/python/cpython/commit/e501d70b347c5093018d12482c30a7a98aab86d0


--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue45792>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28533] Remove asyncore, asynchat and smtpd modules

2021-11-11 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

> One concern I have is when users follow internet examples and look out
for these modules or examples.

There is an option: keep removed modules but replace each module content
with 'raise ImportError("Please use  instead")' stub.
The actual module removal can be postponed for years until most internet
resources reflect this fact.

On Thu, Nov 11, 2021 at 8:43 PM Senthil Kumaran 
wrote:

>
> Senthil Kumaran  added the comment:
>
> +1 to these modules removal.
>
> One concern I have is when users follow internet examples and look out for
> these modules or examples.
>
> What is the best way to show them the modern usage?
>
> - Should Python docs show some example snippet of the most common usage of
> aiosmtpd ?
> - Echo server / client using asyncio.
>
> A stdlib page dedicated to removal, and showing examples using these
> modules, especially aiostmpd as it is not a part of stdlib, might be a good
> idea.
>
> --
> nosy: +orsenthil
>
> ___
> Python tracker 
> <https://bugs.python.org/issue28533>
> ___
>

--

___
Python tracker 
<https://bugs.python.org/issue28533>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-03 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

PR for documentation fix is appreciated.

Random fails to bind the same port if free ports are available is kind of 
regression.

Is tornado the only example or you are aware of other libraries with such 
behavior?

--

___
Python tracker 
<https://bugs.python.org/issue45693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-03 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Tornado solution sounds weak; it can fail the server start if free ports are 
available.

I concur with Eric, I'm not aware of an OS API call that binds both IPv4 and 
IPv6 to the same random port.

--

___
Python tracker 
<https://bugs.python.org/issue45693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45625] Add support for top-level await

2021-11-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

As people write above, Python supports multiple async frameworks, asyncio is 
not the single choice.

You should select and maybe configure the async framework before executing your 
first `await` statement.

That's why the proposal doesn't work in Python.

Both javascript and C# are designed slightly differently: they have the only 
async subsystem that is deeply built into the language. It allows *implicit* 
async engine initialization and starting.

Sorry, should close the issue.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45625>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45671] str(CancelledError()) is empty

2021-10-29 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I don't think that we need to change something with the current behavior.

It exists for years; very many Python exceptions return an empty string on 
`str(exc)` but return something useful on `repr(exc)`.

If you arguing to change the behavior -- all such exceptions should be changed, 
not CancelledError only.

--

___
Python tracker 
<https://bugs.python.org/issue45671>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45416>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks, guys!

--

___
Python tracker 
<https://bugs.python.org/issue45416>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45262] crash if asyncio is used before and after re-initialization if using python embedded in an application

2021-09-22 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I guess the fix requires switching C Extension types from static to heap for 
_asyncio module.
It is possible for sure but requires a non-trivial amount of work.

We need a champion for the issue.

--

___
Python tracker 
<https://bugs.python.org/issue45262>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45194] asyncio scheduler jitter

2021-09-14 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

asyncio provides the preemptive concurrency, not the real-time one.
It means that the exact time of task switches depends on other tasks' execution 
and can vary by design.

Sorry, the jitter is unavoidable.

--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45194>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44604] [Enhancement] Asyncio task decorator to provide interface to define async DAGs (similar to dask's delayed interface)

2021-07-13 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I'm not convinced why @task decorator should be a part of asyncio.

You can provide the implementation as a part of some third-party library on 
pypy.org. Looks like it doesn't require any change of asyncio itself.

--

___
Python tracker 
<https://bugs.python.org/issue44604>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43832] asyncio + multiprocessing = core dump in sem_trywait

2021-07-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue43832>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41756] Do not always use exceptions to return result from coroutine

2021-05-05 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41756>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +24529
pull_request: https://github.com/python/cpython/pull/25846

___
Python tracker 
<https://bugs.python.org/issue44011>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +24526
pull_request: https://github.com/python/cpython/pull/25842

___
Python tracker 
<https://bugs.python.org/issue44011>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 5fb06edbbb769561e245d0fe13002bab50e2ae60 by Andrew Svetlov in 
branch 'master':
bpo-44011: New asyncio ssl implementation (#17975)
https://github.com/python/cpython/commit/5fb06edbbb769561e245d0fe13002bab50e2ae60


--

___
Python tracker 
<https://bugs.python.org/issue44011>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +24507
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17975

___
Python tracker 
<https://bugs.python.org/issue44011>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-02 Thread Andrew Svetlov


New submission from Andrew Svetlov :

There is a PR created a long time ago.
Finally, I've ported tests for it also.

The documentation doesn't mention new ssh_shutdown_timeout parameter yet.

The latest changes from https://github.com/MagicStack/uvloop/pull/385 can be 
applied separately.

--
components: asyncio
messages: 392726
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Borrow asyncio ssl implementation from uvloop
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue44011>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2021-04-13 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks for the reminder.
You are correct, the mentioned PR should set 
_SSLProtocolTransport._start_tls_compatible to True

--

___
Python tracker 
<https://bugs.python.org/issue37179>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43736] asyncio create_task() odd behavior

2021-04-06 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

1. Please consider `await` as a 'yield point': the point where the current task 
may be suspended to get other tasks a chance to be executed. 
It can be any `await`, not necessarily waiting for a task.  Just a point where 
asyncio event loop gives a chance to roll an iteration.

Note: no suspension happens if the argument is 'ready' already.

2. If we design asyncio from scratch we can consider the separation of task 
creation and start. Unfortunately, the ship has sailed many years ago. The 
behavior cannot be changed without breaking virtually every asyncio program, 
sorry.

--
resolution: remind -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue43736>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42703] Asyncio Event Documentation Links Incorrect

2020-12-23 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue42703>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42703] Asyncio Event Documentation Links Incorrect

2020-12-23 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset d90ff376813843310a6f9ccc96551fa1521e8fef by Matt Fowler in branch 
'master':
BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)
https://github.com/python/cpython/commit/d90ff376813843310a6f9ccc96551fa1521e8fef


--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue42703>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42682] awaiting a wrapped asyncio.Task multiple times gives long, repeative tracebacks

2020-12-23 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

The traceback contains frames from asyncio internal machinery, that's why the 
traceback is long.

IFIAK Python standard library never filters such calls, asyncio is not an 
exception.

On the other hand, well-known pytest library supports `__tracebackhide__ = 
True` for skipping pytest internals in test failure reports.
I'm not sure if we want to do such black magic though.

Plus, sometimes an information about internals is helpful to detect the actual 
source of the problem,

I have no clear vision of how to skip internal frames easily. 

Yuri, maybe you have an idea?

--

___
Python tracker 
<https://bugs.python.org/issue42682>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31904] Python should support VxWorks RTOS

2020-12-17 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset ba760f3710eccdfae2b680a5f94fe0160ddb1536 by pxinwr in branch 
'master':
bpo-31904: Skip some asyncio tests on VxWorks (#23815)
https://github.com/python/cpython/commit/ba760f3710eccdfae2b680a5f94fe0160ddb1536


--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue31904>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-12-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 66d3b589c44fcbcf9afe1e442d9beac3bd8bcd34 by Chris Jerdonek in 
branch 'master':
bpo-38323: Add guard clauses in MultiLoopChildWatcher. (#22756)
https://github.com/python/cpython/commit/66d3b589c44fcbcf9afe1e442d9beac3bd8bcd34


--

___
Python tracker 
<https://bugs.python.org/issue38323>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7

___
Python tracker 
<https://bugs.python.org/issue42644>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset b32d8b4f9bcd2e7d11240b6b9de0262cf8f5e09d by Matthias Bussonnier 
in branch 'master':
bpo-42644: Validate values in logging.disable() (#23786)
https://github.com/python/cpython/commit/b32d8b4f9bcd2e7d11240b6b9de0262cf8f5e09d


--

___
Python tracker 
<https://bugs.python.org/issue42644>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
type: crash -> behavior

___
Python tracker 
<https://bugs.python.org/issue42644>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
components: +Library (Lib) -asyncio

___
Python tracker 
<https://bugs.python.org/issue42644>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42644] logging.disable('WARN') breaks AsyncIO

2020-12-15 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Reporting what? Please elaborate.

--

___
Python tracker 
<https://bugs.python.org/issue42644>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42636] shielded task exception never retrieved when outer task cancelled

2020-12-14 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks for the report.

I didn't test but looks like `outer.exception()` call can suppress the message 
about not retrieved exception.

--

___
Python tracker 
<https://bugs.python.org/issue42636>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42306] wrong exception handling in case asyncio.shiled usage

2020-12-14 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Sorry, this issue is not reproduced on 3.8-3.9, 3.7 is in security mode.
The issue doesn't belong to the security set.
Closing.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue42306>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26582] asyncio documentation links to wrong CancelledError

2020-12-04 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue26582>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26582] asyncio documentation links to wrong CancelledError

2020-12-04 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Moreover, the issue is outdated.

asyncio.CancelledError is not an alias of concurrent.futures.CancelledError 
starting from Python 3.8

Unfortunately, we should make this not 100% backward compatible change.

--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue26582>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42538] AsyncIO strange behaviour

2020-12-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I understand the issue as the following:

1. You don't save the result of `asyncio.create_task()` somewhere.
The task object is dereferenced and thus you see a warning.

2. With PYTHONASYNCIODEBUG on the task is referenced also by internal debug 
structure, that's why you don't see the warning.

Perhaps we should store a weak reference to task in _source_traceback

Minor thing but nice to have it fixed.

--

___
Python tracker 
<https://bugs.python.org/issue42538>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42526] Exceptions in asyncio.Server callbacks are not retrievable

2020-12-01 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

You can use try/except in handler() and dispatch the exception whatever you 
want.
It doesn't require a new asyncio version, debug-only flag, etc.

--

___
Python tracker 
<https://bugs.python.org/issue42526>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40800] asyncio.sleep(0) should "yield" back to the event loop, but it doesn't behave as expected

2020-12-01 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Agree, not a bug.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue40800>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42526] Exceptions in asyncio.Server callbacks are not retrievable

2020-12-01 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

This is a deliberate decision.
An exception in handling one client connection should not break another 
connected client.

--

___
Python tracker 
<https://bugs.python.org/issue42526>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42392] remove the deprecated 'loop' parameter asyncio API

2020-11-30 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks for your help!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue42392>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42392] remove the deprecated 'loop' parameter asyncio API

2020-11-29 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 86150d39c888579b65841f4391d054b7b3eff9f2 by Yurii Karabas in 
branch 'master':
bpo-42392: Remove deprecated loop parameter from docs (GH-23552)
https://github.com/python/cpython/commit/86150d39c888579b65841f4391d054b7b3eff9f2


--

___
Python tracker 
<https://bugs.python.org/issue42392>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41879] Outdated description of async iterables in documentation of async for statement

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

You are right.

--

___
Python tracker 
<https://bugs.python.org/issue41879>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41818] Lib/pty.py major revision

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 74311aeb45b52cc145d27d9fca99f01874d6882d by Soumendra Ganguly in 
branch 'master':
bpo-41818: Fix test_master_read() so that it succeeds on all platforms that 
either raise OSError or return b"" upon reading from master (GH-23536)
https://github.com/python/cpython/commit/74311aeb45b52cc145d27d9fca99f01874d6882d


--

___
Python tracker 
<https://bugs.python.org/issue41818>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41879] Outdated description of async iterables in documentation of async for statement

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Both mentioned links have the correct code.
They use sync __aiter__ and async __anext__

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41879>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42489] Wrong method signature in python Documentation

2020-11-28 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
assignee:  -> docs@python
components: +Documentation -macOS
nosy: +docs@python
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue42489>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41562] StreamReaderProtocol inheritance

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Fixing a non-broken thing is not a world-class idea, I think.

--

___
Python tracker 
<https://bugs.python.org/issue41562>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34215] streams.py:IncompleteReadError message is unclear when expected is None

2020-11-28 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue34215>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34215] streams.py:IncompleteReadError message is unclear when expected is None

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset df6c8bcffef3380869c8f76317610ce452880b25 by Miss Islington (bot) 
in branch '3.9':
bpo-34215: Clarify IncompleteReadError message when "expected" is None 
(GH-21925) (GH-23539)
https://github.com/python/cpython/commit/df6c8bcffef3380869c8f76317610ce452880b25


--

___
Python tracker 
<https://bugs.python.org/issue34215>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42489] Wrong method signature in python Documentation

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset d41ec65ab7411e877ca33d05e8c900feca530635 by Zackery Spytz in 
branch 'master':
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
https://github.com/python/cpython/commit/d41ec65ab7411e877ca33d05e8c900feca530635


--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue42489>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34215] streams.py:IncompleteReadError message is unclear when expected is None

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 4498e98a6bdf017d3b65fa679baf4c797909beb6 by Miss Islington (bot) 
in branch '3.8':
bpo-34215: Clarify IncompleteReadError message when "expected" is None 
(GH-21925) (#23540)
https://github.com/python/cpython/commit/4498e98a6bdf017d3b65fa679baf4c797909beb6


--

___
Python tracker 
<https://bugs.python.org/issue34215>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41756] Do not always use exceptions to return result from coroutine

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Can we close the issue?

--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue41756>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34215] streams.py:IncompleteReadError message is unclear when expected is None

2020-11-28 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
versions: +Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue34215>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34215] streams.py:IncompleteReadError message is unclear when expected is None

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 8085f742f4adfbc85f13fc734dfab036aa23acfb by Zackery Spytz in 
branch 'master':
bpo-34215: Clarify IncompleteReadError message when "expected" is None 
(GH-21925)
https://github.com/python/cpython/commit/8085f742f4adfbc85f13fc734dfab036aa23acfb


--

___
Python tracker 
<https://bugs.python.org/issue34215>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41241] Unnecessary Type casting in 'if condition'

2020-11-28 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41241>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38599] Deprecate creation of asyncio object when the loop is not running

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Fixed by #42392

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
superseder:  -> remove the deprecated 'loop' parameter asyncio API
versions: +Python 3.10 -Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38599>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42392] remove the deprecated 'loop' parameter asyncio API

2020-11-28 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
title: remove the 'loop' parameter from __init__ in all classes in 
asyncio.locks -> remove the deprecated 'loop' parameter asyncio API

___
Python tracker 
<https://bugs.python.org/issue42392>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42347] loop.call_exception_handler documentation is lacking

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Partially addressed by https://github.com/python/cpython/pull/21735

--

___
Python tracker 
<https://bugs.python.org/issue42347>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42466] asyncio loop.getaddrinfo raises RuntimeError

2020-11-28 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue42466>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-28 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset e4fe303b8cca525e97d44e80c7e53bdab9dd9187 by Yurii Karabas in 
branch 'master':
bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess 
(GH-23521)
https://github.com/python/cpython/commit/e4fe303b8cca525e97d44e80c7e53bdab9dd9187


--

___
Python tracker 
<https://bugs.python.org/issue42392>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41818] Lib/pty.py major revision

2020-11-27 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset f5a19ead4ba8c81cc27d5a530f830f4709ce240e by Soumendra Ganguly in 
branch 'master':
bpo-41818: Make test_openpty() avoid unexpected success due to number of rows 
and/or number of columns being == 0. (GH-23526)
https://github.com/python/cpython/commit/f5a19ead4ba8c81cc27d5a530f830f4709ce240e


--

___
Python tracker 
<https://bugs.python.org/issue41818>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42466] asyncio loop.getaddrinfo raises RuntimeError

2020-11-26 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Because it did work in a gray area.
The finalization logic has slightly changed, some tricks that were working 
before now fails.
Sure, other undocumented tricks start working :)

The rule of thumb: please stop and close the asyncio loop before exiting the 
program. This rule allows for avoiding situations like this.

--

___
Python tracker 
<https://bugs.python.org/issue42466>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42466] asyncio loop.getaddrinfo raises RuntimeError

2020-11-26 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Because you have `test.start()` and immediately finish the script.

The interpreted goes to *shutdown* state and implicitly waits for `test.join()` 
because the test thread is not a daemon.

--

___
Python tracker 
<https://bugs.python.org/issue42466>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41332] connect_accepted_socket() missing from AbstractEventLoop

2020-11-26 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 
<https://bugs.python.org/issue41332>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41332] connect_accepted_socket() missing from AbstractEventLoop

2020-11-26 Thread Andrew Svetlov

Andrew Svetlov  added the comment:


New changeset e3ef4d7f653976ac0ccacc4e3fde06bf0e0f139b by Alex Grönholm in 
branch 'master':
bpo-41332: Added missing connect_accepted_socket() to AbstractEventLoop 
(GH-21533)
https://github.com/python/cpython/commit/e3ef4d7f653976ac0ccacc4e3fde06bf0e0f139b


--

___
Python tracker 
<https://bugs.python.org/issue41332>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41562] StreamReaderProtocol inheritance

2020-11-26 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

You are right, but the existing inheritance is also correct (while a little 
redundant).

Sorry, I don't think we should do anything: don't fix if not broken.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41562>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42347] loop.call_exception_handler documentation is lacking

2020-11-26 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Pull Request is welcome!

--

___
Python tracker 
<https://bugs.python.org/issue42347>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42413] Replace custom exceptions for timeouts with TimeoutError

2020-11-26 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Pull Request https://github.com/python/cpython/pull/23520/ applies the 
discussed change to both asyncio and concurrent.futures.

I did the minimally invasive change, libraries still use `asyncio.TimeoutError` 
and `concurrent.futures.TimeoutError` internally but both names are aliases now.

--

___
Python tracker 
<https://bugs.python.org/issue42413>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42413] Replace custom exceptions for timeouts with TimeoutError

2020-11-26 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +22404
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23520

___
Python tracker 
<https://bugs.python.org/issue42413>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42413] Replace custom exceptions for timeouts with TimeoutError

2020-11-26 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
components: +Library (Lib), asyncio

___
Python tracker 
<https://bugs.python.org/issue42413>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   6   7   8   9   10   >