[issue45992] distutils paths are scattered between PythonXY and PythonXY-32 on WoW64

2021-12-06 Thread Steve Dower
Steve Dower added the comment: They should all be under "-32" when in roaming appdata, because otherwise having 32-bit and 64-bit installs side-by-side will conflict. If these fields were newly added to distutils then should probably fix them to match sysconfig. If they're old and wrong, I'd

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Steve Dower
Steve Dower added the comment: Are you launching "py" from inside MSYS2? Or a regular prompt? What does the output of "py -0p" show? (It should list all the discovered installs) We might need someone who understands how MSYS2 works here, because I don't. --

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28170 pull_request: https://github.com/python/cpython/pull/29944 ___ Python tracker ___

[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-06 Thread James Gerity
James Gerity added the comment: Correction: the bug whose resolution adds the OverflowError mentioned above is bpo-24522, not bpo-43255 -- ___ Python tracker ___

[issue45992] distutils paths are scattered between PythonXY and PythonXY-32 on WoW64

2021-12-06 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: They are old, but so are purelib and platlib, which were changed regardless. The problem is that distutils’s values are now half wrong and half right, neither matching pre-3.10 behaviour, nor matching post-3.10 sysconfig behaviour. -- ___

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Zernoxi
Zernoxi added the comment: I am launching "py" from a regular prompt ("powershell"). I should only have 2 registered python versions in the registry. "py -0p" shows the correct information. One thing to note is that if I "#!/usr/bin/env python3 -V", it will show the correct default python3

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset f16f93e5279f957ca25dd8b91233a44833167a8a by Christian Heimes in branch 'main': bpo-45582: framework build: modPath must not be const (GH-29944) https://github.com/python/cpython/commit/f16f93e5279f957ca25dd8b91233a44833167a8a -- ___

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue27016] BlockingIOError not raised inside function.

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: On a Mac I get the "BlockingIOError: [Errno 35] Resource temporarily unavailable" with both version (with and without the function). -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue41062] Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- type: behavior -> enhancement versions: +Python 3.11 -Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker __

[issue8161] inconsistency behavior in ctypes.c_char_p dereferencing

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: On 3.11 I'm not getting str for the second expression, I get an empty bytes object: >>> import ctypes >>> class T(ctypes.Structure): ... _fields_ = ( ... ('member', ctypes.c_char * 16), ... ) ... >>> print('%r'%((ctypes.c_char * 16)()[:]))

[issue19864] [doc] multiprocessing Proxy docs need locking semantics explained

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: multiprocessing Proxy docs need locking semantics explained -> [doc] multiprocessing Proxy docs need locking semantics explained type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.3, Python 3.4

[issue45436] test_tk.test_configure_type() fails with Tcl/Tk 8.6.11

2021-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: import tkinter as tk tk.Menu(type='') crashes on current Windows 3.9-11 with 8.6.12 -- ___ Python tracker ___ __

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread Mark Dickinson
Mark Dickinson added the comment: I'd support having this functionality available for `format` and for f-strings. (As Steven says, changing %-formatting doesn't seem viable.) It really _is_ awkward to do this in any other way, and I'm reliably informed that normal people don't expect to see

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Steve Dower
Steve Dower added the comment: So if I've understood you, there are three Python installs on your machine. Two of them are Windows builds, which are listed in the registry and discovered by py.exe -0p. The third is the MSYS2 build, which is *not* listed in the registry and is *not* discovere

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28171 pull_request: https://github.com/python/cpython/pull/29946 ___ Python tracker ___

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Steve Dower
Steve Dower added the comment: ("2" and "3" are just arbitrary numbers... substitute however many Python runtimes you actually have, or "N" and "N+1" if you prefer.) -- ___ Python tracker __

[issue45957] _tkinter.TclError: expected boolean value but got ""

2021-12-06 Thread Ali Amin-Nejad
Ali Amin-Nejad added the comment: It seems like it must be a mac-specific issue just on 8.6.11 then if ned couldn't reproduce on 8.6.12. How does one go about upgrading their tkinter version? Thanks -- ___ Python tracker

