[issue39381] Fix get_event_loop documentation

2020-01-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39386] Prevent double awaiting of async iterator

2020-01-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39399] Cross compilation using different libc is broken

2020-01-21 Thread Andrew Aladjev
Andrew Aladjev added the comment: Hello, it seems like issue 22724 is completely the same. Let's discuss solutions there. Thank you. -- ___ Python tracker <https://bugs.python.org/is

[issue22724] byte-compile fails for cross-builds

2020-01-21 Thread Andrew Aladjev
Change by Andrew Aladjev : -- nosy: +puchenyaka ___ Python tracker <https://bugs.python.org/issue22724> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22724] byte-compile fails for cross-builds

2020-01-21 Thread Andrew Aladjev
Andrew Aladjev added the comment: Hello. I've provided a double recompilation workaround in the following gentoo bug https://bugs.gentoo.org/705970. You can use it for now if you don't want to wait until this issue will be fixed. I will try patches provided by people in this iss

[issue22724] byte-compile fails for cross-builds

2020-01-21 Thread Andrew Aladjev
Andrew Aladjev added the comment: I've made a quick test of all patches provided. All patches have failed to fix it. The problem is more heavy than it looks like. Please look at the following code: PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOS

[issue37909] Thread pool return ref hold memory

2020-01-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: The latest example releases allocated python objects. The memory is returned to allocator which, in turn, can hold it for a while. The allocator is not controlled by Python API. Anyway, if an explicit executor solves your needs -- please just use it

[issue39391] Nondeterministic Pydoc output on functions that have functions as default parameters

2020-01-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Serhiy is right, I doubt if we can do something here. A function address is a part of its __repr__() output. -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue39

[issue39483] Proposial add loop parametr to run in asyncio

2020-01-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: -1. I rather suggest updating telethon example in the following matter: async with main(): with TelegramClient('anon', api_id, api_hash) as client: await client.send_message('me', 'Hello, myself!') You PR brings more

[issue39483] Proposial add loop parametr to run in asyncio

2020-01-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: A client that creates a loop implicitly in the constructor is a weird design from my perspective. You are free to use it, sure -- but please let us keep the freedom to not support such corner cases by asyncio.run() Sorry, I don't know the telethon li

[issue39483] Proposial add loop parametr to run in asyncio

2020-01-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Explicit error is better than error-prone design. Think that we will deprecate asyncio.get_event_loop() and the loop instantiation on-demand in the main thread. -- resolution: -> rejected stage: patch review -> resolved status: open -&g

[issue34793] Remove support for "with (await asyncio.lock):"

2020-02-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 90d9ba6ef10af32e8dfe0649789c3a8ccf419e95 by Andrew Svetlov in branch 'master': bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533) https://github.com/python/cpython/commit/90d9ba6ef10af32e8dfe0649789c3a

[issue34793] Remove support for "with (await asyncio.lock):"

2020-02-01 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39483] Proposial add loop parametr to run in asyncio

2020-02-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> wont fix status: open -> closed ___ Python tracker <https://bugs.python.org/issue39483> ___ ___ Python-bugs-

[issue39529] Deprecate get_event_loop()

2020-02-02 Thread Andrew Svetlov
New submission from Andrew Svetlov : Yuri proposed it for Python 3.8 but at that time the change was premature. Now we can reconsider it for 3.9 The problem is that asyncio.get_event_loop() not only returns a loop but also creates it on-demand if the thread is main and the loop doesn't

[issue39529] Deprecate get_event_loop()

2020-02-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Currently, I'm talking about adding a deprecation only. The asyncio.get_event_loop() function will stay in Python for a while in deprecated status. I don't know the exact period but it should be 3 releases at least I guess, with possibly exte

[issue39529] Deprecate get_event_loop()

2020-02-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Serhiy, maybe I had not understood your proposal properly. If you are asking about deprecating get_event_loop() call from outside of async code but implicit call get_running_loop() without a warning if called from async function -- it sounds like a

[issue39529] Deprecate get_event_loop()

2020-02-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +asyncio nosy: +yselivanov ___ Python tracker <https://bugs.python.org/issue39529> ___ ___ Python-bugs-list mailin

[issue37404] asyncio sock_recv blocks on ssl sockets.

2020-02-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue10572] Move test sub-packages to Lib/test

2020-02-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: -asvetlov ___ Python tracker <https://bugs.python.org/issue10572> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2020-02-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue34788> ___ ___ Python-bugs-list mai

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

2020-02-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +17831 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18457 ___ Python tracker <https://bugs.python.org/issu

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

2020-02-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Victor, sorry. I spent about 4 days in total trying to figure out what is the reason for hanging. I see that the signal handler is installed; but, in a rare situation, it is not called when the process is killed. If I reduce an amount of code executed in a

[issue39625] Traceback needs more details

2020-02-13 Thread Andrew Wall
New submission from Andrew Wall : I encountered a question on Stackoverflow where, unusually, a Traceback was given in full, but I couldn't diagnose the problem. It was like this: Traceback (most recent call last): File "soFailedTraceback.py", line 15, in c = C(C

[issue39698] asyncio.sleep() does not adhere to time.sleep() behavior for negative numbers

2020-02-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: The ship has sailed, this change breaks a lot of existing code without a strong reason. I recall very many cases in third-party libraries and commercial applications where a negative argument for asyncio.sleep() is processed as asyncio.sleep(0) without

[issue39623] __str__ and __repr__ for asyncio.Task still omit arg values

2020-02-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not so easy to find a satisfactory generic approach. An argument can also be 10 MiB length bytes array, a dictionary with 10,000 elements, HTML page, name it. All these objects are printable but their representation is too verbose. Task can have a dozen of

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2020-02-20 Thread Andrew Bartlett
Andrew Bartlett added the comment: This breaks Samba's build: https://bugzilla.samba.org/show_bug.cgi?id=14266 While we are of course able to patch new versions of Samba, this will make it harder to bisect back though Samba history. It would be really great if this kind of change cou

[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

2020-02-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: The second solution doesn't help with breaking infinite loops like while True: pass We need a more robust idea. -- ___ Python tracker <https://bugs.python.org/is

[issue37373] Configuration of windows event loop for libraries

2020-02-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my understanding, the issue is still desirable but we have a lack of >resources. Regarding the patch for tornado, using selectors.SelectSelector for implementing add_reader()/remove_reader() and add_writer()/remove_writer() in ProactorEventLoop

[issue39700] asyncio.selector_events._SelectorTransport: Add logging when sock.getpeername() fails

2020-02-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm not sure. Logging can pollute the logger and make it almost useless. Most of mentioned errno codes are programming errors, a few may happen due network issues. Would you share what reasons did you ob

[issue33840] connection limit on listening socket in asyncio

2020-02-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: For server applications, the reverse proxy in front of the application can limit the connection limit. It is a good workaround because the proxy is required (and most likely is used already) for any non-trivial server app

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

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

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2020-02-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Ido -- ___ Python tracker <https://bugs.python.org/issue39128> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39613] IsolatedAsyncioTestCase closes default event loop

2020-02-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: The behavior is intentional and follows asyncio.run() semantics. Moreover, every test should have a separate event loop instance, this is stressed by IsolatedAsyncioTestCase class name -- resolution: -> wont fix stage: -> resolved status

[issue38988] Killing asyncio subprocesses on timeout?

2020-02-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio doesn't kill subprocess by timeout, that's why test1() doesn't work. The kill is done by signal sending which is asynchronous. That's why test2 may fail at "FAIL(3)" point sometimes. 1-second sleep is enough to stop t

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-02-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: This is a very interesting question. In asyncio, task cancellation is not executed on `task.cancel()` call immediately but the task is *marked* for cancellation. The actual cancellation requires a context switch (await asyncio.sleep(0) or similar) to

[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2020-02-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39759] os.getenv documentation is misleading

2020-02-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I consider a free type for the default as an implementation detail, not the encouraged approach. Since the value is always a string, using the same type for the default sounds like a sane design for me. -- nosy: +asvetlov

[issue39765] asyncio loop.set_signal_handler() may not behave as expected

2020-02-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm sorry. but loop.set_signal_handler() method doesn't exist. -- ___ Python tracker <https://bugs.python.o

[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-02-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Assuming you mean loop.add_signal_handler() method, I would say that a minute-long delay is a sign of long blocking calls in your program. Typical asyncio program blocks the loop for 1-10 milliseconds at most, and signal handlers are called with this delay

[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-02-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Other threads are not related. Speaking about the main thread that runs an event loop with the signal handler installed -- the handler is executed along with other async code. If the loop executes some user-provides async task -- it executes the signal

[issue39609] Set the thread_name_prefix for asyncio's default executor ThreadPoolExecutor

2020-02-27 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39764] PyAsyncGenObject causes task.get_stack() raising AttributeError

2020-03-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4482337decdbd0c6e2150346a68b3616bda664aa by Lidi Zheng in branch 'master': bpo-39764: Make Task.get_stack accept ag_frame (#18669) https://github.com/python/cpython/commit/4482337decdbd0c6e2150346a68b36

[issue39764] PyAsyncGenObject causes task.get_stack() raising AttributeError

2020-03-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2020-03-02 Thread Andrew Bartlett
Andrew Bartlett added the comment: Thanks for the reply. To clarify, it is best to understand where Samba thinks of itself in terms of Python. We use python, but we don't really think of ourselves as a python project, and while we have some developers with a depth of experience i

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2020-03-03 Thread Andrew Bartlett
Andrew Bartlett added the comment: I think we are speaking past each other. Yes, Python 2 is no longer being changed, which is awesome as we need for fear breakage of the older builds that use that for the build system. The issue isn't the particular language feature, or that there

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2020-03-03 Thread Andrew Bartlett
Andrew Bartlett added the comment: ...Python 2.9 or at best 2.10. Of course I mean Python 3.9 or at best 3.10. Sorry for the confusion. -- ___ Python tracker <https://bugs.python.org/issue37

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Would somebody be a champion for the issue? -- ___ Python tracker <https://bugs.python.org/issue39148> ___ ___ Python-bug

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2020-04-08 Thread Andrew Nelson
Change by Andrew Nelson : -- nosy: +Andrew Nelson ___ Python tracker <https://bugs.python.org/issue38501> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40245] Add description meta tags to docs.python.org

2020-04-10 Thread Andrew Zhou
New submission from Andrew Zhou : This isn't a particularly high priority, but it would be nice to have the first paragraph of docs pages show up when searched or posted in Slack, Discord, Twitter, etc. This is done through the description meta tag, as well as Open Graph, etc. A

[issue40579] Second argument to iterator.next not described

2020-05-09 Thread Andrew Black
New submission from Andrew Black : The documentation for the built-in function next (which calls the __next__ method on an iterator) discusses its behavior when the iterator is exhausted. It talks about the StopIteration exception. However, it does not say anything about calling next with

[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

[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

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

[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

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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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: You are right. -- ___ Python tracker <https://bugs.python.org/issue41879> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

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

[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

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

[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

[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

[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

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2021-01-05 Thread Andrew Brunner
Change by Andrew Brunner : -- nosy: +abrunner73 ___ Python tracker <https://bugs.python.org/issue22213> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-01-07 Thread Andrew MacDonald
New submission from Andrew MacDonald : When attempting to read a large file (> 2GB) over HTTPS the read fails with "OverflowError: signed integer is greater than maximum". This occurs with Python >=3.8 and I've been able to reproduce the problem with the below snippet

[issue42989] Bug

2021-01-21 Thread Andrew C
New submission from Andrew C : if playerChoice == "2": reports the ":" as a "syntax error" -- components: Windows messages: 385427 nosy: ASCRong, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Bug type:

[issue37736] asyncio.wait_for is still confusing

2021-02-23 Thread Andrew Borba
Andrew Borba added the comment: > The key word here is "misbehaving". Cooperative concurrency does require > cooperation. Your stance makes sense in an ideal environment where we control every Task that our application deals with. However, there are some cases in wh

[issue40642] Cpython "pystate.h" subdirectory wrong

2021-02-26 Thread Andrew Tomazos
Andrew Tomazos added the comment: The problem occurs if you: #include on *nix systems. Note `/usr/include/` is in the system include path. One workaround is to `-I/usr/include/python3.8` and then `#include `. Another workaround is to comment out: // #include "cp

[issue40642] Cpython "pystate.h" subdirectory wrong

2021-02-26 Thread Andrew Tomazos
Andrew Tomazos added the comment: Related: https://stackoverflow.com/q/63211981/1131467 -- ___ Python tracker <https://bugs.python.org/issue40642> ___ ___ Pytho

[issue40642] Cpython "pystate.h" subdirectory wrong

2021-02-26 Thread Andrew Tomazos
Andrew Tomazos added the comment: After studying the include directives in the Include folder, I think the best fix would be: In Include/cpython/state.h: - #include "cpython/initconfig.h" + #include "initconfig.h" this will mean that state.h will find initc

[issue41202] Allow to provide custom exception handler to asyncio.run()

2020-07-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: I agree with Yuri. Usually, you don't need overriding of the default exception handler. Indeed, if you really need this low-level API I see nothing wrong with `asyncio.get_running_loop()` call. -- ___ P

[issue41242] When concating strings, I think it is better to use += than join the list

2020-07-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41242] When concating strings, I think it is better to use += than join the list

2020-07-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Remi is correct. Closing the issue. -- ___ Python tracker <https://bugs.python.org/issue41242> ___ ___ Python-bugs-list mailin

<    5   6   7   8   9   10   11   12   13   14   >