[issue26571] turtle regression in 3.5

2022-01-01 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 5.0 -> 6.0 pull_requests: +28547 pull_request: https://github.com/python/cpython/pull/30332 ___ Python tracker ___

[issue40059] Provide a toml module in the standard library

2022-01-01 Thread Shantanu
Shantanu added the comment: pradyunsg kindly pointed me to an ongoing thread in Packaging discuss: https://discuss.python.org/t/adopting-recommending-a-toml-parser/4068/84 So seems like a PEP will be necessary. I'm happy to do legwork for that. (The PEP that I'll write differs from

[issue40059] Provide a toml module in the standard library

2022-01-01 Thread Shantanu
Shantanu added the comment: > You will need to address where the code is coming from, why that code should > be used, what's the API, etc. Happy new year, potentially-toml-wanting friends! I wrote up a draft of a proposal here:

[issue46142] python --help output is too long

2022-01-01 Thread Éric Araujo
Change by Éric Araujo : -- keywords: +patch pull_requests: +28546 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30331 ___ Python tracker

[issue46223] asyncio cause infinite loop during debug

2022-01-01 Thread aaron
New submission from aaron : When running code in debug mode, asyncio sometimes enter into infinite loop, shows as the following: ``` Current thread 0x7f1c15fc5180 (most recent call first): File "/root/miniconda3/envs/omicron/lib/python3.9/asyncio/events.py", line 58 in __repr__ File

[issue46057] argparse: embedded groups may prevent options from being in help output

2022-01-01 Thread paul j3
paul j3 added the comment: Don't add an argument_group to another argument_group. While input allows this nesting, the formatting is not designed to handle it. Nor does the documentation illustrate such nesting. Nesting a mutually_exclusive_group in an argument_group works because the

[issue46218] Change long_pow() to sliding window algorithm

2022-01-01 Thread Tim Peters
Tim Peters added the comment: Since cutting the window size by 1 cut the size of the dynamic precomputed table in half, the overhead of the sliding window method was correspondingly reduced. It can pay off at exponents of half the bit length now, so that threshold was also changed.

[issue46058] argparse: arg groups and mutually exclusive groups behave inconsitently

2022-01-01 Thread paul j3
paul j3 added the comment: At least until these latest deprecations, the only nesting that made sense was to put a mutually_exclusive_group inside an argument_group. This was a way of providing a title and description for the exclusive_group. (And not documented.) I don't know if that's

[issue46101] argparse: using parents & subcommands, options can be ignored

2022-01-01 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46142] python --help output is too long

2022-01-01 Thread Éric Araujo
Éric Araujo added the comment: It seems that preconfig is only for some options that change fundamental behaviour (isolated mode, default encoding), so I should be able to detect and handle '-X help' in initconfig. -- ___ Python tracker

[issue45649] Add tarinfo.Path

2022-01-01 Thread Barney Gale
Barney Gale added the comment: If you're only aiming for Traversable compatibility, sure. The original bug description asks for something that's pathlib-compatible and similar to zipfile.Path, which goes beyond the Traversable interface in attempting to emulate pathlib.Path. The

[issue45649] Add tarinfo.Path

2022-01-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'd recommend not to block on issue24132. It's not obvious to me that subclassing would be valuable. It depends on how it's implemented, but in my experience, zipfile.Path doesn't and cannot implement the full interface of pathlib.Path. Instead

[issue46218] Change long_pow() to sliding window algorithm

2022-01-01 Thread Tim Peters
Tim Peters added the comment: Nope, boosting the window size to 6 doesn't appear to really help at all, at least not on my box. Regardless of the window size, we have to do a bigint square for every bit position in the exponent. I don't know of any way to speed that (short of speeding

[issue45649] Add tarinfo.Path

2022-01-01 Thread Barney Gale
Barney Gale added the comment: It's possible to do, but will be a little slow due to the nature of tar files. They're a big linked list of files, so you need to do a bunch of reads/seeks from the start to the end to enumerate all files. I'd ask that we try to get issue24132 solved first.

[issue46126] Unittest output drives developers to avoid docstrings

2022-01-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: > > I presume I don't need to explain why docstrings are nice and preferable > > over comments. > Actually, can you? I searched around and didn't find any good treatise or thorough overview of reasons _why_ docstrings should be preferred, so I performed

[issue46198] Duplicate and unused code in tests

2022-01-01 Thread Nikita Sobolev
Nikita Sobolev added the comment: > I think most of these are false positives Yes, they are! Please, check out my PR: https://github.com/python/cpython/pull/30297 сб, 1 янв. 2022 г. в 21:52, Éric Araujo : > > Éric Araujo added the comment: > > I think most of these are false positives (it’s

[issue46186] replace `io.IncrementalNewlineDecoder` with non incremental newline decoders

2022-01-01 Thread Guo Ci Teo
Guo Ci Teo added the comment: Some uses of the `decode` method of `io.IncrementalNewlineDecoder` were incorrect without the `final=True` argument. One way to fix it would be to add the `final=True` in all cases. But the incremental decoding feature is not used, so I decided to replace it

[issue46186] replace `io.IncrementalNewlineDecoder` with non incremental newline decoders

2022-01-01 Thread Éric Araujo
Éric Araujo added the comment: Can you describe what the problem is? Is it incorrect in some cases? Is it inefficient? Without a statement of the issue, we can’t discuss a solution :) -- nosy: +eric.araujo versions: +Python 3.11 ___ Python tracker

[issue40059] Provide a toml module in the standard library

2022-01-01 Thread Alex Grönholm
Change by Alex Grönholm : -- nosy: +alex.gronholm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46187] Optionally support rounding for math.isqrt()

2022-01-01 Thread Case Van Horsen
Case Van Horsen added the comment: FWIW, gmpy2 uses isqrt_rem. Of course, gmpy2 uses underscores a lot. And uses next_toward instead of nextafter, and copy_sign instead of copysign, and is_nan instead of isnan... :( I would keep the math module consistent and use isqrtrem. I'll look at

[issue46118] Migrate importlib.resources into a package

2022-01-01 Thread Jason R. Coombs
Change by Jason R. Coombs : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46095] Improve SeqIter documentation

2022-01-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e9783d6434f28dfb0b531c6760f7642fc7ede278 by Miss Islington (bot) in branch '3.10': bpo-46095: Improve SeqIter documentation. (GH-30316) (GH-30330) https://github.com/python/cpython/commit/e9783d6434f28dfb0b531c6760f7642fc7ede278 --

[issue41403] Uncaught AttributeError in unittest.mock._get_target

2022-01-01 Thread Andrei Kulakov
Andrei Kulakov added the comment: More generally, split()/rsplit() are probably the most common operations done on expected string at the start of a function, i.e. most likely to be triggered on the wrong type passed in. At the same time to many new users split()/rsplit() does not imply

[issue46198] Duplicate and unused code in tests

2022-01-01 Thread Éric Araujo
Éric Araujo added the comment: I think most of these are false positives (it’s fine if 10 different tests define a function `f`), so should not be changed just to appease a lint tool. Others are genuine! -- ___ Python tracker

[issue46142] python --help output is too long

2022-01-01 Thread Éric Araujo
Éric Araujo added the comment: Question about the implementation: I’ve found the parsing of command-line params in Python/initconfig.c and Python/preconfig.c. Help is handled in initconfig, X options in preconfig. A) could add a value to the right struct for "-X help", set it in preconfig,

[issue46095] Improve SeqIter documentation

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

[issue46095] Improve SeqIter documentation

2022-01-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a09bc3a404befca197b5d9959a9c62110ee61d77 by Raymond Hettinger in branch 'main': bpo-46095: Improve SeqIter documentation. (GH-30316) https://github.com/python/cpython/commit/a09bc3a404befca197b5d9959a9c62110ee61d77 --

[issue46095] Improve SeqIter documentation

2022-01-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +28545 pull_request: https://github.com/python/cpython/pull/30330 ___ Python tracker

[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- priority: low -> normal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 72ffcb02f3ea6efcd3afe368996dc3ee89701898 by Miss Islington (bot) in branch '3.9': bpo-46079: Replace external link that is down for maintenance. (GH-30315) (GH-30329)

[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2bd73546959619b2519a7a830b3aaf190abeaf78 by Miss Islington (bot) in branch '3.10': bpo-46079: Replace external link that is down for maintenance. (GH-30315) (GH-30328)

[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

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

[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28543 pull_request: https://github.com/python/cpython/pull/30328 ___ Python tracker

[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2022-01-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset ac4eea21722d9ed1604c9c30a8d29ae2ce74f1b2 by Raymond Hettinger in branch 'main': bpo-46079: Replace external link that is down for maintenance. (GH-30315) https://github.com/python/cpython/commit/ac4eea21722d9ed1604c9c30a8d29ae2ce74f1b2

[issue46222] posixmodule sendfile FreeBSD's constants update

2022-01-01 Thread David CARLIER
New submission from David CARLIER : Adding SF_NOCACHE and little note for SF_MNOWAIT. -- components: FreeBSD messages: 409465 nosy: devnexen, koobs priority: normal pull_requests: 28542 severity: normal status: open title: posixmodule sendfile FreeBSD's constants update versions:

[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2022-01-01 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40236] datetime.datetime.strptime get day error

2022-01-01 Thread Andrei Kulakov
Andrei Kulakov added the comment: I didn't realize that time.strptime is just using python module _strptime. -- ___ Python tracker ___

[issue23902] let exception react to being raised or the setting of magic properties (like __cause__) within Python

2022-01-01 Thread Irit Katriel
Irit Katriel added the comment: I think this proposal should be rejected. We cannot safely pass control back to python code in the midst of raising an exception. -- resolution: -> rejected status: open -> pending ___ Python tracker

[issue45744] Fix Flawfinder C Errors

2022-01-01 Thread Irit Katriel
Irit Katriel added the comment: Can you specify what the flaws your discovered are, either in this issue or though a PR? -- nosy: +iritkatriel ___ Python tracker ___

[issue46070] _PyImport_FixupExtensionObject() regression causing a crash in subintepreters

2022-01-01 Thread Joel Uckelman
Joel Uckelman added the comment: I have this happening on Linux with a Flask app after upgrading from Fedora 34 to 35. libpython keeps crashing httpd. I see this from journalctl: #0 0x7fd899baa801 PyObject_Malloc (libpython3.10.so.1.0 + 0xf7801) #1 0x7fd899baab47

[issue46219] except* assumes that an exception group is truthy

2022-01-01 Thread Irit Katriel
Irit Katriel added the comment: ... "for falsy ExceptionGroup subclasses" -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2022-01-01 Thread Stefan Behnel
Stefan Behnel added the comment: I'd like to ask for clarification regarding issue 45321, which adds the missing error constants to the `expat` module. I consider those new features – it seems inappropriate to add new module constants in the middle of a release series. However, in this

[issue46216] spurious link to os.system() from os.times() documentation entry

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue46216] spurious link to os.system() from os.times() documentation entry

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 2.0 -> 3.0 pull_requests: +28541 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30326 ___ Python tracker

[issue46221] Simplify except* implementation and move helpers to exceptions.c

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

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28539 pull_request: https://github.com/python/cpython/pull/30289 ___ Python tracker ___

[issue46219] except* assumes that an exception group is truthy

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

[issue46221] Simplify except* implementation and move helpers to exceptions.c

2022-01-01 Thread Irit Katriel
New submission from Irit Katriel : Following issue45711, the implementation of except* can be simplified - we do not need to use POP_EXCEPT_AND_RERAISE to reraise the exception calculated by PREP_RERAISE_STAR, we can instead 1. Make PREP_RERAISE_STAR not push a dummy lasti to the stack. 2.

[issue46220] imaplib.py "select" mailbox names containing spaces.

2022-01-01 Thread Matthew H. McKenzie
New submission from Matthew H. McKenzie : A mailbox (folder) need not be for a recipient and need not be the private part of an RFC2822 address. Passing a value of "000 Bookings" to select() results in validation issues when the tokens are parsed as arguments and there are too many. It

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

2022-01-01 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-01 Thread neonene
neonene added the comment: The flag is not for Win8.1 and available starting in Win10 1703 with v10.0.15021 SDK. -- nosy: +neonene ___ Python tracker ___

[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab

2022-01-01 Thread E. Paine
E. Paine added the comment: Reproduced using Wish built from the current Tk head (on Windows - I'm unable to reproduce on Linux). --- Strangely, invoking destroy in the trace callback raises a very strange error that appears to be missing the first two lines (tkinter may be hiding this

[issue46219] except* assumes that an exception group is truthy

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- title: except* assumes that an exception group is truth -> except* assumes that an exception group is truthy ___ Python tracker ___

[issue46219] except* assumes that an exception group is truth

2022-01-01 Thread Irit Katriel
New submission from Irit Katriel : except* checks truthiness of the output of PREP_RERAISE_STAR, and this gives the wrong result for false ExceptionGroup subclasses. See https://github.com/python/cpython/pull/30302#discussion_r776825568 -- components: Interpreter Core messages: 409454

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -28217 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -28193 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Irit Katriel added the comment: This is done, there will be more cleanups that this enables but they can have their own issues. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-01-01 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -28503 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46215] Wrong error line after using pdb

2022-01-01 Thread beda pišl
beda pišl added the comment: I tried this on current main branch, and I cannot reproduce the problem there. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue46198] Duplicate and unused code in tests

2022-01-01 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thanks! I will also attach all `flake8`'s output if someone is going to need it: ``` » flake8 --select=F811 Lib/test Lib/test/test_descr.py:1165:13: F811 redefinition of unused 'C' from line 1158 Lib/test/test_descr.py:1172:13: F811 redefinition of unused 'C'