[issue45957] _tkinter.TclError: expected boolean value but got ""

2021-12-06 Thread Ned Deily
Ned Deily added the comment: > How does one go about upgrading their tkinter version? Since, based on your path names, you appear to be using a Python from miniconda, you should check with that project. Perhaps they have a newer version available. Good luck! -- resolution: -> out o

[issue38523] ignore_dangling_symlinks in shutil.copytree does not apply recursively

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ _

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset fc012d801202a9ea139df143b934778060d51a60 by Christian Heimes in branch 'main': bpo-45847: Fix uuid detection on macOS (GH-29946) https://github.com/python/cpython/commit/fc012d801202a9ea139df143b934778060d51a60 -- __

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Eryk Sun
Eryk Sun added the comment: The shebang "#!/usr/bin/env python" searches PATH for "python" plus the PATHEXT file extensions. The shebang "#!/usr/bin/env python3" uses the highest version of Python 3 from the registry. It doesn't search PATH because Python installations do not necessarily in

[issue46000] NetBSD curses compatibility

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: Could you please open a pull request on GitHub? A PR will run our CI and our bots will verify that your changeset follows our guidelines. -- nosy: +christian.heimes ___ Python tracker

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-06 Thread nobody
New submission from nobody : When using threads, os.replace gives no errors on Linux. On Windows however you get PermissionErrors like: '[WinError 5] Access is denied' for os.replace and '[Errno 13] Permission denied' when reading the os.replace file. The only way I could get this to work was

[issue46000] NetBSD curses compatibility

2021-12-06 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +28172 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29947 ___ Python tracker _

[issue46000] NetBSD curses compatibility

2021-12-06 Thread Thomas Klausner
Thomas Klausner added the comment: Done: https://github.com/python/cpython/pull/29947 -- ___ Python tracker ___ ___ Python-bugs-lis

[issue21761] [doc] language reference describes the role of module.__file__ inaccurately

2021-12-06 Thread Brett Cannon
Brett Cannon added the comment: > "Ultimately, the loader set the values of __file__ and/or __cached__" Change it to "sets" and +1 from me! -- ___ Python tracker ___

[issue44077] IP_RECVTOS option is missing from socket module

2021-12-06 Thread Andrei Kulakov
Change by Andrei Kulakov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2021-12-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: It's a bit more readable to start by stating what a function does rather than what it doesn't do. I also wouldn't worry about possible future minor optimizations that might be added, because if that happens, a simple ".. aside from internal optimizations, ..

[issue21761] [doc] language reference describes the role of module.__file__ inaccurately

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue41174] asyncio.coroutine decorator returns a non-generator function when using PYTHONASYNCIODEBUG

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: asyncio.coroutine was removed in 3.11, and I don't think this will be changed in stable versions. I will close this issue unless I am corrected. -- nosy: +iritkatriel resolution: -> wont fix status: open -> pending

[issue13548] line number when tracing an implicit return

2021-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This seems to be fixed. On 3.11.0a2 installed on Windows and fresh build of .0a2+, I see return on line 11, which is correct. f:\dev\3x>python ../tem/tem.py Running Debug|x64 interpreter... f:\dev\tem\tem.py 7 call f:\dev\tem\tem.py 8 line f:\dev\tem\tem.py

[issue45957] _tkinter.TclError: expected boolean value but got ""

2021-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Or use python.org installer ;-). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13548] line number when tracing an implicit return

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: Terry, I'm pretty sure I saw the problem on the mac earlier. Can you paste the contents of tem.py? -- ___ Python tracker ___ _

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: > In the PyPI top 5000, I found two projects using PyDescr_TYPE() and > PyDescr_NAME() as l-value: M2Crypto and mecab-python3. In both cases, it was > code generated by SWIG I proposed a first PR for Py_TYPE(): https://github.com/swig/swig/pull/2116 ---

