[issue46594] Windows "Edit with IDLE >" only has one selection

2022-01-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The registry settings should be correctly set by the installer. The bug is that they are not. I don't touch the registry, and the last 3 versions are less than 2 weeks old. -- ___ Python tracker

[issue41266] IDLE call hints and completions confused by ints and floats

2022-01-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are 1000s of open python issues and perhaps 200 for IDLE. I consider this one to be lower priority that enough others to fill my IDLE time. -- stage: -> test needed versions: +Python 3.11 -Python 3.10, Python 3.8, Python 3.9 __

[issue45325] Allow "p" in Py_BuildValue

2022-01-31 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I stumbled upon the PR and tend to agree with Serhiy that this could be a source of nasty bugs. Passing the wrong type to a va_arg() argument is undefined behavior (e.g. https://wiki.sei.cmu.edu/confluence/display/c/EXP47-C.+Do+not+call+va_arg+with+an+argume

[issue41266] IDLE call hints and completions confused by ints and floats

2022-01-31 Thread wyz23x2
wyz23x2 added the comment: Ping, this issue is 571 days old. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26276] Inconsistent behaviour of PEP 3101 formatting between versions

2022-01-31 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this issue. The behavior might be inconsistent with 2.7, but I don't think that matters any more. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue45885] Specialize COMPARE_OP

2022-01-31 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +29223 pull_request: https://github.com/python/cpython/pull/31040 ___ Python tracker ___ __

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2022-01-31 Thread STINNER Victor
STINNER Victor added the comment: Python 3.10 is released. It's too late, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue46595] [doc] Undocumented behavior of importlib.metadata.version

2022-01-31 Thread cowlinator
Change by cowlinator : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue46595] [doc] Undocumented behavior of importlib.metadata.version

2022-01-31 Thread cowlinator
cowlinator added the comment: nevermind, i was just being stupid. the git describe wound up in a local egg or build metadata which i guess is where importlib.metadata.version pulls from -- ___ Python tracker __

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-01-31 Thread Eric Snow
Eric Snow added the comment: If necessary, we can keep _Py_IDENTIFIER() (and the functions). Regardless, we can stop using it internally. -- ___ Python tracker ___ _

[issue46595] [doc] Undocumented behavior of importlib.metadata.version

2022-01-31 Thread cowlinator
cowlinator added the comment: I'd also like to know which `git describe` args it's using -- ___ Python tracker ___ ___ Python-bugs-

[issue46595] [doc] Undocumented behavior of importlib.metadata.version

2022-01-31 Thread cowlinator
New submission from cowlinator : If `importlib.metadata.version` can't find the distribution version, it seems to return the result of a local `git describe`. I don't know if this is git-specific, or which other SCMs this might try to interact with. The result of `importlib.metadata.version`

[issue46555] Unicode-mangled names refer inconsistently to constants

2022-01-31 Thread James Gerity
James Gerity added the comment: > Why was it decided to not raise a syntax error... I'm not sure if such a decision was even ever made, the error happens before normalization is applied. I.e. the parser is doing two things here: (1) validating the syntax against the grammar and (2) building t

[issue46594] Windows "Edit with IDLE >" only has one selection

2022-01-31 Thread Eryk Sun
Eryk Sun added the comment: Check your settings in the registry. In "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts" there should be a ".py" key, but not necessarily. It should have an "OpenWithList" subkey that contains an "MRUList" value (most recently used list). The val

[issue46528] Simplify the VM's stack manipulations

2022-01-31 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +29222 pull_request: https://github.com/python/cpython/pull/31039 ___ Python tracker ___ ___

[issue46594] Windows "Edit with IDLE >" only has one selection

2022-01-31 Thread Terry J. Reedy
New submission from Terry J. Reedy : I have Python and hence IDLE 3.8, 3.9, 3.10, and 3.11 installed. When I right click a .py file, and then on "Edit with IDLE >" the sub-menu only has '3.11.0a4' listed. This negates the purpose of having a submenu. I did some search of previous issues and

[issue29688] Add support for Path.absolute()

2022-01-31 Thread Eryk Sun
Eryk Sun added the comment: > I'd imagine that bug is reproducible with `Path('C:\\Temp', 'C:')` > already, right? If that's the case, should it logged as a > separate issue? Yes, it's a separate issue that affects the _from_parts() call in absolute(). How about designing absolute() to crea

[issue29688] Add support for Path.absolute()

2022-01-31 Thread Barney Gale
Barney Gale added the comment: @eryksun thanks for flagging, a couple thoughts: I'd imagine that bug is reproducible with `Path('C:\\Temp', 'C:')` already, right? If that's the case, should it logged as a separate issue? I'm planning to /experimentally/ throw away pathlib's internal path par

[issue29688] Add support for Path.absolute()

2022-01-31 Thread Eryk Sun
Eryk Sun added the comment: > I'm not seeing what's wrong with your example. "C:" or "C:spam\\eggs" are not absolute paths. They depend on the effective working directory on the drive. An absolute path should never depend on a working directory, which can change at random. WinAPI SetEnviron

