[issue27580] CSV Null Byte Error

2021-10-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that rejecting the null character is just an implementation artifact. 0 is used both as signalling value for "not set" character parameter and as the end-of-line character in the state automata. We can use different values outside of the ran

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-10-07 Thread Steve Dower
Steve Dower added the comment: If we know which parts of the function are critical, perhaps we should be designing a PGO profile that actually hits them all? The current profile is very arbitrary, basically just waiting for someone motivated enough to figure out a better one. -- __

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: RotatingFileHandler is also affected by the same issue. Both RotatingFileHandler and TimedRotatingFileHandler have a shouldRollover method which, if it returns False, should prevent rollover. I would think that putting something like if not os.path.isfile(

[issue45393] help() on operator precedence has confusing entries "await" "x" and "not" "x"

2021-10-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In past we could backport some simple documentation fixes to security-only branches. But currently only the release manager of the corresponded version has permission to commit to these branches, and we do not want to disturb them for such minor cause. I

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue45402] ERROR: test_sundry (test.test_tools.test_sundry.TestSundryScripts): SystemExit: ERROR: missing _freeze_module

2021-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset ff8859d965815e8b5af346bd90299cfa5568c855 by Victor Stinner in branch 'main': bpo-45402: Fix test_tools.test_sundry() (GH-28786) https://github.com/python/cpython/commit/ff8859d965815e8b5af346bd90299cfa5568c855 -- _

[issue45402] ERROR: test_sundry (test.test_tools.test_sundry.TestSundryScripts): SystemExit: ERROR: missing _freeze_module

2021-10-07 Thread STINNER Victor
STINNER Victor added the comment: Thanks Miro for the bug report, it's now fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue45407] Support buffer protocol for _struct.Struct format argument

2021-10-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I prefer to remove the comment. The format string is a text by its nature, there is no reason to support arbitrary binary data. Bytes objects are only supported for compatibility (with Python 2 strings). -- nosy: +serhiy.storchaka

[issue45403] test_sys: test_stdlib_dir() fails when Python is built outside the source tree

2021-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 768aaf6c433e6a13b82c7bdebd0062c7472c1fc7 by Victor Stinner in branch 'main': bpo-45403: Fix test_sys.test_stdlib_dir() (GH-28785) https://github.com/python/cpython/commit/768aaf6c433e6a13b82c7bdebd0062c7472c1fc7 -- ___

[issue45403] test_sys: test_stdlib_dir() fails when Python is built outside the source tree

2021-10-07 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2021-10-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue16379] SQLite error code not exposed to python

2021-10-07 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27128 pull_request: https://github.com/python/cpython/pull/28809 ___ Python tracker ___ ___

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Łukasz Langa
Łukasz Langa added the comment: Confirmed in 3.10 and 3.11: >>> ast.literal_eval(r'''\ ... \ ... (\ ... \ ''') fish: Job 1, 'python' terminated by signal SIGSEGV (Address boundary error) 3.9 raises SyntaxError: >>> ast.literal_eval(r''' ... \ ... (\ ... \ ''') Traceback (most recent call last

[issue16379] SQLite error code not exposed to python

2021-10-07 Thread miss-islington
miss-islington added the comment: New changeset 8deb7afbd847656842375119f8dbef8aea54 by Erlend Egeberg Aasland in branch 'main': bpo-16379: Fix SQLite version checks in test_module_constants() (GH-28809) https://github.com/python/cpython/commit/8deb7afbd847656842375119f8dbef8aea54 -

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Marking release blocker as a crash is bad for a function that is documented as safe for use on untrusted input so long as it isn't large enough to overflow the stack. https://docs.python.org/3/library/ast.html#ast.literal_eval -- priority: normal

[issue45337] Create venv with pip fails when target dir is under userappdata using Microsoft Store python

2021-10-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +27129 pull_request: https://github.com/python/cpython/pull/28810 ___ Python tracker _

[issue45337] Create venv with pip fails when target dir is under userappdata using Microsoft Store python

2021-10-07 Thread Steve Dower
Steve Dower added the comment: New changeset 6811fdaec825bd6ab64e358a4b480108f5634d2d by Steve Dower in branch 'main': bpo-45337: Use the realpath of the new executable when creating a venv on Windows (GH-28663) https://github.com/python/cpython/commit/6811fdaec825bd6ab64e358a4b480108f5634d2

[issue45337] Create venv with pip fails when target dir is under userappdata using Microsoft Store python

2021-10-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +27130 pull_request: https://github.com/python/cpython/pull/28811 ___ Python tracker ___ __

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27131 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28812 ___ Python tracker __

[issue45405] Python 3.10.0 does not configure on darwin using public llvm / clang

2021-10-07 Thread debohman
debohman added the comment: By "public llvm / clang", I mean the toolchain version released by the llvm project. They just released version 13.0.0 last week. The problem is that version 12 of llvm / clang did not implement --print-multiarch, so this logic in configure was not exercised due

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0219017df7ec41839fd0d56a3076b5f09c58d313 by Pablo Galindo Salgado in branch 'main': bpo-45408: Don't override previous tokenizer errors in the second parser pass (GH-28812) https://github.com/python/cpython/commit/0219017df7ec41839fd0d56

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27132 pull_request: https://github.com/python/cpython/pull/28813 ___ Python tracker ___ ___

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

2021-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 392a89835371baa0fc4bf79ae479abb80661f57d by Matthias Reichl in branch 'main': bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) https://github.com/python/cpython/commit/392a89835371baa0fc4bf79ae479abb80661f57d -- __

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