[issue13548] line number when tracing an implicit return

2021-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The attached badlineevent.py with print updated. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue45798] Move _decimal build setup into configure

2021-12-06 Thread Ned Deily
Ned Deily added the comment: It looks like this change broke macOS universal2 builds of libmpdec. I'm looking at it now but wanted to flag it as a "release blocker" for tagging 3.11.0a3. -- nosy: +ned.deily priority: normal -> release blocker resolution: fixed -> stage: resolved ->

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: > python-snappy-0.6.0: maybe_resize() in snappy/snappymodule.cc I proposed a fix: https://github.com/andrix/python-snappy/pull/114 -- ___ Python tracker ___

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-06 Thread Eric V. Smith
Eric V. Smith added the comment: I suspect anti-virus software. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list ma

[issue13548] line number when tracing an implicit return

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: Yes, you're right. I don't know what I thought I saw before. It works on the mac as well. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue8161] inconsistency behavior in ctypes.c_char_p dereferencing

2021-12-06 Thread Eryk Sun
Eryk Sun added the comment: This appears to be misreported. The implementation in 3.1.2rc1 looks correct to me [1]. Either way, it's out of date. That said, the emulation of a simple type in an aggregate type is still incomplete nowadays. It's not implemented when a c_char or c_wchar array t

[issue38522] Py_USING_MEMORY_DEBUGGER is referenced in docs but not present in code

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue36706] Python script on startup stucks at import

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Pyt

[issue22684] message.as_bytes() produces recursion depth exceeded

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Py

[issue18531] Undocumented different between METH_KEYWORDS and **kws

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bu

[issue25633] The documentation for urllib.request should mention http.client.HTTPException

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___

[issue20459] [doc] No Argument Clinic documentation on how to specify a return converter

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: No Argument Clinic documentation on how to specify a return converter -> [doc] No Argument Clinic documentation on how to specify a return converter versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4 _

[issue23819] test_asyncio fails when run under -O

2021-12-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 265918bb1d782ab85c7dbc835eb62d6cfc2145b7 by Kumar Aditya in branch 'main': bpo-23819: asyncio: Replace AssertionError with TypeError where it makes sense (GH-29894) https://github.com/python/cpython/commit/265918bb1d782ab85c7dbc835eb62d6cfc2145

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +28173 pull_request: https://github.com/python/cpython/pull/29948 ___ Python tracker ___ _

[issue21731] Calendar Problem with Windows (XP)

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale) ___ Python tracker

[issue20936] test_strftime: enormous allocation, fails under Clang sanitizer

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: 3.5 is no longer maintained. Please create a new issue if you see this on a current version (>= 3.(). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread Steve Dower
Steve Dower added the comment: New changeset b7ef27bc084665ce58d89fc69530c6f9d2d37754 by Steve Dower in branch 'main': bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948) https://github.com/python/cpython/commit/b7ef27bc084665ce58d89fc69530c6f9d2d37754 --

[issue28953] Use `raise from` when raising new IncompleteRead

2021-12-06 Thread miss-islington
miss-islington added the comment: New changeset c5c365220ed2c867fe81078f70b827de22db2ee6 by 180909 in branch 'main': bpo-28953: Use `raise from` when raising new IncompleteRead (GH-29861) https://github.com/python/cpython/commit/c5c365220ed2c867fe81078f70b827de22db2ee6 -- nosy: +mis

[issue28953] Use `raise from` when raising new IncompleteRead

2021-12-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-12-06 Thread Eric V. Smith
Eric V. Smith added the comment: I notified lahey.com, and it looks like the behavior is now normal (at least, it looks okay by testing with the curl commands). Could someone who say this problem in a browser please double-check? -- ___ Python tra

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-06 Thread Eryk Sun
Eryk Sun added the comment: The os module tries to avoid documenting low-level OS behaviors. It would be unreliable and difficult to maintain. In the case of os.replace(), in Windows it calls MoveFileExW() with the flag MOVEFILE_REPLACE_EXISTING [1]. The source and destination paths must be

