[issue39883] Use BSD0 license for code in docs

2020-09-02 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +21162 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22073 ___ Python tracker

[issue39883] Use BSD0 license for code in docs

2020-09-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +21163 pull_request: https://github.com/python/cpython/pull/22074 ___ Python tracker ___

[issue39883] Use BSD0 license for code in docs

2020-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset e223d06a8b2067c68e9f97c4628c2b0f056dcae6 by Todd in branch 'master': bpo-39883: Use BSD0 license for code in docs (GH-17635) https://github.com/python/cpython/commit/e223d06a8b2067c68e9f97c4628c2b0f056dcae6 --

[issue41695] http.cookies.SimpleCookie.parse could not parse cookies when one cookie value is json

2020-09-02 Thread Martin Panter
Martin Panter added the comment: Perhaps this is a duplicate of Issue 27674, where I think parsing is aborted when a double-quote is seen? -- nosy: +martin.panter superseder: -> Quote mark breaks http.cookies, Cookie.py processing ___ Python

[issue41697] Heap buffer overflow in the parser

2020-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: Smaller repro: ./python.exe -m configparser Bisection shows that this is the call that causes the crash (line 1301): return _impl(self._name, option, raw=raw, vars=vars, fallback=fallback, **kwargs) But just that line doesn't

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-02 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset be435ae2b064dc64f04475bec632862e1dbf605f by Ben Darnell in branch 'master': bpo-39010: Improve test shutdown (#22066) https://github.com/python/cpython/commit/be435ae2b064dc64f04475bec632862e1dbf605f --

[issue41696] asyncio.run interacts surprisingly with debug mode

2020-09-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21160 pull_request: https://github.com/python/cpython/pull/22071 ___ Python tracker

[issue41696] asyncio.run interacts surprisingly with debug mode

2020-09-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +21161 pull_request: https://github.com/python/cpython/pull/22072 ___ Python tracker ___

[issue41697] Heap buffer overflow in the parser

2020-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: Adding 3.9 since the offending commit was backported there. -- versions: +Python 3.9 ___ Python tracker ___

[issue41696] asyncio.run interacts surprisingly with debug mode

2020-09-02 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 0770ad948cb6d9f7f6c4002efd83e27c27069808 by Shantanu in branch 'master': bpo-41696: Fix handling of debug mode in asyncio.run (#22069) https://github.com/python/cpython/commit/0770ad948cb6d9f7f6c4002efd83e27c27069808 --

[issue41697] Heap buffer overflow in the parser

2020-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: Looking at it in lldb, 'last' seems to be bogus. kind = 6961392 ... lineno = -33686019 col_offset = -33686019 end_lineno = 0 end_col_offset = 0 Here I'm stuck. -- ___ Python tracker

[issue41697] Heap buffer overflow in the parser

2020-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, it's not in sysconfig.py, it's in the next step: ./python.exe -E ./setup.py build -- ___ Python tracker ___

[issue41697] Heap buffer overflow in the parser

2020-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: I do have a repro of the crash (with clang 11 no less). But it could be anywhere in sysconfig.py or anything it imports... -- ___ Python tracker

[issue41697] Heap buffer overflow in the parser

2020-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: So that's the last line of the new helper function (in fact the end of the file). Maybe args can still be empty at this point? -- assignee: -> pablogsal priority: normal -> release blocker ___ Python tracker

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Andy Maier
Andy Maier added the comment: Thanks for referencing the PR that reintroduced the old way of documenting it. >From my perspective, the proposal is fine. There are already some cases where >it is documented like that, e.g. str.removeprefix(prefix, /). --

[issue39883] Use BSD0 license for code in docs

2020-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW the PSF board approved the change. -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue41699] Potential memory leak with asyncio and run_in_executor

2020-09-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41699] Potential memory leak with asyncio and run_in_executor

