[issue36560] test_functools leaks randomly 1 memory block

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently. I close the issue. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue35333] [C API] Rename private structs to use names closer to types

2021-05-26 Thread STINNER Victor
Change by STINNER Victor : -- components: +C API -Interpreter Core title: Rename private structs to use names closer to types -> [C API] Rename private structs to use names closer to types ___ Python tracker ___

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread Ethan Furman
Ethan Furman added the comment: I see your point about the str/repr. > But the class members themselves should not have that transform applied, and > raise > an error on invalid bits. But I'm not sure I understand that. Either you are agreeing with me that we should lose the creation time

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread Ethan Furman
Ethan Furman added the comment: I'll be offline for a couple hours, but I'll check back. -- ___ Python tracker ___ ___ Python-bugs-

[issue35197] graminit.h defines very generic names like 'stmt' or 'test'

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: Issue fixed in bpo-43244. I moved the evil public Python-ast.h header file into the internal C API as Include/internal/pycore_ast.h. It doesn't define "Yield" anymore: "_PyAST_Yield" must be used instead. -- resolution: -> duplicate stage: -> reso

[issue43244] Move PyArena C API to the internal C API

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-35197 as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue35197] graminit.h defines very generic names like 'stmt' or 'test'

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: Moreover, graminit.h was removed in Python 3.10. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue43988] Add test.support.assert_dissallow_instantiation

2021-05-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +24985 pull_request: https://github.com/python/cpython/pull/26392 ___ Python tracker ___ ___

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: Include/README.rst and https://devguide.python.org/c-api/ now define guideliens for header files and the 3 APIs. I consider that this issue is now fixed. Even if there are still non-limited API declared in Include/*.h, changing that can be done in follow-up

[issue30849] test_stress_delivery_dependent() of test_signal randomly fails on AMD64 Debian root 3.6/3.x

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue39996] test_multiprocessing_fork hangs on AMD64 FreeBSD Shared 3.x

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: "test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor" I didn't see this failure recently, I close the issue. Since changes were pushed, I mark the issue as fixed. If someone has ideas

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: > Test code coverage (C) job of Travis CI fails on test_distutils which creates > _configtest.gcno file This Travis CI has been removed, I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed _

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3e7ee02327db13e4337374597cdc4458ecb9e3ad by Victor Stinner in branch 'main': bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant (GH-26391) https://github.com/python/cpython/commit/3e7ee02327db13e4337374597cdc4458ecb9e3ad --

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-05-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24986 pull_request: https://github.com/python/cpython/pull/26393 ___ Python tracker _

[issue41736] test_site: test_s_option() failed on AMD64 Windows8.1 Refleaks 3.7

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this issue recently, I close the issue (again!). -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker __

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: Raymond: "Can you fix all the other cases where this is used in inner-loop; otherwise, it is undoing everyone else's optimizations and fast paths." Done, thanks for the report. -- stage: patch review -> resolved status: open -> closed __

[issue43988] Add test.support.assert_dissallow_instantiation

2021-05-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +24987 pull_request: https://github.com/python/cpython/pull/26394 ___ Python tracker ___ ___

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4115996342278de7c2a1b59ac348322e7a4e9072 by Miss Islington (bot) in branch '3.10': bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant (GH-26391) (GH-26393) https://github.com/python/cpython/commit/4115996342278de7c2a1b59ac348322e7a4e

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread John Belmonte
John Belmonte added the comment: > Either [...] we should lose the creation time check (not apply the > transform), or we should still have the check (raise an error on invalid > bits) which would still leave us in this situation. That is only one option (which undesirable consequences are a

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-05-26 Thread Inada Naoki
Inada Naoki added the comment: > If that's the case, then the argument Raymond provided against preserving > order does not seem that relevant, as we would only need to preserve the > order in the creation operation. Note that PYC files are marshalled from code objects including frozenset i

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +24988 pull_request: https://github.com/python/cpython/pull/26395 ___ Python tracker ___ __

[issue37903] IDLE Shell sidebar.

2021-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will link to an IDLE shell followup issue later. Discussions about other IDLE issues should be on pre-existing issues (use the tracker search with Components: IDLE), new issues, or without an issue, on the idle-dev list. -- resolution: -> fixed s

[issue43063] zipfile.Path / importlib.resources raises KeyError if a file wasn't found

2021-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: If this issue affects you, please use the `zipp` backport. I realize there are some use-cases that aren't readily amenable to relying on the backport. Please report any such use-case here as they may provide a justification for back-porting the change. ---

[issue41855] FastPath.zip_children can give duplicate results on Python 3.8

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue43413] tuple subclasses allow arbitrary kwargs

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- title: tuple subclasses allow kwargs -> tuple subclasses allow arbitrary kwargs ___ Python tracker ___ __

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread miss-islington
miss-islington added the comment: New changeset 5d569ef9dd57cf03473ef0c04f0e58b6c5cb5d04 by Miss Islington (bot) in branch '3.10': [3.10] bpo-44241: Incorporate changes from importlib_metadata 4.1. (GH-26382) (GH-26395) https://github.com/python/cpython/commit/5d569ef9dd57cf03473ef0c04f0e58b

