[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

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

[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

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

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

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

[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

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

[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

[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

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

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

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

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

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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

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

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

[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

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

[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

[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 Irit Katriel
Change by Irit Katriel : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

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

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

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

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

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

[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

[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

[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

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

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

[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

[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

[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

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

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

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

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

[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

[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()".

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

[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()". --

[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

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

[issue46108] Enum repr() incorrect when mixed with non-__new__ data types

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: Fixed in 3.11. -- resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> Enum: modify __repr__, __str__; update docs type: -> behavior ___ Python tracker

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread Ethan Furman
Change by Ethan Furman : -- priority: release blocker -> normal resolution: -> fixed stage: patch review -> resolved ___ Python tracker ___

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: New changeset 62a6594e66ca955073be2f4e5a40291a39252ef3 by Ethan Furman in branch 'main': bpo-40066: [Enum] fix tests (GH-30643) https://github.com/python/cpython/commit/62a6594e66ca955073be2f4e5a40291a39252ef3 --

[issue25710] zipimport is not PEP 3147 or PEP 488 compliant

2022-01-17 Thread László Kiss Kollár
Change by László Kiss Kollár : -- nosy: +lkollar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46414] Add typing.reveal_type

2022-01-17 Thread Marc Mueller
Change by Marc Mueller : -- nosy: +cdce8p ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46405] Warning compiling main on Windows

2022-01-17 Thread Mark Shannon
Mark Shannon added the comment: New changeset a4bc2218d270c4c7a898c8b3967c8c271afe9abe by Kumar Aditya in branch 'main': bpo-46405: fix msvc compiler warnings (GH-30627) https://github.com/python/cpython/commit/a4bc2218d270c4c7a898c8b3967c8c271afe9abe --

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: I created https://github.com/python/core-workflow/issues/424 "Should we make the Docs CI mandatory on the Python main branch?". -- ___ Python tracker

[issue46414] Add typing.reveal_type

2022-01-17 Thread Nikita Sobolev
Change by Nikita Sobolev : -- nosy: +sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46415] ipaddress.ip_{address, network, interface} raises TypeError instead of ValueError if given a tuple as address

2022-01-17 Thread Thomas Cellerier
Change by Thomas Cellerier : -- title: ipaddress.ip_{address,network,interface} raise TypeError instead of ValueError if given a tuple as address -> ipaddress.ip_{address,network,interface} raises TypeError instead of ValueError if given a tuple as address

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +28846 pull_request: https://github.com/python/cpython/pull/30643 ___ Python tracker ___

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: vstinner wrote: -- >>self.assertEqual(repr(type), '') > For this one, I suggest to replace the value with "..." doctest pattern. That bit of code is from the unittest suite, not the doctest suite. I went with:

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: >self.assertEqual(repr(type), '') For this one, I suggest to replace the value with "..." doctest pattern. -- ___ Python tracker ___

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

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

[issue46415] ipaddress.ip_{address, network, interface} raise TypeError instead of ValueError if given a tuple as address

2022-01-17 Thread Thomas Cellerier
Change by Thomas Cellerier : -- keywords: +patch pull_requests: +28845 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30642 ___ Python tracker

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-17 Thread Nikita Sobolev
New submission from Nikita Sobolev : Here's the problem: ``` » ./python.exe Lib/test/test_typing.py

[issue46381] Improve documentation of CFLAGS_NODIST, LDFLAGS_NODIST

2022-01-17 Thread STINNER Victor
STINNER Victor added the comment: Do you want to propose a PR? -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list

[issue46415] ipaddress.ip_{address, network, interface} raise TypeError instead of ValueError if given a tuple as address

2022-01-17 Thread Thomas Cellerier
New submission from Thomas Cellerier : `IPv*Network` and `IPv*Interface` constructors accept a 2-tuple of (address description, netmask) as the address parameter. When the tuple-based address is used errors are not propagated correctly through the `ipaddress.ip_*` helper because of the

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: New changeset 83d544b9292870eb44f6fca37df0aa351c4ef83a by Kumar Aditya in branch 'main': bpo-40066: [Enum] skip failing doc test (GH-30637) https://github.com/python/cpython/commit/83d544b9292870eb44f6fca37df0aa351c4ef83a --

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread Ethan Furman
Ethan Furman added the comment: After merging in doc fix by kumaraditya303, I'll update tests so Solaris passes. -- ___ Python tracker ___

[issue34875] Change .js mime to "text/javascript"

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue46414] Add typing.reveal_type

2022-01-17 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : The `reveal_type()` primitive is injected by type checkers into the builtins. When the type checker sees a call, it prints the inferred type of the argument. This has been implemented across all type checkers, but adding an implementation to `typing`

[issue46412] PyQT6 projects crashes with python 3.10

2022-01-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is most likely a problem with PyQt6. Please ask that project first (with a clearer description of what goes wrong and on which platforms). -- nosy: +ronaldoussoren resolution: -> third party stage: -> resolved status: open -> closed

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I guess we could do more to promote that trick in the docs. It’s quite useful. -- ___ Python tracker ___

[issue46413] `__or__` is not covered for `_GenericAlias` and `_SpecialGenericAlias` in `typing`

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

[issue46413] `__or__` is not covered for `_GenericAlias` and `_SpecialGenericAlias` in `typing`

2022-01-17 Thread Nikita Sobolev
New submission from Nikita Sobolev : Today I've noticed that these two methods are not covered: https://github.com/python/cpython/blame/16901c0482734dbd389b09ca3edfcf3e22faeed7/Lib/typing.py#L1028-L1032 - `typing._GenericAlias.__or__` - `typing._GenericAlias.__ror__` Later, I've realized

[issue46412] PyQT6 projects crashes with python 3.10

2022-01-17 Thread Fernando Pérez Gómez
New submission from Fernando Pérez Gómez : can't translate ui. files , flags of alignment , curve types of animation doesn´t wors ...etc -- messages: 410791 nosy: fernandoprezgmez priority: normal severity: normal status: open title: PyQT6 projects crashes with python 3.10 type: crash

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28842 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30639 ___ Python tracker ___

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-17 Thread Ned Batchelder
Ned Batchelder added the comment: @Erlend: thanks for the URI tip, I missed that as a possibility in the SQLite docs. -- ___ Python tracker ___

[issue46411] modernize exception handling in tests

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28841 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30638 ___ Python tracker ___

[issue46411] modernize exception handling in tests

2022-01-17 Thread Irit Katriel
New submission from Irit Katriel : There are a few tests that use sys.exc_info() because they needed to in python 2, but there is no longer a reason to do it. I will make a patch shortly. -- assignee: iritkatriel components: Tests messages: 410789 nosy: iritkatriel priority: normal

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Petr Viktorin
Petr Viktorin added the comment: This cannot be changed in 3.x, since the PyObject_DelAttr macro calls PyObject_SetAttr(..., NULL), and the macro is expanded in all extensions that use the stable ABI. (Technically, it would be possible to add a PyObject_SetAttr *macro* that would warn/fail,

[issue46374] Assertion failed in ceval.c

2022-01-17 Thread Mark Shannon
Change by Mark Shannon : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40066] Enum: modify __repr__, __str__; update docs

2022-01-17 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 nosy_count: 15.0 -> 16.0 pull_requests: +28840 pull_request: https://github.com/python/cpython/pull/30637 ___ Python tracker

[issue46389] 3.11: unused generator comprehensions cause f_lineno==None

2022-01-17 Thread Mark Shannon
Change by Mark Shannon : -- assignee: -> Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >