[issue44238] Unable to install Python 3.9.5 - Windows Server

2021-05-26 Thread Ricardo Daniel Fuentes
New submission from Ricardo Daniel Fuentes : Hi, I am Admin of a Windows Server 2012 R2, I have installed successfully Python 3.9.5 (64-bit) however I cannot uninstall it, I get the error: "0x80070659 - The installation is forbidden by system policy. Contact your system administrator" I

[issue44229] Intermittent connection errors in ssl tests on macOS CI

2021-05-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: New failure in CI: https://github.com/python/cpython/runs/2669949777?check_suite_focus=true == ERROR: test_msg_callback_deadlock_bpo43577 (test.test_ssl.TestSSLDebug)

[issue44234] Debugging with LLDB doesn't work for universal2 installer on macOS Big Sur

2021-05-26 Thread Ned Deily
Ned Deily added the comment: There's a reason for that. What the discussion in that link fails to note is that elsewhere Apple warns that that entitlement is understandably prohibited in distributions submitted to the Apple notarization service. See the "Avoid the Get-Task-Allow

[issue44229] Intermittent connection errors in ssl tests on macOS CI

2021-05-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Build info for macOS CI attached. -- Added file: https://bugs.python.org/file50063/5_Display build info.txt ___ Python tracker ___

[issue44238] Unable to install Python 3.9.5 - Windows Server

2021-05-26 Thread Ricardo Daniel Fuentes
Change by Ricardo Daniel Fuentes : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-26 Thread hai shi
hai shi added the comment: > * functools._lru_list_elem Looks like this type have performance in issue PR-5008 when supporting GC. I am not sure there have other similar questions or not. -- ___ Python tracker

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

2021-05-26 Thread Inada Naoki
Inada Naoki added the comment: > What about normal sets? pyc files don't contain a regular set. So it is out of scope of this issue. -- nosy: +methane ___ Python tracker ___

[issue37903] IDLE Shell sidebar.

2021-05-26 Thread Tal Einat
Tal Einat added the comment: > Lastly, for live demos in presentations, it is desirable to have a clear > screen, free of distracting artifacts. The sidebar is such an artifact -- > you would never see such a thing in a book or slide presentation. Also, for > live demos, large fonts are

[issue37903] IDLE Shell sidebar.

2021-05-26 Thread Tal Einat
Tal Einat added the comment: > Other bug reports and feature requests that matter to us don't appear to be > getting any traction: I'll start going through those, and see if I can fix some of the bugs on that list. A few notes: > Need an option to run the install-certificates script Are

[issue37903] IDLE Shell sidebar.

2021-05-26 Thread Tal Einat
Tal Einat added the comment: > For teaching purposes in live demos, it is essential to have a clear visual > distinction between the inputs and outputs: > > >>> beatles = ['john', 'paul', 'ringo', 'george'] > >>> [name.capitalize() for name in beatles] > ['John', 'Paul', 'Ringo', 'George'] >

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I've opened PR's to fix most of the heap types converted during the 3.10 alpha phase. What's missing (of the 3.10 batch) is: - _thread types (this needs special care) - winapi__overlapped.Overlapped (I currently don't have a Win dev env at hand) For the

[issue44232] Crash in Objects/typeobject.c

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: Ok, it's now fixed in 3.10 and main branches. Thanks for the bug report, and thanks Ken Jin for your PR ;-) -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue44239] Use platform defined data directories instead of ~/.python_history

2021-05-26 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +24969 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26377 ___ Python tracker

[issue37903] IDLE Shell sidebar.

2021-05-26 Thread Tal Einat
Tal Einat added the comment: > Another desirable feature is the ability to cut and paste snippets into > docstrings. This is essential not just for doctest, but even for untested > examples in docstrings. > Those examples, need to be recognizable to humans as interactive sessions > with

[issue44239] Use platform defined data directories instead of ~/.python_history

2021-05-26 Thread oxalica
New submission from oxalica : Currently we use path `~/.python_history` for history file in all platforms. It is not a good choice since it spams in user's home directory. There are already specifications for where to store program data. For Windows, we should use `%APPDATA%/Python/history`;

[issue44235] Remove l*gettext() and related functions in the gettext module

2021-05-26 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +24970 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26378 ___ Python tracker ___

[issue44238] Unable to install Python 3.9.5 - Windows Server

2021-05-26 Thread Christian Heimes
Change by Christian Heimes : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue37903] IDLE Shell sidebar.

2021-05-26 Thread Tal Einat
Tal Einat added the comment: For a wider context, besides the default REPL, I also consider two other leading REPLs: ipython and Jupyter notebooks. They both also have clear separation of outputs from inputs, though in different ways than the standard REPL. ipython retains similar

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

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

[issue44232] Crash in Objects/typeobject.c

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7b3b6982a5683f5146ede58a448d3edb777e501b by Miss Islington (bot) in branch '3.10': bpo-44232: Fix type_new() error reporting (GH-26359) (GH-26365) https://github.com/python/cpython/commit/7b3b6982a5683f5146ede58a448d3edb777e501b --

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

2021-05-26 Thread Filipe Laíns
Filipe Laíns added the comment: Ah, my bad! Though, thinking about it, it does make sense. 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. What do you think? Is

[issue44240] Incorrect behavior of LOAD_ATTR due to overflow in tp_version

2021-05-26 Thread Mark Shannon
Mark Shannon added the comment: It is extremely unlikely, I agree. But not impossible. I plan to fix it for 3.11. Once I've done that we can decide if backports are worth it. -- ___ Python tracker

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24976 pull_request: https://github.com/python/cpython/pull/26384 ___ Python tracker

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 06ac3a4742228b0230981720060248a7425b2486 by Jason R. Coombs in branch 'main': bpo-44241: Incorporate changes from importlib_metadata 4.1. (#26382) https://github.com/python/cpython/commit/06ac3a4742228b0230981720060248a7425b2486 --

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2021-05-26 Thread Antoine Pitrou
Change by Antoine Pitrou : -- stage: test needed -> needs patch versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue44240] Incorrect behavior of LOAD_ATTR due to overflow in tp_version

2021-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I wonder what other stuff can break due to this. I agree we should fix it, but also we need to consider how crazy is the solution because I'm not sure if this justifies a very complex one. As an alternative idea, we could use th max allowed value as

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- components: Library (Lib) nosy: jaraco priority: normal severity: normal status: open title: Sync importlib_metadata enhancements through 4.1. versions: Python 3.10, Python 3.11 ___ Python tracker

[issue39798] Update and Improve README.AIX

2021-05-26 Thread Ayush Parikh
Change by Ayush Parikh : -- keywords: +patch nosy: +ayush332 nosy_count: 3.0 -> 4.0 pull_requests: +24977 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26385 ___ Python tracker

[issue38693] Use f-strings instead of str.format within importlib

2021-05-26 Thread miss-islington
miss-islington added the comment: New changeset 78a8428548445b501f5ebd6ff4647d93ffd8efd1 by Miss Islington (bot) in branch '3.10': bpo-38693: importlib.metadata f-strings (GH-26383) https://github.com/python/cpython/commit/78a8428548445b501f5ebd6ff4647d93ffd8efd1 --

[issue44240] Incorrect behavior of LOAD_ATTR due to overflow in tp_version

2021-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I mean, the possibilities are even more remote because not only this needs to overflow but the lookup has to be done at exactly the old value. -- ___ Python tracker

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-26 Thread Ken Jin
Ken Jin added the comment: _winapi is leaky still even with my PR: >>> import sys,gc >>> for _ in range(5): ... print(sys.gettotalrefcount()) ... import _winapi ... del sys.modules['_winapi'] ... del _winapi ... gc.collect() ... 50468 51076 51432 51788 52144 I just noticed this, but

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
New submission from Jason R. Coombs : Importlib_metadata 4.1.0 made some minor tweaks. Let's sync those. -- ___ Python tracker ___

[issue38693] Use f-strings instead of str.format within importlib

2021-05-26 Thread miss-islington
miss-islington added the comment: New changeset e6c815d2e34be5fdf6dbe773f0781691746d2289 by Jason R. Coombs in branch 'main': bpo-38693: importlib.metadata f-strings (GH-26383) https://github.com/python/cpython/commit/e6c815d2e34be5fdf6dbe773f0781691746d2289 --

[issue38693] Use f-strings instead of str.format within importlib

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

[issue44240] Incorrect behavior of LOAD_ATTR due to overflow in tp_version

