[issue45535] Enum's dir() does not contain inherited members

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: Fixed in 3.11. Pure enums have a few more dir() entries now; mixed enums now show all inherited methods/attributes -- members still do not show up in member dirs (this is a good thing). -- resolution: -> fixed stage: patch review -> resolved status:

[issue46417] [subinterpreters] Clear static types in Py_Finalize()

2022-01-17 Thread STINNER Victor
New submission from STINNER Victor : Converting static types to heap types is a work-in-progress: * bpo-40077: "Convert static types to heap types: use PyType_FromSpec()" * At December 29, 2020, 43% (89/206) of types are declared as heap types on a total of 206 types. For comparison, in Python

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: > I wrote PR 20763 to "finalize" static types in Py_Finalize(). It mostly > works, but "./Programs/_testembed test_forced_io_encoding" crash. (...) I created bpo-46417 follow-up issue: "[subinterpreters] Clear static types in Py_Finalize()". -- ___

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-46417 "[subinterpreters] Clear static types in Py_Finalize()". -- ___ Python tracker ___ ___

[issue45691] Partial moving of core objects to interpreter state is incorrect at best, unsafe at worse.

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Mark: > `sys.float_info.n_unnamed_fields` causes a memory violation if the > per-interpreter allocated 0 held by sys.float_info.n_unnamed_fields is freed. I created bpo-46417 follow-up issue: "[subinterpreters] Clear static types in Py_Finalize()".

[issue45691] Partial moving of core objects to interpreter state is incorrect at best, unsafe at worse.

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: > `sys.float_info.n_unnamed_fields` causes a memory violation if the > per-interpreter allocated 0 held by sys.float_info.n_unnamed_fields is freed. > If it is not freed, then `sys.float_info.n_unnamed_fields is 0` is False, > meaning that there are two zeros

[issue46417] [subinterpreters] Clear static types in Py_Finalize()

2022-01-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +28847 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30645 ___ Python tracker ___ _

[issue46161] `class A(1, 2, 3, **d): pass` gives bad bytecode

2022-01-17 Thread Mark Shannon
Mark Shannon added the comment: New changeset c118c2455c95baea08045dc64963600b7a56b6fd by zq1997 in branch 'main': bpo-46161: Fix bug in starunpack_helper in compile.c (GH-30235) https://github.com/python/cpython/commit/c118c2455c95baea08045dc64963600b7a56b6fd -- __

[issue46414] Add typing.reveal_type

2022-01-17 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +28848 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30646 ___ Python tracker ___ _

[issue46405] Warning compiling main on Windows

2022-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you Kumar for the quick fix. Just got a clean compile. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46414] Add typing.reveal_type

2022-01-17 Thread Sebastian Rittau
Change by Sebastian Rittau : -- nosy: +srittau ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue1927] Change input() to always prompt to stderr

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: See also Issue31603. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31603] Please add argument to override stdin/out/err in the input builtin

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: See also Issue1927. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46159] Segfault when using trace functions in 3.11a3

2022-01-17 Thread Paul Kehrer
Paul Kehrer added the comment: Changes in ABI don't seem to be the likely culprit since the Dockerfile provided can demonstrate this bug and has no caching that would result in obtaining alpha2-based binaries. -- ___ Python tracker

[issue46418] Simplify `MODULE` variable in `test_enum.py`

2022-01-17 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now `MODULE` in Lib/test/test_enum.py is defined as: ```python MODULE = ('test.test_enum', '__main__')[__name__=='__main__'] ``` I dived into history and did not find any reasoning why it should not be just `__name__`. (But, I might had missed it: t

[issue46418] Simplify `MODULE` variable in `test_enum.py`

2022-01-17 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28849 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30647 ___ Python tracker ___ _

[issue34165] uu.decode() raises binascii.Error instead of uu.Error on invalid data

2022-01-17 Thread Pulak Malhotra
Change by Pulak Malhotra : -- keywords: +patch nosy: +PulakIIIT nosy_count: 1.0 -> 2.0 pull_requests: +28850 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30648 ___ Python tracker _

[issue46412] PyQT6 projects crashes with python 3.10

2022-01-17 Thread Fernando Pérez Gómez
Fernando Pérez Gómez added the comment: I have to perform several tests to provide a detailed report, check other third party libraries, mysql connector for example, and send it to you. There are several things that don't work with Qt libs (the one that works best is PyQt6). When I finish the te

[issue33601] [doc] Py_UTF8Mode is not documented

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: [EASY DOC] Py_UTF8Mode is not documented -> [doc] Py_UTF8Mode is not documented versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker

[issue46317] Pathlib.rename isn't robust

2022-01-17 Thread Oz Tiram
Change by Oz Tiram : -- keywords: +patch pull_requests: +28851 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30650 ___ Python tracker ___ ___

[issue12067] Doc: remove errors about mixed-type comparisons.

2022-01-17 Thread Humbled Drugman
Change by Humbled Drugman : -- pull_requests: +28852 pull_request: https://github.com/python/cpython/pull/30651 ___ Python tracker ___ _

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-01-17 Thread Eric V. Smith
Eric V. Smith added the comment: It would also be interesting to see what attrs does in this case. -- ___ Python tracker ___ ___ Py

[issue46418] Simplify `MODULE` variable in `test_enum.py`

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: New changeset 596cf51a4d40f1ac3090cbccb83ad0663d739ae2 by Nikita Sobolev in branch 'main': bpo-46418: [Enum] simplify `MODULE` declaration in tests (GH-30647) https://github.com/python/cpython/commit/596cf51a4d40f1ac3090cbccb83ad0663d739ae2 -- __

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: Probably. On Mon, Jan 17, 2022 at 02:14 Alex Waygood wrote: > > Alex Waygood added the comment: > > Do these changes warrant an entry in "What's New in 3.11"? > > -- > > ___ > Python tracker >

[issue46419] Incomplete Comparison to C++ Methods

2022-01-17 Thread Jorgen Harmse
New submission from Jorgen Harmse : The description of classes mentions twice that methods are like C++ virtual member functions, but the truth is a bit stranger. Even __init__ seems to act like a virtual function, so there is no guarantee that the base-class part of a derived-class instance

[issue24711] Document getpass.getpass behavior on ^C

2022-01-17 Thread David Lord
David Lord added the comment: I can reproduce this on Python 3.10. Actually, `input` and `getpass` both seem to have this behavior now. Please reopen it. ```python import getpass try: getpass.getpass("in: ") except: pass print("done") ``` ``` $ python example.py getpass: ^D done $

[issue24711] Document getpass.getpass behavior on ^C

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24711] Document getpass.getpass behavior on ^C

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- resolution: works for me -> versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue24711] Document getpass.getpass behavior on ^C

2022-01-17 Thread David Lord
David Lord added the comment: Meant to say that "done" shows up on the same line, not the shell prompt. An earlier version of my example was in the REPL, where its prompt *does* show up on the same line. -- ___ Python tracker

[issue46418] Simplify `MODULE` variable in `test_enum.py`

2022-01-17 Thread Nikita Sobolev
Change by Nikita Sobolev : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46420] Use NOTRACE_DISPATCH in specialized opcodes

2022-01-17 Thread Dennis Sweeney
Change by Dennis Sweeney : -- components: Interpreter Core nosy: Dennis Sweeney priority: normal severity: normal status: open title: Use NOTRACE_DISPATCH in specialized opcodes type: performance versions: Python 3.11 ___ Python tracker

[issue46420] Use NOTRACE_DISPATCH in specialized opcodes

2022-01-17 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +28853 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30652 ___ Python tracker ___ _

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-01-17 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue46392] MessageIDHeader is too strict for message-id

2022-01-17 Thread R. David Murray
R. David Murray added the comment: Note that the parser does attempt to accept obsolete syntax (registering defects for it), so if there is a bug in the implementation of the obsolete syntax handling it should be fixed. And yes, there have been other bugs with whitespace handling in the par

[issue46115] Interrupting subprocess.popen in recursive calls by KeyboardInterrupt causes Fatal Python error.

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45913] readline + GTK + Pytest Seg Fault with Python 3.7 and 3.10 on CI

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: There are a number of third party components involved in your bug. If you can't narrow it down to something that plausibly looks like a cpython bug, it's unlikely that a core dev will investigate it. -- nosy: +iritkatriel resolution: -> third party st

[issue39602] importlib: lazy loading can result in reimporting a submodule

2022-01-17 Thread Brett Cannon
Change by Brett Cannon : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue42712] Segmentation fault in running ast.literal_eval() with large expression size.

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Eval with too high string multiplication crashes newer Python versions ___ Python tracker

[issue42763] Exposing a race in the "_warnings" resulting Python parser crash

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43430] Exception raised when attempting to create Enum via functional API

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: Is there a bug/documentation change to make here or can this be closed? -- nosy: +iritkatriel status: open -> pending type: crash -> behavior versions: +Python 3.10 -Python 3.7, Python 3.8 ___ Python tracker

[issue34027] openpty/forkpty build failure using nix package manager macOS environment

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- title: python 3.7 openpty/forkpty build failure using nix package manager macOS environment -> openpty/forkpty build failure using nix package manager macOS environment versions: -Python 3.7, Python 3.8 ___ Python track

[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: Robert's PR was merged so I'm assuming this is fixed. Reopen or create a new issue if not. -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue30492] 'make clinic' does not work for out of tree builds / clinic.py is not in the devguide

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: I'm closing because the original issue was fixed and testing out of tree build issue is the subject of Issue45695. -- nosy: +iritkatriel resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___

[issue38472] GCC detection in setup.py is broken

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: Alex, is this still an issue with current python versions (>= 3.9)? And can you followup on Victor's questions? -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker

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

2022-01-17 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- pull_requests: +28854 pull_request: https://github.com/python/cpython/pull/30653 ___ Python tracker ___ ___

[issue28384] [doc] hmac cannot be used with shake algorithms

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation nosy: +docs@python title: hmac cannot be used with shake algorithms -> [doc] hmac cannot be used with shake algorithms versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7 _

[issue43196] logging.config.dictConfig shuts down socket for existing SysLogHandlers

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: I'm not getting this error on 3.11 on a Mac. Can you check on versions <= 3.9? Earlier versions are no longer getting bugfixes. -- nosy: +iritkatriel status: open -> pending type: crash -> behavior ___ Python tracker

[issue46421] unittest ValueError when invoking as module

2022-01-17 Thread Bader Zaidan
New submission from Bader Zaidan : When running a local unittest as a module (for example, `python -m unittest ./tests/*.py`), the command fails with a ValueError. However, if we remove the local directory definition, and call it as `python -m unittest tests/*.py`, it runs without issue. A G

[issue46421] unittest ValueError when invoking as module

2022-01-17 Thread Bader Zaidan
Bader Zaidan added the comment: For reference, this is the error request: ``` python3 -m unittest ./tests/*.py Traceback (most recent call last): File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib64/python3.1

[issue43430] Exception raised when attempting to create Enum via functional API

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: Thanks for the reminder. -- resolution: -> not a bug stage: -> resolved status: pending -> closed ___ Python tracker ___

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2022-01-17 Thread Steve Dower
Steve Dower added the comment: New changeset c47c9e6589eb7a272cfe4d352eb87389eb20ec2f by bneuburg in branch 'main': bpo-44934: Add optional feature AppendPath to Windows MSI installer (GH-27889) https://github.com/python/cpython/commit/c47c9e6589eb7a272cfe4d352eb87389eb20ec2f -- __

[issue44934] Windows installer: Append Python to PATH instead of prepending it

2022-01-17 Thread Steve Dower
Steve Dower added the comment: Thanks for the PR! This is a good contribution, that wasn't trivial to do. It should be in Python 3.11 alpha 5, so please test it out and make sure it's behaving as you expect. -- resolution: -> fixed stage: patch review -> resolved status: open -> clo

[issue46421] unittest ValueError when invoking as module

2022-01-17 Thread Bader Zaidan
Change by Bader Zaidan : -- keywords: +patch pull_requests: +28855 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30654 ___ Python tracker ___ ___

[issue45995] string formatting: normalize negative zero

2022-01-17 Thread John Belmonte
John Belmonte added the comment: Mark, would you give it a review this month? (PR has been marked stale.) -- ___ Python tracker ___ __

[issue45959] Teach pprint about dict views

2022-01-17 Thread Éric Araujo
Éric Araujo added the comment: The PR looks good! When the last comments are resolved, unless there is activity from other core devs, I will merge it. -- nosy: +eric.araujo ___ Python tracker __

[issue45452] Support crash tolerance feature for gdbm module

2022-01-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: The gdbm module's purpose is effectively one of just exposing the underlying C library APIs to Python as you said. Consider this a +1 in favor of exposing the new APIs in the Python gdbm module. I'm not concerned about anyone wanting these in older Pytho

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-01-17 Thread Hynek Schlawack
Hynek Schlawack added the comment: >>> @attrs.define ... class C(Base): ... a: int ... b: int ... >>> C.__slots__ ('b', '__weakref__') We've got a test specifically for this use case: https://github.com/python-attrs/attrs/blob/5f36ba9b89d4d196f80147d4f2961fb2f97ae2e5/tests/test_slots.py#L

[issue46159] Segfault when using trace functions in 3.11a3

2022-01-17 Thread Quentin Pradet
Quentin Pradet added the comment: Thanks, you're right, I ran `git bisect` on Linux and the commit that causes the issue is https://github.com/python/cpython/commit/135cabd328504e1648d17242b42b675cdbd0193b ("Copy free variables in bytecode to allow calls to inner functions to be specialized

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2022-01-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +28857 pull_request: https://github.com/python/cpython/pull/30656 ___ Python tracker ___ ___

[issue46411] modernize exception handling in tests

2022-01-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +28858 pull_request: https://github.com/python/cpython/pull/30657 ___ Python tracker _

[issue46411] modernize exception handling in tests

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

[issue46411] modernize exception handling in tests

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: New changeset a287b31bcb065e4122400cb59167340d25480e6d by Irit Katriel in branch 'main': bpo-46411: Remove unnecessary calls to sys.exc_info() in tests (GH-30638) https://github.com/python/cpython/commit/a287b31bcb065e4122400cb59167340d25480e6d -- __

[issue46005] [doc] replace 'distutils' examples with 'setuptools'

2022-01-17 Thread Tal Einat
Tal Einat added the comment: First, I think that it's good and useful to have full, well-maintained examples of how to build extension modules in the docs. Second, until distutils is removed, I think we should keep the documentation for how to use it. Due to this, I don't think adding the "s

[issue46411] modernize exception handling in tests

2022-01-17 Thread miss-islington
miss-islington added the comment: New changeset 1d6530dd0564a6bb75989b9fca25a649b5ddc1b0 by Miss Islington (bot) in branch '3.9': [3.9] bpo-46411: Remove unnecessary calls to sys.exc_info() in tests (GH-30638) (GH-30658) https://github.com/python/cpython/commit/1d6530dd0564a6bb75989b9fca25a6

[issue46411] modernize exception handling in tests

2022-01-17 Thread miss-islington
miss-islington added the comment: New changeset 42038d00ea7b0b5455e371285102d85006fbf687 by Miss Islington (bot) in branch '3.10': bpo-46411: Remove unnecessary calls to sys.exc_info() in tests (GH-30638) https://github.com/python/cpython/commit/42038d00ea7b0b5455e371285102d85006fbf687

<    1   2