[issue29688] Add support for Path.absolute()

2022-01-31 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg412220 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29688] Add support for Path.absolute()

2022-01-31 Thread Eryk Sun
Eryk Sun added the comment: > I'm not seeing what's wrong with your example. "C:" or "C:spam\\eggs" are not absolute paths. They depend on the effective working directory on the drive. An absolute path should never depend on a working directory, which can change at random. WinAPI SetEnviron

[issue29688] Add support for Path.absolute()

2022-01-31 Thread Brett Cannon
Brett Cannon added the comment: @eryksun I'm not seeing what's wrong with your example. Would you mind pointing out what you expect the result to be? And are you saying on Windows you have to resolve the drive separately from the working directory and then concatenate them? --

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread STINNER Victor
STINNER Victor added the comment: s390x Fedora Clang 3.x buildbot is back to green, I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread miss-islington
miss-islington added the comment: New changeset 34794517d1380e206fbbc9735b8aaaf07a5237ce by Miss Islington (bot) in branch '3.10': bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035) https://github.com/python/cpython/commit/34794517d1380e206fbbc9735b8aaaf07a5237ce -

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread miss-islington
miss-islington added the comment: New changeset 30463860796790d3be97b76744290e4c364ad765 by Miss Islington (bot) in branch '3.9': bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035) https://github.com/python/cpython/commit/30463860796790d3be97b76744290e4c364ad765 --

[issue45953] Statically allocate interpreter states as much as possible.

2022-01-31 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +29221 pull_request: https://github.com/python/cpython/pull/31038 ___ Python tracker ___ ___

[issue46372] int/float specializations should mutate the LHS in-place when possible

2022-01-31 Thread Guido van Rossum
Guido van Rossum added the comment: Since we decided to wait on the int operations while longobject.c is being refactored (https://github.com/faster-cpython/ideas/issues/245), can you clarify whether the speedup reported is from code where it is implemented only for floats, or is it from a p

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +29220 pull_request: https://github.com/python/cpython/pull/31037 ___ Python tracker ___ __

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +29219 pull_request: https://github.com/python/cpython/pull/31036 ___ Python tracker ___ __

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ee0ac328d38a86f7907598c94cb88a97635b32f8 by Victor Stinner in branch 'main': bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035) https://github.com/python/cpython/commit/ee0ac328d38a86f7907598c94cb88a97635b32f8 -- nosy: +

[issue46451] Tracing causes module globals to be mutated when calling functions from C

2022-01-31 Thread Sebastian Berg
Change by Sebastian Berg : -- title: Possibly bad interaction with tracing and cython? -> Tracing causes module globals to be mutated when calling functions from C ___ Python tracker

[issue45953] Statically allocate interpreter states as much as possible.

2022-01-31 Thread Eric Snow
Eric Snow added the comment: > Any chance we could revert the recent renaming of tstate.exc_state and > tstate.root_cframe Yeah, I'll sort this out. Sorry for that. -- ___ Python tracker _

[issue42784] issues with object.h includes

2022-01-31 Thread STINNER Victor
STINNER Victor added the comment: There is an on-going work to move more and more header files into Include/cpython/ subdirectory, or even to the Include/internal/ directory. Examples: * bpo-35134: Move cellobject.h, classobject.h, context.h, funcobject.h, genobject.h and longintrepr.h to I

[issue42784] issues with object.h includes

2022-01-31 Thread Irit Katriel
Irit Katriel added the comment: Another workaround is for you to rename object.h in your project. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-31 Thread STINNER Victor
STINNER Victor added the comment: It would be nice to have a PyFrame_GetVariable(frame, "self") function: get the value of the "frame" variable of the specified frame object. -- ___ Python tracker _

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread STINNER Victor
STINNER Victor added the comment: The regression was introduced by GH-30855: "bpo-46329: Split calls into precall and call instructions" (commit 89fd7c34520aac493a8784a221366ed04452612b). -- ___ Python tracker

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29218 pull_request: https://github.com/python/cpython/pull/31035 ___ Python tracker ___ __

[issue42844] Turtle Module -- "onclick" arguments enchancement

2022-01-31 Thread sc1341
Change by sc1341 : Removed file: https://bugs.python.org/file49723/on_click_arguments_example.py ___ Python tracker ___ ___ Python-bugs-list

[issue42844] Turtle Module -- "onclick" arguments enchancement

2022-01-31 Thread sc1341
Change by sc1341 : -- pull_requests: -22972 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread Nikita Sobolev
Change by Nikita Sobolev : -- nosy: -sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-31 Thread Aaron Gokaslan
Aaron Gokaslan added the comment: `PyCodeObject_GetVariableName()` and `PyCodeObject_GetVariableKind()` work? - Some public-gettters such as these functions would be ideal. OOI, how do you cope with non-local self? - We only care about checking self to prevent an infinite recursion in our