2021-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: But wait, in the case of an overflow, the values of the tags would be different than the one stored, triggering a cache miss. What I am missing? -- ___ Python tracker

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +24974 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26382 ___ Python tracker ___

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-26 Thread Ken Jin
Ken Jin added the comment: > it creates nearly 100 objects Oops sorry I think I'm wrong. most of those objects may be borrowed refs. Just 1 type object is causing the leak. -- ___ Python tracker

[issue38693] Use f-strings instead of str.format within importlib

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +jaraco nosy_count: 6.0 -> 7.0 pull_requests: +24975 pull_request: https://github.com/python/cpython/pull/26383 ___ Python tracker ___

[issue44240] Incorrect behavior of LOAD_ATTR due to overflow in tp_version

2021-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Oh, right, it will load and old value from the cache. -- ___ Python tracker ___ ___

[issue1717] Get rid of more references to __cmp__

2021-05-26 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: Has there been any resolution regarding `sortTestMethodsUsing`? See https://bugs.python.org/msg77261 I spend a decent time and read the documentation thrice before realizing it received an old-style compare function. Brett's proposal for a new attribute

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

2021-05-26 Thread Mark Shannon
Mark Shannon added the comment: New changeset 6cc800d3634fdd002b986c3ffe6a3d5540f311a0 by Eric Snow in branch 'main': bpo-43693: Clean up the PyCodeObject fields. (GH-26364) https://github.com/python/cpython/commit/6cc800d3634fdd002b986c3ffe6a3d5540f311a0 --

[issue21251] Standard library trace module crashes with exception

2021-05-26 Thread Irit Katriel
Irit Katriel added the comment: Martin, please create a new issue if this is still a problem in Python 3. -- resolution: -> out of date stage: needs patch -> resolved status: pending -> closed ___ Python tracker

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2021-05-26 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

2021-05-26 Thread Irit Katriel
Irit Katriel added the comment: New changeset 1261941e02cd04829592b1b1360b4ec21bfcdb9a by Miss Islington (bot) in branch '3.10': bpo-41147: [doc] contextlib.redirect_stdout() provides the new stream as context var (GH-21199) (GH-26379)

[issue43879] Add native_thread_id to PyThreadState

2021-05-26 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.10 ___ Python tracker ___

[issue43879] Add native_thread_id to PyThreadState

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 90a6c07cb20114dda801f027a90df839225751cb by Gabriele N. Tornetta in branch 'main': bpo-43879: Add native_thread_id field to PyThreadState (GH-25458) https://github.com/python/cpython/commit/90a6c07cb20114dda801f027a90df839225751cb --

[issue44234] Debugging with LLDB doesn't work for universal2 installer on macOS Big Sur

2021-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Should we add documentation about this? The truly annoying bit about that discussion is that its probably easier to just install gdb and use that to debug extensions. -- ___ Python tracker

[issue27521] Misleading compress level header on files created with gzip

2021-05-26 Thread Irit Katriel
Change by Irit Katriel : -- stage: test needed -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

2021-05-26 Thread Irit Katriel
Irit Katriel added the comment: New changeset 46db39d7bd67fb9fea133cd4f18cdf7eacb0f6d9 by Peter Law in branch 'main': bpo-41147: [doc] contextlib.redirect_stdout() provides the new stream as context var (GH-21199)

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

2021-05-26 Thread Irit Katriel
Irit Katriel added the comment: Thank you Peter! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43988] Add test.support.assert_dissallow_instantiation

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4f725261c6cf23d259e8fdc205e12b76ef4d2d31 by Erlend Egeberg Aasland in branch 'main': bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) https://github.com/python/cpython/commit/4f725261c6cf23d259e8fdc205e12b76ef4d2d31

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

2021-05-26 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

2021-05-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24971 pull_request: https://github.com/python/cpython/pull/26379 ___ Python tracker

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

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

[issue44240] Incorrect behavior of LOAD_ATTR due to overflow in tp_version

2021-05-26 Thread Mark Shannon
New submission from Mark Shannon : Should the tp_version overflow, and wrap around to a value previously used in the opcache for LOAD_ATTR, then LOAD_ATTR could produce the wrong value. It will take a fair bit of contrivance and a long time to do this, but it is possible: Run some code ~2000

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-26 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 8.0 -> 9.0 pull_requests: +24973 pull_request: https://github.com/python/cpython/pull/26381 ___ Python tracker ___