[issue21761] [doc] language reference describes the role of module.__file__ inaccurately

2021-12-06 Thread Eric Snow
Eric Snow added the comment: The key point is that loaders should be using the spec, not any of the module attrs (like `__file__` and `__cached__`), nor setting them. For the specific paragraph I referenced, it would look more like: It is also appropriate to set __cached__ when __file__ is

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Zernoxi
Zernoxi added the comment: I did some more testing more testing some more testing and saw that eryksun pointed out that the PATH environment variable is also being checked. I thought that it only checked for registered pythons but anyway. If I remove the "bin" folder to MSYS2 then the issue

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Zernoxi
Zernoxi added the comment: Is there a way to "ignore" MSYS2 "bin" folder? Because "pyenv" is a wrapper for python versions and its python.exe is not explicitly in the PATH environment variable. -- ___ Python tracker

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Zernoxi
Zernoxi added the comment: My bad, I guess its not a bug. Didn't read the documents correctly. -- ___ Python tracker ___ ___ Python

[issue45798] Move _decimal build setup into configure

2021-12-06 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +28174 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29949 ___ Python tracker ___ ___

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Ned Deily
Ned Deily added the comment: I've now verified that the _bootstrap_python fix for framework builds works - removing "release blocker" status. Thanks, Christian! -- priority: release blocker -> ___ Python tracker

[issue45798] Move _decimal build setup into configure

2021-12-06 Thread Ned Deily
Ned Deily added the comment: New changeset ddbab69b6d44085564a9b5022b96b002a52b2f2b by Ned Deily in branch 'main': bpo-45798: Let libmpdec decide which archs to build on macOS as done previously. (GH-29949) https://github.com/python/cpython/commit/ddbab69b6d44085564a9b5022b96b002a52b2f2b -

[issue45798] Move _decimal build setup into configure

2021-12-06 Thread Ned Deily
Ned Deily added the comment: The issue here turned out to be that the architecture selection code for libmpdec builds on macOS had been scrambled a bit on the move from setup.py to configure. To support universal builds correctly, libmpdec has code to decide itself which arch(s) to build wit

[issue44092] [sqlite3] Remove special rollback handling

2021-12-06 Thread Ma Lin
Ma Lin added the comment: If the special rollback handling is removed, the behavior of Connection.rollback() and 'ON CONFLICT ROLLBACK' clause will be consistent. See attached file on_conflict_rollback.py. -- Added file: https://bugs.python.org/file50481/on_conflict_rollback.py _

[issue31879] Launcher fails on custom command starting with "python"

2021-12-06 Thread Eryk Sun
Eryk Sun added the comment: Whether it should be this way or not, here's how it currently works. The builtin virtual paths all end with "python": static SHEBANG builtin_virtual_paths [] = { { L"/usr/bin/env python", TRUE }, { L"/usr/bin/python", FALSE }, { L"/usr/

[issue14965] super() and property inheritance behavior

2021-12-06 Thread Markus Kitsinger (he/him/his)
Change by Markus Kitsinger (he/him/his) : -- nosy: +SwooshyCueb nosy_count: 23.0 -> 24.0 pull_requests: +28175 pull_request: https://github.com/python/cpython/pull/29950 ___ Python tracker ___

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-06 Thread Andre Roberge
New submission from Andre Roberge : In Python 3.10.1, a change occurred compared with 3.10.0 so that an incorrect token is flagged for a SyntaxError. Also, in 3.11.0a2, the suggestion made about having forgotten a comma is incorrect. Python 3.10.1 for x range(4): ^ Syn

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-06 Thread Andre Roberge
Andre Roberge added the comment: >From >(https://friendly-traceback.github.io/docs/syntax_tracebacks_en_3.10.html#for-loop-missing-in-operator), > this is what was shown for Python 3.10.0 for x range(4): ^^ SyntaxError: invalid syntax. Perhaps you forgot a comma? Same as

<    1   2