[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

2022-01-31 Thread Steve Dower
Steve Dower added the comment: It was not backported to 3.8 because that's in security fix only mode. -- versions: -Python 3.8 ___ Python tracker ___

[issue46593] memoryview lacks support for half floats

2022-01-31 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-31 Thread Aaron Gokaslan
Aaron Gokaslan added the comment: We didn't want to read colocalsplus directly because we were worried about the stability of that approach and the code complexity / readability. Also, I wasn't aware that colocalsplus would work or if that was lazily populated as well. The functions used i

[issue46593] memoryview lacks support for half floats

2022-01-31 Thread Antoine Pitrou
New submission from Antoine Pitrou : The struct module has support for half-floats (the "e" format code) but support is not fully enabled in the memoryview object. Let's contrast float32 (the "f" format code), which you can cast to, and read as Python objects: >>> a = np.array([0.0, -1.5], n

[issue46554] Add append keyword argument to Path.write_text() and Path.write_bytes()

2022-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Serhiy. -- nosy: +pitrou, rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue46542] test_json and test_lib2to3 crash on s390x Fedora Clang 3.x buildbot

2022-01-31 Thread STINNER Victor
STINNER Victor added the comment: test_lib2to3 crash if Python is built with clang when running test_all_project_files() of lib2to3.tests.test_all_fixers.Test_all. This test crash on processing the file: "Lib/lib2to3/tests/data/infinite_recursion.py". The GH-30855 change increased the usage

[issue45413] Add install scheme for virtual environments

2022-01-31 Thread Miro Hrončok
Miro Hrončok added the comment: I've created a draft PR in https://github.com/python/cpython/pull/31034 It is still missing tests and I have not checked it on Windows, hence still a draft. -- ___ Python tracker

[issue45413] Add install scheme for virtual environments

2022-01-31 Thread Miro Hrončok
Change by Miro Hrončok : -- keywords: +patch pull_requests: +29217 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31034 ___ Python tracker ___

[issue46329] Split up the CALL_NO_KW and CALL_KW instructions.

2022-01-31 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29216 pull_request: https://github.com/python/cpython/pull/31033 ___ Python tracker ___

[issue45413] Add install scheme for virtual environments

2022-01-31 Thread Miro Hrončok
Miro Hrončok added the comment: I'll try to draft this change for Python 3.11. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue46592] Undocumented behavior in strptime for ISO week dates

2022-01-31 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue46592] Undocumented behavior in strptime for ISO week dates

2022-01-31 Thread Jonatan Skogsfors
New submission from Jonatan Skogsfors : Consider the following code : Python 3.10.2 (main, Jan 31 2022, 12:03:48) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from datetime import datetime >>> datetime.strptime("2021-53-1", "%Y-%W-%w").strftime(

[issue46355] [C API] Document PyFrameObject and PyThreadState changes and explain how to port code to Python 3.11

2022-01-31 Thread Petr Viktorin
Petr Viktorin added the comment: > I would hope that competent C programmers would know not to read or write to > undocumented fields. But if they come from a Python background, that might > not be obvious. Tread carefully when changing decades-old API, documented or not. The docs weren't a

[issue46355] [C API] Document PyFrameObject and PyThreadState changes and explain how to port code to Python 3.11

2022-01-31 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin nosy_count: 2.0 -> 3.0 pull_requests: +29215 pull_request: https://github.com/python/cpython/pull/31032 ___ Python tracker ___

[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2022-01-31 Thread Florian Weimer
Florian Weimer added the comment: The report/justification for the removal is simply incorrect. Linux still supports s390-*-linux-gnu in user mode. The GNU toolchain is maintained, and the glibc testsuite is in good shape. Some distributions still support s390 (31-bit) applications. Others (

[issue20923] [doc] Explain ConfigParser 'valid section name' and .SECTCRE

2022-01-31 Thread Irit Katriel
Irit Katriel added the comment: The comment Terry suggests to add (see https://bugs.python.org/issue20923#msg255304) could be placed in this paragraph: https://docs.python.org/3/library/configparser.html#supported-ini-file-structure -- keywords: +easy nosy: +iritkatriel title: Expla

[issue27954] makesetup does not take into account subdirectories

2022-01-31 Thread Irit Katriel
Irit Katriel added the comment: Please create a new issue if this is still a problem on versions >= 3.9. -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker __

[issue46407] optimizing `1 << n` or `2 ** n` and modulo-only operations

2022-01-31 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 768569325abc0a9cd5aae65c531889ec390847aa by Ken Jin in branch 'main': bpo-46407: Fix long_mod refleak (GH-31025) https://github.com/python/cpython/commit/768569325abc0a9cd5aae65c531889ec390847aa -- nosy: +lukasz.langa ___

[issue46578] cant DEBUG os.spawnv()

2022-01-31 Thread michaellongge
michaellongge added the comment: I can't use subprocess. Because the original problem is not that I want to use os.spawnv(). The original problem is that I go to install python3d, use setup.py install, the returned information shows that the compilation is completed, the link is also complet