[issue41830] "NameError: name 'AttributeError' is not defined"

2021-05-26 Thread Irit Katriel
Irit Katriel added the comment: Sanka, please create a new issue if you can provide more info about the problem. -- stage: -> resolved status: pending -> closed ___ Python tracker

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: Ah, I can reproduce the issue if the Python directory contains Загрузки, like: /home/vstinner/Downloads/Загрузки/Python-3.9.5 -- title: python3.8.9, python3.9.2 test_embed test_tabnanny failed -> test_embed and test_tabnanny fails if the current

[issue41147] Document that redirect_std{out, err} yield the new stream as the context variable

2021-05-26 Thread Irit Katriel
Irit Katriel added the comment: New changeset bee66d3cb98e740f9d8057eb7f503122052ca5d8 by Miss Islington (bot) in branch '3.9': bpo-41147: [doc] contextlib.redirect_stdout() provides the new stream as context var (GH-21199) (GH-26380)

[issue2771] Test issue

2021-05-26 Thread Ee W. Durbin III
Change by Ee W. Durbin III : -- status: closed -> open versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___

[issue2771] Test issue

2021-05-26 Thread Ee W. Durbin III
Ee W. Durbin III added the comment: Test IRC -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33693] test test_webbrowser failed

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: -24979 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38693] Use f-strings instead of str.format within importlib

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24980 pull_request: https://github.com/python/cpython/pull/26387 ___ Python tracker ___

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

2021-05-26 Thread John Belmonte
John Belmonte added the comment: I wonder if CONFORM could tolerate these, since it's ultimately going to discard invalid bits. And then perhaps CONFORM is the default. -- ___ Python tracker

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

2021-05-26 Thread John Belmonte
John Belmonte added the comment: Rather than make such masks containing unknown bits, this would be best practice if you want to use STRICT, correct? NPTS_ROUND = 0x0 NPTS_CEIL = 0x1 NPTS_TRUNC = 0x2 NPTS_MASK = NPTS_ROUND | NPTS_CEIL | NPTS_TRUNC Otherwise, if your input may have unknown

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

2021-05-26 Thread Ethan Furman
Ethan Furman added the comment: Yes, that would be best practice. However, if the user is interfacing with other software/hardware, they may not have a choice on which bits make up the mask. -- ___ Python tracker

[issue43843] libregrtest: mark a test as failed if a thread logs an unexpected exception

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

[issue43774] [Doc] Document configure options in the Python documentation

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: The documentation is now online: https://docs.python.org/dev/using/configure.html -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue1717] Get rid of more references to __cmp__

2021-05-26 Thread Brett Cannon
Brett Cannon added the comment: > Has there been any resolution regarding `sortTestMethodsUsing`? My suspicion is if the docs don't suggest there's something else then nothing has been changed. -- ___ Python tracker

