[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:

[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.or

[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:

[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/cpyt

[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 -&g

[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/issu

[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/issue45

[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 mailin

[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 -

[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.or

[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.or

[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/b7360ae395e9e633d384d16064c5dc04a9841e

[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/4c792f39e688b11c7c19e411ed4f76

[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/8b6a474071bcc88ec3453e16f

[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/628667ac9a634c7a7fa7f681d

[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

[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. Th

[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

[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. -- ___ P

[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

[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

[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.or

[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:

[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

[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 f

[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 asyn

[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.or

[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> ___ ___ Pyth

[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/issue44

[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/issue44

[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/5fb06edbbb769561e245d0fe13002b

[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/issu

[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

[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/issue37

[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

[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.or

[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/d90ff376813843310a6f9ccc96551f

[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 `__tracebackh

[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:

[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/66d3b589c44fcbcf9afe1e442d9bea

[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.or

[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/b32d8b4f9bcd2e7d11240b6b9de026

[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 Unsubscrib

[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 mailin

[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 mailin

[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/is

[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

[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.or

[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

[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 stru

[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/is

[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.or

[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/issue42

[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.or

[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/86150d39c888579b65841f4391d054

[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:

[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 mas

[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://bug

[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 tra

[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/issue41

[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.or

[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/p

[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/d41ec65ab7411e877ca33d05e8c900

[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/p

[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 m

[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 mailin

[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/8085f742f4adfbc85f13

[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.or

[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

[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://

[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/issue42

[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> ___ ___

[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/cpyt

[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/pyth

[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

[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

[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.or

[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/e3ef4d7f653976ac0ccacc4e3fde06

[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

[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 Unsub

[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

[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/issu

[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 mailin

[issue42413] Replace custom exceptions for timeouts with TimeoutError

2020-11-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: Replace custom exception socket.timeout with TimeoutError -> Replace custom exceptions for timeouts with TimeoutError ___ Python tracker <https://bugs.python.org/issu

[issue42466] asyncio loop.getaddrinfo raises RuntimeError

2020-11-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Your snippet exits just after starting. `getaddrinfo()` is called at the interpreter shutdown state. I'm not sure that do you expect to get here. We can put some effort and raise an error with another message but cannot make the example working. I su

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

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: A few functions in `tasks.py` a left and documentation should be updated. -- ___ Python tracker <https://bugs.python.org/issue42

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

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f533cb80cbbb7acdf9ce1978cfba095ce5eeedaa by Yurii Karabas in branch 'master': bpo-42392: Remove loop parameter from asyncio.streams (GH-23517) https://github.com/python/cpython/commit/f533cb80cbbb7acdf9ce1978cfba09

[issue39529] Deprecate get_event_loop()

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think the deprecation of `set_event_loop()` is a good idea. The function is not required by `asyncio.run()` implementation. -- ___ Python tracker <https://bugs.python.org/issue39

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Don't get me wrong. I don't want to put my vote in this hot discussion but mention my use case. test.support can solve my need. On another hand, very many Python batteries exist to solve third-party needs and are not required by CPython itself.

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 87f7ab5359bc12eeb858272b7bd58e132cb9c176 by Andrew Svetlov in branch 'master': bpo-41818: test_openpty succeed on Gentoo, don't expect to fail on this platform (GH-23514) https://github.com/python

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I just needed such functionality for PTY tests: https://github.com/python/cpython/pull/23514 -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue28

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: https://github.com/python/cpython/pull/23514 has the fix, waiting for all buildbots finish before pressing "Merge" button. Gentoo bots are green. -- ___ Python tracker <https://bugs.python.o

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +22401 pull_request: https://github.com/python/cpython/pull/23514 ___ Python tracker <https://bugs.python.org/issue41

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset c13d89955d9a2942c6355d6839d7096323244136 by Soumendra Ganguly in branch 'master': bpo-41818: Updated tests for the standard pty library (GH-22962) https://github.com/python/cpython/commit/c13d89955d9a2942c6355d6839d709

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

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: > Should I create a separate issue for every PR or they all can be done in the > scope of this PR (we can update issue title to match what was done)? Up to you, I don't think it really matters. -- ___

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

2020-11-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python

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

2020-11-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0ec34cab9dd4a7bcddafaeeb445fae0f26afcdd1 by Yurii Karabas in branch 'master': bpo-42392: Remove loop parameter form asyncio locks and Queue (#23420) https://github.com/python/cpython/commit/0ec34cab9dd4a7bcddafaeeb445fae

[issue42445] Assertion in run_coroutine_threadsafe

2020-11-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: "got Future attached to a different loop" means exactly what it says: you create a future object in one loop but awaits it in the different one. This is a programming error. Most likely the error in your script, not in mqtt and definitely not

[issue42445] Assertion in run_coroutine_threadsafe

2020-11-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Transferring the loop instance between threads is not safe. You should create a loop and after that call run_forever() in the same thread. Or, even better, call asynxio.run() in a thread. -- ___ Python tracker

[issue15450] Allow dircmp.subdirs to behave well under subclassing

2020-11-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.4 ___ Python tracker <https://bugs.python.or

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