[issue40172] ZipInfo corrupts file names in some old zip archives

2021-05-26 Thread Daniel Hillier
Daniel Hillier added the comment: Looking into this more and it appears that while Appendix D of https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT says "If general purpose bit 11 is unset, the file name and comment SHOULD conform to the original ZIP character encoding" where the or

[issue44243] tkinter button colors on Mac

2021-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : Mac Mohave, 3.9 with 8.6.8 and 3.10 with 8.6.11 import tkinter as tk r = tk.Tk() b = tk.Button(r, text='START', fg='white', bg='red') # Or '#f00'. b.pack() r.mainloop() On Windows, white on red button, as expected. On Mac, all white until one presses and

[issue36128] ResourceReader for FileLoader inconsistently handles path separators

2021-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: The preferred API as implemented in Python 3.9 and importlib_resources 1.1 is the `files()` API. This simpler API returns a Traversable object, a pathlib-like handle to the contents of a package. This approach side-steps the issues described above. In parti

[issue44243] tkinter button colors on Mac

2021-05-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue41611] IDLE: problems with completions on Mac

2021-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.10.0b1 on Mac I am getting attribute completion freezes. I had to turn them off. I am tempted to disable completions until there is a Mac IDLE developer to dig into issues like this. -- nosy: +taleinat __

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-05-26 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +24989 pull_request: https://github.com/python/cpython/pull/26396 ___ Python tracker ___ ___

[issue44244] protected members accessible in other modules

2021-05-26 Thread Nihar Ranjan Roy
New submission from Nihar Ranjan Roy : As per literature protected members are not accessible in other modules but I found that there is no difference between public and protected members in python 3.9.0 -- files: Screenshot (108).png messages: 394509 nosy: niharranjanroy priority: no

[issue44244] protected members accessible in other modules

2021-05-26 Thread Dennis Sweeney
Dennis Sweeney added the comment: Being in different modules is irrelevant. Attribute names that start with double underscores and don't end with double underscores are "mangled" by the compiler to include the class name as well: >>> class MyClass: ... def __init__(self): ... sel

[issue44244] protected members accessible in other modules

2021-05-26 Thread Nihar Ranjan Roy
Nihar Ranjan Roy added the comment: Dear Dennis Thanx for the prompt reply. I am talking about protected members (those starting with single underscore). Take it other way, What is the difference between public and private membership in python? With Regards Nihar Ranjan Roy Mobile: +91 9810 97

[issue44244] protected members accessible in other modules

2021-05-26 Thread Dennis Sweeney
Dennis Sweeney added the comment: An attribute name starting with a single underscore is just a warning to users of your code that "this attribute is supposed to be private, access it at your own risk." Everything below is from https://docs.python.org/3/tutorial/classes.html?highlight=mangle

[issue44244] protected members accessible in other modules

2021-05-26 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue44243] tkinter button colors on Mac

2021-05-26 Thread Tal Einat
Tal Einat added the comment: FWIW this also behaves as expected on Ubuntu 20.04 with both Python 3.8 and 3.10. -- ___ Python tracker ___ _

[issue44244] protected members accessible in other modules

2021-05-26 Thread Nihar Ranjan Roy
Nihar Ranjan Roy added the comment: Thank you dennis. This is helpful. With Regards Nihar Ranjan Roy Mobile: +91 9810 977 908 ___ On Thu, May 27, 2021 at 10:47 AM Dennis Sweeney wrote: > > Dennis Sweeney added the comment: > > An attribute name starting with a single undersc

[issue43988] Add test.support.assert_dissallow_instantiation

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset fbff5387c3e1f3904420fa5a27738c6c5881305b by Erlend Egeberg Aasland in branch 'main': bpo-43988: Use check disallow instantiation helper (GH-26392) https://github.com/python/cpython/commit/fbff5387c3e1f3904420fa5a27738c6c5881305b -- __

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

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

<    1   2