[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: +24981 pull_request: https://github.com/python/cpython/pull/26388 ___ Python tracker ___

[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-44031. -- resolution: out of date -> duplicate superseder: -> test_embed and test_tabnanny fails if the current directory is non-ASCII ___ Python tracker

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

2021-05-26 Thread Ethan Furman
Ethan Furman added the comment: For example, if the default is CONFORM or KEEP, but the user wants an error if 0x80 comes up, they would have to explicitly check for that value since the Flag would happily return it instead of raising. -- ___

[issue42392] [document removal of] the deprecated 'loop' parameter asyncio API in 3.10

2021-05-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset d8fd8c8568cbc2f53c1abeda3596a89a46f0e3d7 by Ken Jin in branch 'main': bpo-42392: [docs] Add deprecated-removed loop labels for asyncio (GH-26357) https://github.com/python/cpython/commit/d8fd8c8568cbc2f53c1abeda3596a89a46f0e3d7 --

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

2021-05-26 Thread John Belmonte
John Belmonte added the comment: > However, if the user is interfacing with other software/hardware, they may > not have a choice on which bits make up the mask. I think it's the same as saying "unknown bits may come on the input". An important use case is for forward compatibility, where

[issue42392] [document removal of] the deprecated 'loop' parameter asyncio API in 3.10

2021-05-26 Thread miss-islington
miss-islington added the comment: New changeset 150a8e8a3edbbed12b98c8f22e2972cd47fd3ba5 by Miss Islington (bot) in branch '3.10': [3.10] bpo-42392: [docs] Add deprecated-removed loop labels for asyncio (GH-26357) (GH-26390)

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2021-05-26 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: While the proposal linked by C.A.M. solves one of the use cases but it does not address the others. One use cases which is rather common for me it is e.g. to have scripts/programs which allow configuring whether temporary directories should get deleted or

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

2021-05-26 Thread Ethan Furman
Ethan Furman added the comment: That is an intentional change. The cause is that the masks include bits that are not named in the Flag. The user-side fix is to add a `boundary=KEEP` option to the flag: class GeodIntermediateFlag(IntFlag, boundary=KEEP) The enum library fix could be

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

2021-05-26 Thread Ethan Furman
Ethan Furman added the comment: That could be, and the user can set the boundary to whatever works best for their use-case, so long as the boundary they want to use does not conflict with the initial creation checks. Do you agree that simply removing the unnamed member check that takes

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

2021-05-26 Thread John Belmonte
John Belmonte added the comment: > Do you agree that simply removing the unnamed member check that takes place > at Flag creation is a good way forward? It's uncomfortable, because then STRICT is not actually strict, and it's going to be show raw values in str/repr. > CONFORM -> unnamed

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-05-26 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33693] test test_webbrowser failed

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +jaraco nosy_count: 3.0 -> 4.0 pull_requests: +24979 pull_request: https://github.com/python/cpython/pull/26387 ___ Python tracker ___

[issue38693] Use f-strings instead of str.format within importlib

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

[issue38693] Use f-strings instead of str.format within importlib

2021-05-26 Thread miss-islington
miss-islington added the comment: New changeset f6fbdb90ee450ad693f7a7809035d0dc968f98b7 by Jason R. Coombs in branch 'main': bpo-38693: Prefer f-strings in importlib.resources (importlib_resources 5.0.6). (GH-26387)

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

2021-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We are already blocked in Python 3.10 beta 2, Ethan, could you give a look at this so we can introduce the fix when we release the next beta? -- ___ Python tracker

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

2021-05-26 Thread John Belmonte
John Belmonte added the comment: To clarify, it's caused by these mask entries in the enum: NPTS_MASK = 0xF DEL_S_MASK = 0xF0 AZIS_MASK = 0xF00 Since the masks are not an aggregation of individual bits defined in the enum, it's an error. > I'm inclined to go with [removing the check],

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

2021-05-26 Thread Ethan Furman
Ethan Furman added the comment: Actually, thinking about that a little bit more, KEEP was added for exactly this situation, as some stdlib flags exhibit the same behavior. So the real question is what should happen with, for example, GeodIntermediateFlag(0x80) ? The idea behind boundary

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

2021-05-26 Thread Ethan Furman
Ethan Furman added the comment: Those are good points -- the difficulty is knowing which behavior the user wants. And if the desired run-time behavior doesn't match the boundary flag the user is stuck. -- ___ Python tracker

[issue42392] [document removal of] the deprecated 'loop' parameter asyncio API in 3.10

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

[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-05-26 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the help Petr. I close the issue, it's now fixed! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue2771] Test issue

2021-05-26 Thread Ee W. Durbin III
Change by Ee W. Durbin III : -- status: open -> closed versions: +Python 3.9 -Python 3.10 ___ Python tracker ___ ___

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

2021-05-26 Thread Miro Hrončok
New submission from Miro Hrončok : With the change introduced in https://bugs.python.org/issue38250 https://github.com/python/cpython/commit/7aaeb2a3d682ecba125c33511e4b4796021d2f82 I observe a regression in behavior of enum.IntFlag with missing values. Consider this code (from pyproj):

[issue38250] enum.Flag should be more set-like

2021-05-26 Thread Miro Hrončok
Miro Hrončok added the comment: I've reported https://bugs.python.org/issue44242 because I believe there is a regression in this change. -- nosy: +hroncok ___ Python tracker

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

2021-05-26 Thread Ned Deily
Change by Ned Deily : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-05-26 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38693] Use f-strings instead of str.format within importlib

2021-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 97b4576f655c09e32d2cbcdcdbda72b1bf9f438a by Miss Islington (bot) in branch '3.10': bpo-38693: Prefer f-strings in importlib.resources (importlib_resources 5.0.6). (GH-26387) (#26389)

[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 ___

[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

[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 ___

[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)

[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 ___

  1   2   >