2021-10-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +27133 pull_request: https://github.com/python/cpython/pull/28815 ___ Python tracker _

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

2021-10-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +27134 pull_request: https://github.com/python/cpython/pull/28816 ___ Python tracker ___ __

[issue45337] Create venv with pip fails when target dir is under userappdata using Microsoft Store python

2021-10-07 Thread miss-islington
miss-islington added the comment: New changeset eabca6e593269301a0b7a36c4dc3525f04f5bb36 by Miss Islington (bot) in branch '3.10': bpo-45337: Use the realpath of the new executable when creating a venv on Windows (GH-28663) https://github.com/python/cpython/commit/eabca6e593269301a0b7a36c4dc

[issue45337] Create venv with pip fails when target dir is under userappdata using Microsoft Store python

2021-10-07 Thread miss-islington
miss-islington added the comment: New changeset 06935bd68e3d89a4cc3f08c1d15eaa651b79a523 by Miss Islington (bot) in branch '3.9': bpo-45337: Use the realpath of the new executable when creating a venv on Windows (GH-28663) https://github.com/python/cpython/commit/06935bd68e3d89a4cc3f08c1d15e

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

2021-10-07 Thread miss-islington
miss-islington added the comment: New changeset 87f0156a229e4cda92ad8e50645c5a71030caf7c by Miss Islington (bot) in branch '3.9': bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) https://github.com/python/cpython/commit/87f0156a229e4cda92ad8e50645c5a71030caf7c --

[issue45337] Create venv with pip fails when target dir is under userappdata using Microsoft Store python

2021-10-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4ce55a2353e07962280181df40af0135aef1cf51 by Pablo Galindo Salgado in branch '3.10': [3.10] bpo-45408: Don't override previous tokenizer errors in the second parser pass (GH-28812). (GH-28813) https://github.com/python/cpython/commit/4ce5

[issue45409] Support non-standard executables in venv

2021-10-07 Thread Steve Dower
New submission from Steve Dower : Currently the venv redirector on Windows is hardcoded for "python.exe" and "pythonw.exe". There is no good reason for this, and it's fairly easy to make the redirector able to invoke any executable in the base environment by inspecting its own name. This wou

[issue45409] Support non-standard executables in venv

2021-10-07 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +27135 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28817 ___ Python tracker _

[issue45409] Support non-standard executables in venv

2021-10-07 Thread Steve Dower
Steve Dower added the comment: Pushed the branch so the changes are out there, but I still need to check (and probably fix) some handling of the Store package layout. The changes now will probably create some executables that won't work (pip.exe and idle.exe), so we might have to go back to

[issue45382] platform() is not able to detect windows 11

2021-10-07 Thread Eryk Sun
Eryk Sun added the comment: > use the build number as reference instead of the major.minor It could check the (major, minor, build) tuple, which allows reporting 10.1+ as "post11" and minimizes hard coding of build numbers. For example, given win32_ver() iterates by (major, minor, build) thr

[issue45351] List all sockets in TCP echo server using streams

2021-10-07 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not clear why you're suggesting this change. Is this additional functionality, or is the current example broken? Is the text wrong, or just the code? -- nosy: +eric.smith ___ Python tracker

[issue45407] Support buffer protocol for _struct.Struct format argument

2021-10-07 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue45405] Python 3.10.0 does not configure on darwin using public llvm / clang

2021-10-07 Thread debohman
debohman added the comment: I can put together a pull request to fix this. The fix is in configure.ac. Should I include the mods from the autoreconf in the PR? -- ___ Python tracker

[issue45405] Python 3.10.0 does not configure on darwin using public llvm / clang

2021-10-07 Thread debohman
debohman added the comment: Also, what branch should the PR be on, 3.10 or main? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue45405] Python does not configure on darwin using public llvm / clang version 13.0.0

2021-10-07 Thread debohman
Change by debohman : -- title: Python 3.10.0 does not configure on darwin using public llvm / clang -> Python does not configure on darwin using public llvm / clang version 13.0.0 versions: -Python 3.10 ___ Python tracker

[issue45405] Python does not configure on darwin using public llvm / clang version 13.0.0

2021-10-07 Thread debohman
debohman added the comment: Okay, I see from the developer guide, that the generated files should be included. Is it permissible to use the current version of autoconf? -- ___ Python tracker ___

[issue45357] Idle does not check user config for extention configuration

2021-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am puzzled by your report. As explained in the top of idlelib/confix-extensions.def, the options for four features are still defined there for compatibility reasons and user changes to those option *are* stored in ~/.idlerc/config-extensions.cfg and read o

[issue45407] Support buffer protocol for _struct.Struct format argument

2021-10-07 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 9f7a94fd66e05ae040a67e32c397091fe5939ced by Jeong YunWon in branch 'main': bpo-45407: Remove outdated XXX comment from Struct___init___impl (GH-28805) https://github.com/python/cpython/commit/9f7a94fd66e05ae040a67e32c397091fe5939ced -- _

[issue45407] Support buffer protocol for _struct.Struct format argument

2021-10-07 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

<    1   2