2020-09-02 Thread Sophia Wisdom
New submission from Sophia Wisdom : The below example leaks ~20 megabytes of memory. The amount leaked is related to both the number of items in the list and the number of times `run_in_executor` is called. ``` import asyncio def leaker(): x = list(range(int(1000))) 1/0 async def

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Inada Naoki
Inada Naoki added the comment: Since we have positional-only argument, can we document it as `seek(offset, whence=SEEK_SET, /)`? -- ___ Python tracker ___

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Inada Naoki
Inada Naoki added the comment: For the record, https://github.com/python/cpython/pull/14691/files reintroduced `whence=SEEK_SET`. -- nosy: +inada.naoki ___ Python tracker

[issue41696] asyncio.run interacts surprisingly with debug mode

2020-09-02 Thread Shantanu
Change by Shantanu : -- keywords: +patch pull_requests: +21159 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22069 ___ Python tracker ___

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Andy Maier
New submission from Andy Maier : I stumbled across the problem reported in https://bugs.python.org/issue25030 on Python 3.8: >>> with open('x.txt', 'a') as fp: ... fp.seek(0, whence=os.SEEK_END) ... Traceback (most recent call last): File "", line 2, in TypeError: seek() takes no

[issue41692] Deprecate immortal interned strings: PyUnicode_InternImmortal()

2020-09-02 Thread Inada Naoki
Inada Naoki added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41697] Heap buffer overflow in the parser

2020-09-02 Thread Brad Larsen
New submission from Brad Larsen : It looks like commit 4a97b1517a6b5ff22e2984b677a680b07ff0ce11 introduced a heap buffer overflow: commit 4a97b1517a6b5ff22e2984b677a680b07ff0ce11 (HEAD -> master, origin/master, origin/HEAD) Author: Pablo Galindo Date: Wed Sep 2 17:44:19 2020

[issue41696] asyncio.run interacts surprisingly with debug mode

2020-09-02 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, this is a bug. The default for the `debug` parameter should be `None` and it should only call `loop.set_debug` if a non-None bool value was explicitly passed. Care to submit a PR? -- ___ Python tracker

[issue41696] asyncio.run interacts surprisingly with debug mode

2020-09-02 Thread Shantanu
New submission from Shantanu : To quote the docs (https://docs.python.org/3/library/asyncio-dev.html): ``` By default asyncio runs in production mode. In order to ease the development asyncio has a debug mode. There are several ways to enable asyncio debug mode: Setting the

[issue41694] python3 futures.as_completed timeout broken if future contains undefined reference

2020-09-02 Thread Josh Rosenberg
Josh Rosenberg added the comment: The problem is a lot simpler than you're making it: 1. You submit a time.sleep(30) task. This begins running immediately 2. You try to submit another task, but a NameError is raised, bypassing the rest of the code (you never call as_completed, with or

[issue32725] Instance of _multiprocessing.PipeConnection-subtype crash on deletion

2020-09-02 Thread Irit Katriel
Irit Katriel added the comment: I was able to reproduce the crash in python 2.7, but in Python 3.10 (after I changed to import PipeConnection from multiprocessing.connection instead of _multiprocessing), it doesn't crash but raises an exception that makes sense when the handle is 0:

[issue41513] High accuracy math.hypot()

2020-09-02 Thread Raymond Hettinger
Change by Raymond Hettinger : Removed file: https://bugs.python.org/file49438/hypot.svg ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41513] High accuracy math.hypot()

2020-09-02 Thread Raymond Hettinger
Change by Raymond Hettinger : Added file: https://bugs.python.org/file49439/hypot.png ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-02 Thread Steve Dower
Steve Dower added the comment: > Could sigint_event be relocated to a platform-dependent extension of > _PyRuntimeState that gets initialized and finalized independent of any module? This, or leaving it where it is and making sure it gets initialised (it really is about emulating certain

[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2020-09-02 Thread Matej Cepl
Matej Cepl added the comment: 3.7 patch applies cleanly even for 3.6.12. -- nosy: +mcepl ___ Python tracker ___ ___

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8de34cdb952a2e3b8d7a9a213845cad01a8cece3 by Pablo Galindo in branch '3.9': [3.9] bpo-41690: Use a loop to collect args in the parser instead of recursion (GH-22053) (GH-22067)

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Abael He
Abael He added the comment: jupyterlab bug -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39349] Add "cancel_futures" parameter to concurrent.futures.Executor.shutdown()

2020-09-02 Thread Kyle Stanley
Kyle Stanley added the comment: Thanks for bringing attention to cancel_futures being missing in the base Executor class and for the PR, Shantanu! -- ___ Python tracker ___

[issue39349] Add "cancel_futures" parameter to concurrent.futures.Executor.shutdown()

2020-09-02 Thread Kyle Stanley
Kyle Stanley added the comment: New changeset a763ee3c583e6a2dfe1b1ac0600a48e8a978ed50 by Shantanu in branch '3.9': [3.9] bpo-39349: Add cancel_futures to Executor.shutdown base class (GH-22023) (GH-22048) https://github.com/python/cpython/commit/a763ee3c583e6a2dfe1b1ac0600a48e8a978ed50

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-09-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: All the pablogsal-* buildbots have been updated -- ___ Python tracker ___ ___

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-09-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: The gps-* bots have been updated. -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue41513] High accuracy math.hypot()

2020-09-02 Thread Raymond Hettinger
Change by Raymond Hettinger : Added file: https://bugs.python.org/file49438/hypot.svg ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41694] python3 futures.as_completed timeout broken if future contains undefined reference

2020-09-02 Thread Dallas Marlow
Dallas Marlow added the comment: I apologize for all the messages, but the more I look into this issue the stranger it seems. The following code does the following: - print the time - execute 3 futures (2 w/ 30s sleeps) - call as_completed - catch the timeout exception - print the time again

[issue16003] thread_PyThread_start_new_thread fails with a generic error

2020-09-02 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +21158 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22068 ___ Python tracker

[issue41679] Deprecation warning due to invalid escape sequences in Doc/tools/extensions/peg_highlight.py

2020-09-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21157 pull_request: https://github.com/python/cpython/pull/22067 ___ Python tracker ___

[issue41631] _ast module: get_global_ast_state() doesn't work with Mercurial lazy import

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: At commit ac46eb4ad6662cf6d771b20d8963658b2186c48c ("bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)"): --- static struct PyModuleDef _astmodule = { PyModuleDef_HEAD_INIT, "_ast", NULL, sizeof(astmodulestate),

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4a97b1517a6b5ff22e2984b677a680b07ff0ce11 by Pablo Galindo in branch 'master': bpo-41690: Use a loop to collect args in the parser instead of recursion (GH-22053)

[issue41694] python3 futures.as_completed timeout broken if future contains undefined reference

2020-09-02 Thread Dallas Marlow
Dallas Marlow added the comment: I also verified that this issue persists with blocking futures other than sleep calls: import concurrent.futures import subprocess with concurrent.futures.ThreadPoolExecutor() as ex: futures = [ ex.submit(subprocess.run, ['sleep',

[issue41695] http.cookies.SimpleCookie.parse could not parse cookies when one cookie value is json

2020-09-02 Thread Benoît Brayer
New submission from Benoît Brayer : Using python3.8.5, SimpleCookie parser seems to be unable to load the cookie string when a json string is used inside one of the cookie values. I did not try to replay using other python3 versions yet. Please use the following code to replay the bug: >>>

[issue41694] python3 futures.as_completed timeout broken if future contains undefined reference

2020-09-02 Thread Dallas Marlow
Dallas Marlow added the comment: After closer inspection it seems as though timeouts are not working as I would expect even when there are no undefined references. The following code runs for 30s when I would expect a timeout exception thrown after 1 second. as_completed eventually does

[issue41689] allow __text_signature__ to work for c heap types

2020-09-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 3940333637b98a2781869977b077552514784529 by Benjamin Peterson in branch 'master': closes bpo-41689: Preserve text signature from tp_doc in C heap type creation. (GH-22058)

[issue41694] python3 futures.as_completed timeout broken if future contains undefined reference

2020-09-02 Thread Dallas Marlow
New submission from Dallas Marlow : I recently noticed that timeouts do not work with futures.as_completed if a future contains an undefined variable or method. The following code runs for 30 seconds which I believe is a bug as I would expect the invalid print future to throw an exception

[issue41692] Deprecate immortal interned strings: PyUnicode_InternImmortal()

2020-09-02 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not convinced. Isn't the real problem that exc_value is a str, and you're just hiding that problem now? -- ___ Python tracker ___

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Abael He
Abael He added the comment: "traceback.py" exception occurred During handling of the jupyter exception; that denotes we need more robust "traceback.py"; i have submit PR: https://github.com/python/cpython/pull/22064 -- ___ Python tracker

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-02 Thread Ben Darnell
Ben Darnell added the comment: I've fixed the test and added some commentary about the different levels of clean shutdown we must do to quiet all the warnings: https://github.com/python/cpython/pull/22066 -- ___ Python tracker

[issue38055] Starting multiprocessing.Process raises FileNotFoundError unexpectedly

2020-09-02 Thread Irit Katriel
Irit Katriel added the comment: On windows 10, Python 3.10 I don't get a FileNotFoundError from this script. Which system and python version are you seeing it on? -- nosy: +iritkatriel ___ Python tracker

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-02 Thread Ben Darnell
Change by Ben Darnell : -- pull_requests: +21156 pull_request: https://github.com/python/cpython/pull/22066 ___ Python tracker ___

[issue41691] Idle 3.8.5 on Win64 won't save a file if it didn't include a newline when it was opened (ex: opening empty file)

2020-09-02 Thread David Crespo
David Crespo added the comment: Thanks for your answers. I tried to search if the bug was already reported using some text searches but I couldn't find it so I opened a new one. Next time I'll try what you recommend. Regards and thanks for keeping Python in good shape! --

[issue41528] Use math module in turtle

2020-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: You could post a suggested replacement for a couple of the expressions, with the warning that we would not necessarily use it. math.hypot has recently be worked over so that it is perhaps more accurate than the standard C version. --

[issue41691] Idle 3.8.5 on Win64 won't save a file if it didn't include a newline when it was opened (ex: opening empty file)

2020-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: For future reference, bpo has a search function. Searching with component = IDLE and status = Closed or Don't care would have found this. -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> IDLE: edit/save files

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: This looks like a problem with jupyter, possibly related to the permission error. Have you tried a jupyter forum for help? -- nosy: +eric.smith ___ Python tracker

[issue41679] Deprecation warning due to invalid escape sequences in Doc/tools/extensions/peg_highlight.py

2020-09-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21155 pull_request: https://github.com/python/cpython/pull/22065 ___ Python tracker

[issue41675] Modernize siginterrupt calls

2020-09-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f9c5e3f5f61cd380f8a17c814766fc3730b7fbdf by Pablo Galindo in branch 'master': bpo-41675: Modernize siginterrupt calls (GH-22028) https://github.com/python/cpython/commit/f9c5e3f5f61cd380f8a17c814766fc3730b7fbdf --

[issue41675] Modernize siginterrupt calls

2020-09-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-41692: "Deprecate immortal interned strings: PyUnicode_InternImmortal()". -- versions: +Python 3.10 -Python 3.9 ___ Python tracker

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Abael He
Change by Abael He : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Abael He
New submission from Abael He : Abaels-MBP:notebook-myfork abaelhe$ pip install jupyterlab_powerpoint Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://mirror.baidu.com/pypi/simple Collecting

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-09-02 Thread David Edelsohn
David Edelsohn added the comment: I have updated edelsohn-aix-ppc64 edelsohn-debian-z edelsohn-fedora-ppc64 edelsohn-fedora-rawhide-z edelsohn-fedora-z edelsohn-rhel-z edelsohn-rhel8-z edelsohn-sles-z aixtools-aix-power6 -- ___ Python tracker

[issue41692] Deprecate immortal interned strings: PyUnicode_InternImmortal()

2020-09-02 Thread STINNER Victor
New submission from STINNER Victor : Python has the concept of "immortal" interned strings: PyUnicode_InternImmortal(). The feature was first introduced in the Python 2 "str" (bytes) type, bpo-576101 (commit 45ec02aed14685c353e55841b5acbc0dadee76f8). New PyString_InternImmortal() function.

[issue41528] Use math module in turtle

2020-09-02 Thread Marek Madejski
Marek Madejski added the comment: Complex numbers to be considered, of course. My first pull request, so I'd rather not make such a revolution this time. :) -- ___ Python tracker

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: Ah, I also updated: Fedora Stable ppc64le Fedora Rawhide ppc64le -- ___ Python tracker ___ ___

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: Charris, Pablo and me identified that TCP connections are closed by the load balancer on some buildbot workers. When the "buildbot.python.org" host name is used, TCP connections (tcp port 9020) go through a load balancer. Ernest exposed the TCP port 9020

[issue41691] Idle 3.8.5 on Win64 won't save a file if it didn't include a newline when it was opened (ex: opening empty file)

2020-09-02 Thread E. Paine
E. Paine added the comment: Thank you for reporting this bug (particularly for the detailed instructions for reproduction). This has already been fixed in #41373 just over a month ago, and is already available in the 3.9 release candidate (though the fix will not be released for 3.8 until

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-02 Thread Eryk Sun
Eryk Sun added the comment: > Maybe in the time module? The SIGINT event is also needed by PyOS_Readline, _io (builtin), _winapi (builtin), and _multiprocessing (pyd). Is the time module guaranteed to be imported in 3.x? It appears to get imported incidentally via _PyImportZip_Init

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-02 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg376231 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-02 Thread Eryk Sun
Eryk Sun added the comment: > Maybe in the time module? The SIGINT event is also needed by PyOS_Readline, _io (builtin), _winapi (builtin), and _multiprocessing (pyd). Is the time module guaranteed to be imported in 3.x? It appears to get imported incidentally via _PyImportZip_Init

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: > I can provide some information from the logs of one of the buildbots, or > change a parameter. Let me know. David: can you please change the buildbot client configuration to use "buildbot-api.python.org" host name? This host name doesn't go through the

[issue40352] SocketHandler silently drops log messages on re-connect

2020-09-02 Thread Vinay Sajip
Vinay Sajip added the comment: > It is enough to reopen the socket and send the current message again. A common reason for connection failure in SocketHandler is the other end going offline for some reason. The offline period can often be measured in seconds to hours, or even longer. The

[issue41691] Idle 3.8.5 on Win64 won't save a file if it didn't include a newline when it was opened (ex: opening empty file)

2020-09-02 Thread David Crespo
New submission from David Crespo : Idle won't save a file if it didn't include a newline when it was opened (ex: opening empty file) Steps for reproducing the error: 1) get into some folder in Windows File Explorer 2) right-click on empty space for context menu 3) click new -> create text

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: As far as I know, the issue is fixed, so I close the issue. Thanks Ned for the temporary fix to repair the workflow! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 51fece1bb8d7aa22f114172a256714fe24788e31 by Victor Stinner in branch 'master': bpo-41685: Don't pin setuptools version anymore in Doc/Makefile (GH-22062) https://github.com/python/cpython/commit/51fece1bb8d7aa22f114172a256714fe24788e31

[issue38762] Logging displays wrong "processName" if "sys.modules" is cleared in child process

2020-09-02 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 2.0 -> 3.0 pull_requests: +21154 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22063 ___ Python tracker

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +21153 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22053 ___ Python tracker

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : This program can segfault the parser by stackoverflow: import ast code = "f(" + ",".join(['a' for _ in range(10)]) + ")" print("Ready!") ast.parse(code) the reason is that the rule for arguments has a simple recursion when collecting args:

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: I proposed PR 22062 to unpin the setuptools version. Unless someone steps in and proposes a solution to automate updating the pinned setuptools version, I prefer to not pin the version. -- ___ Python tracker

[issue41685] make doctest on 3.10 (master branch) fails with setuptools 50.0.0

2020-09-02 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21152 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22062 ___ Python tracker ___

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset c0d5c131d9c1ac743058fae99f913b455fc90ac7 by Victor Stinner in branch 'master': bpo-40204: Update Sphinx to version 3.2.1 in Doc/Makefile (GH-22043) https://github.com/python/cpython/commit/c0d5c131d9c1ac743058fae99f913b455fc90ac7 --

[issue37873] unittest: execute tests in parallel

2020-09-02 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41654] Segfault when raising MemoryError

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix Pablo! Thanks for the funny bug report Oleg Hoefling! I didn't expect that anyone would ever subclass MemoryError. -- ___ Python tracker

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 93d50a6a8d0c5d332c11aef267e66573a09765ac by Mohamed Koubaa in branch 'master': bpo-1635741: Port _sha3 module to multi-phase init (GH-21855) https://github.com/python/cpython/commit/93d50a6a8d0c5d332c11aef267e66573a09765ac --

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: By the way, it would be nice to add error handling on: sigint_event = CreateEvent(NULL, TRUE, FALSE, FALSE); See also PR #22049. -- ___ Python tracker

[issue41686] C++ Embedded 'time.sleep()' is not working on Windows host due to 'Py_InitializeEx(0)'

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: Py_InitializeEx() should be modified to always initialize sigint_event, even if install_sigs is equal to zero. Maybe the variable should be moved somewhere else. Maybe in the time module? -- ___ Python tracker

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset a7f026870d2dab7015a94e287bec6dd46cdbf604 by Mohamed Koubaa in branch 'master': bpo-1635741: Port _blake2 module to multi-phase init (GH-21856) https://github.com/python/cpython/commit/a7f026870d2dab7015a94e287bec6dd46cdbf604 --

[issue40352] SocketHandler silently drops log messages on re-connect

2020-09-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21151 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22061 ___ Python tracker

[issue40352] SocketHandler silently drops log messages on re-connect

2020-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In this particular case we do not need a buffer. It is enough to reopen the socket and send the current message again. -- ___ Python tracker

[issue41681] f-string error description seems wrong

2020-09-02 Thread Hanish
Change by Hanish : -- pull_requests: +21150 pull_request: https://github.com/python/cpython/pull/22059 ___ Python tracker ___ ___