[issue46305] SyntaxError when using dict key in fstring

2022-01-07 Thread Samisafool
New submission from Samisafool : SyntaxError when using dict key in fstring Attached is a python file where this bug is visible. The error is different on CPython 3.8 and 3.9/3.10, interestingly. Occurs on CPython 3.8-10 and PyPy 3.8 7.3.7 Not sure which component to select, never filed a

[issue46304] Unable to iterate over lines in a file without a block of code

2022-01-07 Thread Eric V. Smith
Eric V. Smith added the comment: Hi, Jason. How about: >>> from pathlib import Path >>> Path("foo.txt").read_text().splitlines() ['how', 'now', 'brown', 'cow'] Not the most elegant thing, I'll admit. -- nosy: +eric.smith ___ Python tracker

[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread miss-islington
miss-islington added the comment: New changeset d2245cf190c36a6d74fe947bf133ce09d3313a6f by Miss Islington (bot) in branch '3.10': bpo-46299: improve `test_descr.py` with stricter error handling (GH-30471) https://github.com/python/cpython/commit/d2245cf190c36a6d74fe947bf133ce09d3313a6f

[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread miss-islington
miss-islington added the comment: New changeset 566d70a8d1c1afb8e770068f1686f762a1e343b9 by Miss Islington (bot) in branch '3.9': bpo-46299: improve `test_descr.py` with stricter error handling (GH-30471) https://github.com/python/cpython/commit/566d70a8d1c1afb8e770068f1686f762a1e343b9

[issue46303] _Py_stat and _Py_wstat using incorrect type for status argument

2022-01-07 Thread Paul Campbell
Change by Paul Campbell : -- title: _Py_stat using incorrect type for status argument -> _Py_stat and _Py_wstat using incorrect type for status argument ___ Python tracker

[issue46303] _Py_stat using incorrect type for status argument

2022-01-07 Thread Paul Campbell
Change by Paul Campbell : -- keywords: +patch pull_requests: +28681 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30478 ___ Python tracker ___

[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +28680 pull_request: https://github.com/python/cpython/pull/30477 ___ Python tracker ___

[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28679 pull_request: https://github.com/python/cpython/pull/30476 ___ Python tracker

[issue46303] _Py_stat using incorrect type for status argument

2022-01-07 Thread Paul Campbell
Change by Paul Campbell : -- components: +Build, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware type: -> compile error ___ Python tracker ___

[issue46304] Unable to iterate over lines in a file without a block of code

2022-01-07 Thread Jason R. Coombs
New submission from Jason R. Coombs : I'd like to be able to do something pretty fundamental: lazily load lines from a file in a single expression. Best I can tell, that's not possible in the language without triggering warnings. One can use 'open' but that triggers a ResourceWarning: ```

[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +28678 pull_request: https://github.com/python/cpython/pull/30475 ___ Python tracker ___

[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset e63066cfed27511c9b786d61761f87f7a532571a by Nikita Sobolev in branch 'main': bpo-46299: improve `test_descr.py` with stricter error handling (GH-30471) https://github.com/python/cpython/commit/e63066cfed27511c9b786d61761f87f7a532571a --

[issue46235] Do all ref-counting at once for sequence multiplication

2022-01-07 Thread Tim Peters
Change by Tim Peters : -- assignee: -> Dennis Sweeney resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46303] _Py_stat using incorrect type for status argument

2022-01-07 Thread Paul Campbell
New submission from Paul Campbell : While attempting to embed the full cpython source in my application, I found that during compilation on Windows, there was a compilation issue due to struct stat not being defined. Taking a look at the file cpython/fileutils.h, it seems that the type of

[issue46235] Do all ref-counting at once for sequence multiplication

2022-01-07 Thread Tim Peters
Tim Peters added the comment: New changeset ad1d5908ada171eff768291371a80022bfad4f04 by Dennis Sweeney in branch 'main': bpo-46235: Do all ref-counting at once during list/tuple multiplication (GH-30346) https://github.com/python/cpython/commit/ad1d5908ada171eff768291371a80022bfad4f04

[issue46300] zlib.compress level and wbits args are shown as keyword-only in the documentation

2022-01-07 Thread Andrei Kulakov
Andrei Kulakov added the comment: I forgot that '/' marks end of positional-only args, not keyword-only. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue46226] User specific paths added to System PATH environment variable

2022-01-07 Thread Eryk Sun
Eryk Sun added the comment: Were you upgrading an existing installation of Python 3.10? Did it actually install in "C:\Program Files\Python310"? Is Python currently installed in per-user "%LocalAppData%\Programs\Python\Python310"? Was it ever installed there? -- nosy: +eryksun

[issue46301] Enum tests: One branch is not covered in `Enum._convert_`

2022-01-07 Thread Ethan Furman
Ethan Furman added the comment: Alex, thanks for nosying me. Go ahead and make Enum issues assigned to me as well. :-) -- ___ Python tracker ___

[issue46301] Enum tests: One branch is not covered in `Enum._convert_`

2022-01-07 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46287] UNC path normalisation issues on Windows

2022-01-07 Thread Eryk Sun
Eryk Sun added the comment: > _Py_abspath/_getfullpathname does not always call GetFullPathNameW on 3.11. Also, PathCchSkipRoot() doesn't recognize forward slash as a path separator, so _Py_isabs() is wrong in many cases compared to the same path that uses backslash as the path separator.

[issue46301] Enum tests: One branch is not covered in `Enum._convert_`

2022-01-07 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +ethan.furman title: One branch is not covered in `Enum._convert_` -> Enum tests: One branch is not covered in `Enum._convert_` ___ Python tracker

[issue46302] IndexError inside list comprehension + workaround

2022-01-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Your functions test1 and test2 are irrelevant to the bug report. The driver code using eval() to pick which function to call is unneeded. The business of simulating a file is complexity for no purpose. Those ignore, count, unique functions are also

[issue46302] IndexError inside list comprehension + workaround

2022-01-07 Thread Stefan Pochmann
Stefan Pochmann added the comment: The error occurs when you do code.strip()[0] when code is " ", not "u2". -- nosy: +Stefan Pochmann ___ Python tracker ___

[issue46226] User specific paths added to System PATH environment variable

2022-01-07 Thread Aleksandr Krymskiy
Aleksandr Krymskiy added the comment: I did not find install logs in my user %TEMP% or C:\Windows\Temp. I did select "install for all users" during setup just like I always do, but I did not override the default location of "C:\Program Files\Python310". I attached screenshots of the options

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
Irit Katriel added the comment: Make a PR and we can then tweak it via code reviews, it will be easier. -- ___ Python tracker ___

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you. Compiles without even any warnings. Tests also all pass. -- ___ Python tracker ___

[issue46302] IndexError inside list comprehension + workaround

2022-01-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: > it returns IndexError (instead of "u") if used in a list comprehension Works as expected inside a list comprehension: >>> var = "u2" >>> [var.strip()[0] for i in range(2)] ['u', 'u'] >>> ["ok" for i in range(2) if var.strip()[0] == "u"] ['ok', 'ok'] I

[issue46237] Incorrect line reported in syntax error

2022-01-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +28677 pull_request: https://github.com/python/cpython/pull/30474 ___ Python tracker

[issue46237] Incorrect line reported in syntax error

2022-01-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 6fa8b2ceee38187b0ae96aee12fe4f0a5c8a2ce7 by Pablo Galindo Salgado in branch 'main': bpo-46237: Fix the line number of tokenizer errors inside f-strings (GH-30463)

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Gregor Titze
Gregor Titze added the comment: Irit: I would move the paragraph starting with "The except clause may specify a variable after the exception name ..." and the following example before the paragraph starting with "All exceptions inherit from BaseException, and so it can be used to serve as

[issue46237] Incorrect line reported in syntax error

2022-01-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I did some testing on my own using a code generator and a bunch of weird cases and I am confident this works. I am going to include this in the next alpha but will wait for your validation for some days before merging the backports. --

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2022-01-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: release blocker -> ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-07 Thread Steve Dower
Steve Dower added the comment: New changeset d81182b8ec3b1593daf241d44757a9fa68fd14cc by Steve Dower in branch 'main': bpo-46217: Revert use of Windows constant that is newer than what we support (GH-30473) https://github.com/python/cpython/commit/d81182b8ec3b1593daf241d44757a9fa68fd14cc

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Gregor Titze
Gregor Titze added the comment: Andre: You mention that user-defined exceptions should inherit from Exception. This is totally right and explicitly stated just a bit later in 8.6 on the same page of the tutorial. I think this perfectly covers this concern . However, the paragraph I refer

[issue46287] UNC path normalisation issues on Windows

2022-01-07 Thread neonene
neonene added the comment: Regarding https://github.com/python/cpython/pull/30362#issuecomment-1005496892 _Py_abspath/_getfullpathname does not always call GetFullPathNameW on 3.11. Python 3.10.1 >>> nt._getfullpathname('.\\C:spameggs. . .') '.\\C:\\spam\\eggs' Python

[issue46237] Incorrect line reported in syntax error

2022-01-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please Andre and Terry, test this fix as much as you want. I am quite sure is correct, but it is far-reaching so I want to make sure every situation that we can think of is correct (and remains correct). --

[issue46302] IndexError inside list comprehension + workaround

2022-01-07 Thread Pierre Fortin
New submission from Pierre Fortin : var = "u2" var.strip()[0] Works as expected, except that it returns IndexError (instead of "u") if used in a list comprehension -- at least, that's where I found it. Attached example script illustrates the issue. Call it with "mytest N" where N is 1

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-07 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28676 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/30473 ___ Python tracker

[issue46301] One branch is not covered in `Enum._convert_`

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

[issue46301] One branch is not covered in `Enum._convert_`

2022-01-07 Thread Nikita Sobolev
New submission from Nikita Sobolev : This branch is never covered: https://github.com/python/cpython/blob/c9dc1f491e8edb0bc433cde73190a3015d226891/Lib/enum.py#L831 I will send a PR in a moment :) -- components: Tests messages: 410053 nosy: sobolevn priority: normal severity: normal

[issue46289] AST: FomattedValue conversion's default value should be -1

2022-01-07 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 -Python 3.9 ___ Python tracker ___

[issue46142] python --help output is too long

2022-01-07 Thread Éric Araujo
Éric Araujo added the comment: I hard forgotten this bit in the email thread: Serhiy: What do you think about -hh (and maybe —help-full) printing full help? Guidp: Is there enough of a use case for this to bother? Barry: Maybe not. I’d say if it was easy to implement, why not, but if it’s a

[issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

2022-01-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46300] zlib.compress level and wbits args are shown as keyword-only in the documentation

2022-01-07 Thread Andrei Kulakov
Change by Andrei Kulakov : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46300] zlib.compress level and wbits args are shown as keyword-only in the documentation

2022-01-07 Thread Andrei Kulakov
New submission from Andrei Kulakov : zlib.compress level and wbits args are shown as keyword-only in the documentation, however they are accepted as positional without error. Should the docs or the code be fixed? -- messages: 410051 nosy: andrei.avk priority: low severity: normal

[issue46299] Improve several exception handling practices in `test_descr.py`

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

[issue46299] Improve several exception handling practices in `test_descr.py`

2022-01-07 Thread Nikita Sobolev
New submission from Nikita Sobolev : There are several problems in `test_descr.py` that I've found: 1. In `test_dir` there's a test case that ensure that `TypeError` is raised in some case:

[issue46289] AST: FomattedValue conversion's default value should be -1

2022-01-07 Thread miss-islington
miss-islington added the comment: New changeset bea3f42bb7c360921f864949ef7472a7ecb02cd3 by Miss Islington (bot) in branch '3.10': bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467) https://github.com/python/cpython/commit/bea3f42bb7c360921f864949ef7472a7ecb02cd3

[issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

2022-01-07 Thread Steve Dower
Steve Dower added the comment: Thanks for the report and the PR! -- assignee: -> steve.dower ___ Python tracker ___ ___

[issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

2022-01-07 Thread Steve Dower
Steve Dower added the comment: New changeset c9dc1f491e8edb0bc433cde73190a3015d226891 by Daniel in branch 'main': bpo-46297: Fix interpreter crash on startup with multiple PythonPaths set in registry (GH-30466)

[issue46282] print() docs do not indicate its return value

2022-01-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: > Barry: The PEP 8 'return None' recommendation could be added to the Reference > entry for 'return'. But I think this should be a separate issue as 1) it is > about coding rather than documentation and 2) there is the possible objection > that choosing

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42378] logging reopens file with same mode, possibly truncating

2022-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset e35430bec528dfb1a653cd457ea58b5a08543632 by Miss Islington (bot) in branch '3.10': [3.10] bpo-42378: fixed log truncation on logging shutdown (GH-27310) (GH-30468) https://github.com/python/cpython/commit/e35430bec528dfb1a653cd457ea58b5a08543632

[issue46205] test.libregrtest: Race condition in runtest_mp leads to hangs (never exits)

2022-01-07 Thread Sam Gross
Change by Sam Gross : -- keywords: +patch pull_requests: +28673 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30470 ___ Python tracker ___

[issue46289] AST: FomattedValue conversion's default value should be -1

2022-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +28672 pull_request: https://github.com/python/cpython/pull/30469 ___ Python tracker ___

[issue46289] AST: FomattedValue conversion's default value should be -1

2022-01-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I would say yes, for consistency. It doesn't have any effects on user code that I am aware -- ___ Python tracker ___

[issue42378] logging reopens file with same mode, possibly truncating

2022-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +28671 pull_request: https://github.com/python/cpython/pull/30468 ___ Python tracker ___

[issue42378] logging reopens file with same mode, possibly truncating

2022-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: I guess it got missed during the 3.10 beta cycle by not being backported - it might have needed to be cherry-picked. I'll see about getting it backported to 3.10. -- ___ Python tracker

[issue46289] AST: FomattedValue conversion's default value should be -1

2022-01-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Should we backport this? On Sat, Jan 8, 2022, 12:05 AM miss-islington wrote: > > miss-islington added the > comment: > > > New changeset d382f7ee0b98e4ab6ade9384268f25c06be462ad by Batuhan Taskaya > in branch 'main': > bpo-46289: Make conversion of

[issue46296] Unreachable condition: `if enum_class._member_type_ is object`

2022-01-07 Thread Ethan Furman
Ethan Furman added the comment: Thank you, Nikita! -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue46296] Unreachable condition: `if enum_class._member_type_ is object`

2022-01-07 Thread Ethan Furman
Ethan Furman added the comment: New changeset 74d1663580d1914bd110c3ab7282451f5e2cd2b5 by Nikita Sobolev in branch 'main': bpo-46296: [Enum] add a test for missing `value` recovery (GH-30458) https://github.com/python/cpython/commit/74d1663580d1914bd110c3ab7282451f5e2cd2b5 --

[issue46237] Incorrect line reported in syntax error

2022-01-07 Thread Andre Roberge
Andre Roberge added the comment: > This also affects 3.9 I imagine, no? Yes. And, from what I can tell, the same incorrect line is indicated at least all the way back to Python 3.6 (where it was "invalid token" instead of "invalid decimal literal). -- nosy: +aroberge

[issue46282] print() docs do not indicate its return value

2022-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: How about following "The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order." in https://docs.python.org/3/library/functions.html with "Here and elsewhere in these docs,

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Andre Roberge
Andre Roberge added the comment: >> For this advice (catching Exception and not BaseException) to be correct, >> users should be advised (as they are in the tutorial) to raise exceptions >> derived from Exception (and not BaseException). > I disagree with that. You are a core developer and

[issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

2022-01-07 Thread Eryk Sun
Change by Eryk Sun : -- type: behavior -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42378] logging reopens file with same mode, possibly truncating

2022-01-07 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

2022-01-07 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, tim.golden, zach.ware type: crash -> behavior ___ Python tracker ___

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
Irit Katriel added the comment: > For this advice (catching Exception and not BaseException) to be correct, > users should be advised (as they are in the tutorial) to raise exceptions > derived from Exception (and not BaseException). I disagree with that. --

[issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

2022-01-07 Thread Ned Deily
Change by Ned Deily : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Andre Roberge
Andre Roberge added the comment: Irit: In all the books and tutorials I have seen, the advice is to try to catch specific exceptions whenever possible or, *at most*, to catch Exception (and not BaseException). This is to allow, for example, a program to be interrupted by a

[issue46289] AST: FomattedValue conversion's default value should be -1

2022-01-07 Thread miss-islington
miss-islington added the comment: New changeset d382f7ee0b98e4ab6ade9384268f25c06be462ad by Batuhan Taskaya in branch 'main': bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467) https://github.com/python/cpython/commit/d382f7ee0b98e4ab6ade9384268f25c06be462ad

[issue46296] Unreachable condition: `if enum_class._member_type_ is object`

2022-01-07 Thread Nikita Sobolev
Nikita Sobolev added the comment: Yes, this is just a missing test. Not a wrong condition! -- components: +Tests -Library (Lib) ___ Python tracker ___

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2022-01-07 Thread Ned Deily
Ned Deily added the comment: > @ned.deily, @lukasz.langa: reopen this issue or open a new one? Since there are so many iterations on this issue already, I think a new issue would be better. -- ___ Python tracker

[issue42378] logging reopens file with same mode, possibly truncating

2022-01-07 Thread Dustin Oprea
Dustin Oprea added the comment: <- I'm intentionally using mode 'w' (to support development) and it's never been an issue until I recently refactored the project to be asynchronous. Now, every time I fail, I suddenly lose the logs. Not awesome. --

[issue46296] Unreachable condition: `if enum_class._member_type_ is object`

2022-01-07 Thread Ethan Furman
Change by Ethan Furman : -- Removed message: https://bugs.python.org/msg410029 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42378] logging reopens file with same mode, possibly truncating

2022-01-07 Thread Dustin Oprea
Dustin Oprea added the comment: I believe I'm seeing this, still, in an async situation. It seems like the obvious culprit. When will this go out in a release? I'm on 3.10.1 from December (under Arch). The PR got merged to master in July but I went through all changelogs back to March and

[issue46296] Unreachable condition: `if enum_class._member_type_ is object`

2022-01-07 Thread Ethan Furman
Ethan Furman added the comment: Looking through some of my code that prompted that branch, the issue is caused when `_generate_next_value_` modifies the given args -- when `__set_name__` runs it has no way of getting the same results to automatically create the `_value_` attribute.

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
Irit Katriel added the comment: Andre, are you saying that we should only RAISE Exception subclasses? -- ___ Python tracker ___

[issue46289] AST: FomattedValue conversion's default value should be -1

2022-01-07 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +28670 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30467 ___ Python tracker ___

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Andre Roberge
Andre Roberge added the comment: Irit: Gregor indicates that, while the tutorial refers to "a class that derives from Exception", the Python Reference Language states exceptions should be subclasses of BaseException (which Exception *is*). You then invited Gregor to submit a patch to

[issue46296] Unreachable condition: `if enum_class._member_type_ is object`

2022-01-07 Thread Ethan Furman
Ethan Furman added the comment: (2) is false. >>> from enum import Enum >>> >>> class MyEnum(Enum): ... def __new__(cls, value): ... member = object.__new__(cls) ... return member ... ONE = 1 ... >>> MyEnum.ONE MyEnum.ONE >>> MyEnum._use_args_ True >>>

[issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

2022-01-07 Thread Derzsi Dániel
Change by Derzsi Dániel : -- keywords: +patch pull_requests: +28669 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30466 ___ Python tracker ___

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-07 Thread miss-islington
miss-islington added the comment: New changeset a74eb5465582dd6e194a84ce4c66c12453373304 by Miss Islington (bot) in branch '3.9': bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360) https://github.com/python/cpython/commit/a74eb5465582dd6e194a84ce4c66c12453373304 --

[issue45661] [meta] Freeze commonly used stdlib modules.

2022-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: Deep-freezing is definitely not a miracle cure. We should continue to trim or delay unneeded imports (like Christian just did for setuptools' _distutils_hack). What *would* be a miracle cure would be if we could deep-freeze the module contents after it

[issue46298] Automatically check for __slots__-mistakes in Lib

2022-01-07 Thread Arie Bovenberg
New submission from Arie Bovenberg : Recently, I've identified some __slots__-related mistakes in the stdlib (bpo-46247, bpo-46244, bpo-46246). Looking forward, it'd be wise to automate this check so mistakes don't creep into the code in the future. Implementation-wise, the most

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-07 Thread miss-islington
miss-islington added the comment: New changeset ed2656a7d313dd9fa3a963d8b4dca4438cf73bc9 by Miss Islington (bot) in branch '3.10': bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360) https://github.com/python/cpython/commit/ed2656a7d313dd9fa3a963d8b4dca4438cf73bc9 --

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-07 Thread Eryk Sun
Eryk Sun added the comment: Terry, it's just a simple bug that slipped by. The PATHCCH_OPTIONS enum in the SDK header "PathCch.h" unconditionally defines all of the options. So there's no compiler error when building with a newer version of the SDK, even though we define _WIN32_WINNT to

[issue41370] PEP 585 and ForwardRef

2022-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: Niklas, can you show a brief example showing the issue you're running into? Is it just that list["Node"].__args__ is just ("Node",), not (ForwardRef("Node"),)? Or is it more complex? -- ___ Python tracker

[issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

2022-01-07 Thread Derzsi Dániel
New submission from Derzsi Dániel : When multiple PythonPaths are set up in the registry, in addition to the default PythonPath, the interpreter crashes immediately on bootup. ```Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.11\PythonPath\Panda3D]

[issue45925] Upgrade macOS and Windows installers to use SQLite 3.37.2

2022-01-07 Thread Steve Dower
Steve Dower added the comment: > Can you update the sources repo in the mean time? Done -- ___ Python tracker ___ ___

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-07 Thread Irit Katriel
Irit Katriel added the comment: New changeset 6d07a9fb7cb31433c376a1aa20ea32001da0a418 by Hugo van Kemenade in branch 'main': bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360) https://github.com/python/cpython/commit/6d07a9fb7cb31433c376a1aa20ea32001da0a418 --

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +28668 pull_request: https://github.com/python/cpython/pull/30465 ___ Python tracker ___

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +28667 pull_request: https://github.com/python/cpython/pull/30464 ___ Python tracker

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-07 Thread Steve Dower
Steve Dower added the comment: Only a newer WinSDK, which is not in any way a significant change to the resulting build and so isn't part of the "spec" as it were. But we'll remove the use of this flag once someone has the time to make a PR. (Remember to add the RM when you declare

[issue46285] http/server.py wont respect its protocol_version

2022-01-07 Thread Éric Araujo
Éric Araujo added the comment: I understand your report better after looking at the code. There is indeed a protocol_version parameter in the test function (which is really a main function, not test), that sets the protocol attribute on the passed handler class. (The class attribute is

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-01-07 Thread STINNER Victor
STINNER Victor added the comment: This bug is hard to reproduce for different reasons: * It occurs randomly: I need between 1 and 50 attempts to reproduce the bug using win_py399_crash_reproducer.py * So far, the bug was only reproduced on Windows. * I failed to reproduce the crash on

[issue46291] [doc] First argument to raise can also be BaseException

2022-01-07 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46291] [doc] First argument to raise can also be BaseException

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

  1   2   >