[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- versions: -Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- versions: +Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45737] assertLogs to optionally not disable existing handlers

2021-11-06 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: A correction to the discussion: The PR I made only fixes CONSTANT integer division, not any other. The left and right operands are checked for non-constants and then are checked for integerness (specifically checks for `NOT A FLOAT`s). After both

[issue45742] python -h can't find -R option

2021-11-06 Thread jiahua wang
New submission from jiahua wang : I input python -h on the command line, and I can't find any -R option. -- assignee: docs@python components: Documentation messages: 405891 nosy: 180909, docs@python priority: normal severity: normal status: open title: python -h can't find -R option

[issue19217] Calling assertEquals for moderately long list takes too long

2021-11-06 Thread Jack DeVries
Jack DeVries added the comment: Hey all, I'm putting a ping on this issue. I think my fix is ready to merge, see GH-27434. Thanks for all the feedback on the PR so far! -- ___ Python tracker

[issue44067] Zipfile lib overwrites the extra field during closing when the archive size is more then ZIP64_LIMIT

2021-11-06 Thread anadius
Change by anadius : -- nosy: +alanmcintyre, serhiy.storchaka, twouters ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: I have put some effort to make it work for constant integers. So this x = a ** 3 / 7 would not be changed, since it refers to a name whose value is not known. -- ___ Python tracker

[issue45741] entry points singular?

2021-11-06 Thread Rafael Fontenelle
New submission from Rafael Fontenelle : whatsnew/3.10 on importlib.metadata has the following paragraph: "importlib.metadata entry points now provides a nicer experience for selecting entry points by group and name through a new importlib.metadata.EntryPoints class. See the Compatibility

[issue44010] IDLE: highlight soft keywords

2021-11-06 Thread Rafael Fontenelle
Change by Rafael Fontenelle : -- nosy: +rffontenelle nosy_count: 5.0 -> 6.0 pull_requests: +27709 pull_request: https://github.com/python/cpython/pull/29454 ___ Python tracker

[issue45392] docstring of "type" could use an update

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Mark! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker

[issue45392] docstring of "type" could use an update

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 045f205ba4710c4c633364a4e2e098483af936e5 by Miss Islington (bot) in branch '3.10': bpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29452) https://github.com/python/cpython/commit/045f205ba4710c4c633364a4e2e098483af936e5

[issue45392] docstring of "type" could use an update

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f5287ecd59d83a662490f89188a0fc2ef3718f8b by Miss Islington (bot) in branch '3.9': bpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29453) https://github.com/python/cpython/commit/f5287ecd59d83a662490f89188a0fc2ef3718f8b

[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread Eric V. Smith
Eric V. Smith added the comment: I think knowing that that's integer division is beyond what 2to3 can accomplish. Plus, with lib2to3 being deprecated, I don't think anyone's going to put any effort into this. -- nosy: +eric.smith ___ Python

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 376218e1c65c029c24e45ca408a14f681cf1aeae by Miss Islington (bot) in branch '3.9': bpo-27313: Use non-deprecated methods for tracing (GH-29425) (GH-29451) https://github.com/python/cpython/commit/376218e1c65c029c24e45ca408a14f681cf1aeae

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8fdf6c64d3e0183c21f069d31d350a907ce42708 by Miss Islington (bot) in branch '3.10': bpo-27313: Use non-deprecated methods for tracing (GH-29425) (GH-29450) https://github.com/python/cpython/commit/8fdf6c64d3e0183c21f069d31d350a907ce42708

[issue45392] docstring of "type" could use an update

2021-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +27708 pull_request: https://github.com/python/cpython/pull/29453 ___ Python tracker ___

[issue45392] docstring of "type" could use an update

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 91275207296c39e495fe118019a757c4ddefede8 by Mark Dickinson in branch 'main': bpo-45392: Update the docstring of the 'type' built-in (GH-29439) https://github.com/python/cpython/commit/91275207296c39e495fe118019a757c4ddefede8 --

[issue45392] docstring of "type" could use an update

2021-11-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27707 pull_request: https://github.com/python/cpython/pull/29452 ___ Python tracker

[issue45392] docstring of "type" could use an update

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: It's unclear what the original comment was about. BPO-20189 is somewhat cryptic to me too. `inspect.signature` never supported `type`, `round`, `int`, and so on. I checked 3.4.10 and 3.5.10 and in each case it looks like this: >>> inspect.signature(type)

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2021-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +27706 pull_request: https://github.com/python/cpython/pull/29451 ___ Python tracker ___

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2021-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +27705 pull_request: https://github.com/python/cpython/pull/29450 ___ Python tracker ___

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset cc1cbcbb2d75cacc31ff3359d83043bc7bd5a89d by Serhiy Storchaka in branch 'main': bpo-27313: Use non-deprecated methods for tracing (GH-29425) https://github.com/python/cpython/commit/cc1cbcbb2d75cacc31ff3359d83043bc7bd5a89d --

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 643f50ca5e9e12a4d8269ddc8baf2279d8608745 by Miss Islington (bot) in branch '3.9': [doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29448) https://github.com/python/cpython/commit/643f50ca5e9e12a4d8269ddc8baf2279d8608745

[issue39452] Improve the __main__ module documentation

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e53cb9811f97ded5a20872fe0f3486bc7f8f1b6e by Miss Islington (bot) in branch '3.10': bpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH-29379) (GH-29449)

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 494f8da741054e5bab33f23f3961400ea5778235 by Miss Islington (bot) in branch '3.10': [doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29447) https://github.com/python/cpython/commit/494f8da741054e5bab33f23f3961400ea5778235

[issue39452] Improve the __main__ module documentation

2021-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +27704 pull_request: https://github.com/python/cpython/pull/29449 ___ Python tracker ___

[issue39452] Improve the __main__ module documentation

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 57457a1e5caf714034a75fe4f382b8b669ce6ed8 by Andre Delfino in branch 'main': bpo-39452: [doc] Change "must" to "can" on relative import style in `__main__` (GH-29379)

[issue39452] Improve the __main__ module documentation

2021-11-06 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: +adelfino nosy_count: 11.0 -> 12.0 pull_requests: +27703 pull_request: https://github.com/python/cpython/pull/29379 ___ Python tracker ___

[issue45644] Make json.tool soak up input before opening output for writing

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Chris! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45644] Make json.tool soak up input before opening output for writing

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a932631890d148444e5f9b09f4b57305475d6386 by Miss Islington (bot) in branch '3.9': bpo-45644: Make json.tool read infile before writing to outfile (GH-29273) (GH-29446)

[issue45644] Make json.tool soak up input before opening output for writing

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 6603f6b5bdf0ed164bad4eb432619da2e95fb518 by Miss Islington (bot) in branch '3.10': bpo-45644: Make json.tool read infile before writing to outfile (GH-29273) (GH-29445)

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2021-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +27701 pull_request: https://github.com/python/cpython/pull/29447 ___ Python tracker ___

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2021-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +27702 pull_request: https://github.com/python/cpython/pull/29448 ___ Python tracker ___

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 77a2c77c84d2ead2d19f96df862c119308e90071 by Alex Waygood in branch 'main': [doc] bpo-45680: Improve glossary entry for generic types (GH-29388) https://github.com/python/cpython/commit/77a2c77c84d2ead2d19f96df862c119308e90071 --

[issue45740] StrEnum entry doesn't mention its introduction in 3.11

2021-11-06 Thread Ethan Furman
Ethan Furman added the comment: Thanks! -- assignee: docs@python -> ethan.furman resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45740] StrEnum entry doesn't mention its introduction in 3.11

2021-11-06 Thread Ethan Furman
Ethan Furman added the comment: New changeset cb755dba7a988f92a7d1cad48f3c27df18c9342d by Ethan Furman in branch 'main': bpo-45740: [Enum] add versionadded markers to docs (GH-29443) https://github.com/python/cpython/commit/cb755dba7a988f92a7d1cad48f3c27df18c9342d --

[issue45644] Make json.tool soak up input before opening output for writing

2021-11-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +27700 pull_request: https://github.com/python/cpython/pull/29446 ___ Python tracker ___

[issue45644] Make json.tool soak up input before opening output for writing

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 815dad42d53fc40a6dc057e067f4a8a885c3b858 by Chris Wesseling in branch 'main': bpo-45644: Make json.tool read infile before writing to outfile (GH-29273) https://github.com/python/cpython/commit/815dad42d53fc40a6dc057e067f4a8a885c3b858

[issue45644] Make json.tool soak up input before opening output for writing

2021-11-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +27699 pull_request: https://github.com/python/cpython/pull/29445 ___ Python tracker

[issue35828] test_multiprocessing_fork: segmentation error in PyDict_GetItem on AIX

2021-11-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45735] Promise the long-time truth that `args=list` works

2021-11-06 Thread Tim Peters
Tim Peters added the comment: Serhiy, we haven't documented such stuff, and, indeed, I've been burned by it but much more often in the case of multiprocessing.Process. But note that I'm SWAPPING the order of your last two lines. In the original, you mutated the argument _before_ starting

[issue45723] Improve and simplify configure.ac checks

2021-11-06 Thread Christian Heimes
Christian Heimes added the comment: GH-29441 introduces forward compatibility issues with autoconf 2.71. I took the output of autoupdate and resolved all warnings. -- ___ Python tracker

[issue45644] Make json.tool soak up input before opening output for writing

2021-11-06 Thread Łukasz Langa
Łukasz Langa added the comment: This is arguably a bugfix since truncating the `infile` cannot be construed as a useful feature in any sense. Thus I'm inclined to backport this to 3.10.1 and 3.9.9 too. -- nosy: +lukasz.langa type: enhancement -> behavior versions: +Python 3.10,

[issue45740] StrEnum entry doesn't mention its introduction in 3.11

2021-11-06 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +27698 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29443 ___ Python tracker ___

[issue45723] Improve and simplify configure.ac checks

2021-11-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27697 pull_request: https://github.com/python/cpython/pull/29442 ___ Python tracker ___

[issue45723] Improve and simplify configure.ac checks

2021-11-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27696 pull_request: https://github.com/python/cpython/pull/29441 ___ Python tracker ___

[issue35828] test_multiprocessing_fork: segmentation error in PyDict_GetItem on AIX

2021-11-06 Thread Michael Felt
Michael Felt added the comment: I stopped running my bot. I have no idea if this is also an issue on 3.9+ And since noone will look at this in it's present state. I'd recommend closing. -- ___ Python tracker

[issue45740] StrEnum entry doesn't mention its introduction in 3.11

2021-11-06 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45740] StrEnum entry doesn't mention its introduction in 3.11

2021-11-06 Thread Dutcho
New submission from Dutcho : At https://docs.python.org/3.11/library/enum.html#enum.StrEnum no mention is made of 'New in version 3.11', whereas e.g. https://docs.python.org/3.11/library/enum.html#enum.EnumCheck does. Note https://docs.python.org/3.11/library/enum.html#module-contents DOES

[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: When 2to3 supports integer division fixing, there would be this behaviour: - x = 2 ** 8 / 5 / 7 + x = 2 ** 8 // 5 // 7 Basically convert any integer division to floor division. The PR I made only works for constant integers, and any improvement would

[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45739] The Python implementation of Decimal does not support the "N" format

2021-11-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The C implementation supports both formats "n" and "N". The Python implementation only supports format "n". >>> from decimal import Decimal >>> format(Decimal('1e100'), 'n') '1e+100' >>> format(Decimal('1e100'), 'N') '1E+100' >>> from _pydecimal import

[issue45737] assertLogs to optionally not disable existing handlers

2021-11-06 Thread Daniel
Change by Daniel <3dan...@hotmail.com>: -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-06 Thread PEW's Corner
New submission from PEW's Corner : When exec'ing code with an illegal character after the line continuation character '\', python 3.11.0a2 raises this strange exception: SystemError: Negative size passed to PyUnicode_New Here's an example where '#' is the illegal character:

[issue45737] assertLogs to optionally not disable existing handlers

2021-11-06 Thread Daniel
Change by Daniel <3dan...@hotmail.com>: -- components: +Library (Lib) versions: +Python 3.11 ___ Python tracker ___ ___

[issue45615] Missing test for type of error when printing traceback for non-exception

2021-11-06 Thread Nikita Sobolev
Nikita Sobolev added the comment: Couple of thoughts. 1. You have to create quite complex structural "clone" of `Exception` for python-based `traceback`: ```python def test_non_exception_subtype(self): class RegularObject: __traceback__ = None

[issue45737] assertLogs to optionally not disable existing handlers

2021-11-06 Thread Daniel
New submission from Daniel <3dan...@hotmail.com>: At the moment, assertLogs removes the handlers attached to the logger. In general this is good, because it reduces message spamming in the test logs. However, if the code being tested is relying on a handler to do something, then the test fails

[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- keywords: +patch pull_requests: +27694 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29440 ___ Python tracker

[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread theeshallnotknowethme
New submission from theeshallnotknowethme : Right now, 2to3 does not support integer division fixing. Supposing `test.py` is a file with these contents: x = 2 ** 8 / 5 / 7 Here's an example: C:\Users\admin> py -m lib2to3 test.py RefactoringTool: Skipping optional fixer: buffer

[issue45719] SubProcess stdin.flush freezes when running python interpreter

2021-11-06 Thread Eryk Sun
Eryk Sun added the comment: Interactive mode isn't automatically enabled when stdin isn't a tty, so the interpreter tries to read all of stdin, until the result is empty (i.e. EOF). You can force interactive mode with the -i command-line option. The example would also benefit from passing

[issue45392] docstring of "type" could use an update

2021-11-06 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +27693 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29439 ___ Python tracker ___

[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: > It looks like quite similar changes have already been made: Yes, I think this isn't something that needs to be resolved for this issue, but it is something we need to think about. (Though perhaps the resolution is just "Don't worry about it until we need

[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-06 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +27692 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29438 ___ Python tracker ___

[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-06 Thread Nikita Sobolev
Nikita Sobolev added the comment: > We do need to think about the implications of making local changes to our > copy of the externally-maintained libmpdec library, though. It looks like quite similar changes have already been made:

[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: duplicate -> stage: resolved -> status: closed -> open superseder: Add underscore as a decimal separator for string formatting -> ___ Python tracker

[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: Serhiy: this is not a duplicate of #43624. That issue is about underscores in the *fractional* part of a (float / complex / Decimal) number, and the changes to the formatting mini-language syntax that would be necessary to support that. This issue is simply

[issue45731] Handle --enable-loadable-sqlite-extensions in configure

2021-11-06 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45731] Handle --enable-loadable-sqlite-extensions in configure

2021-11-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset e9594f6747e848c26e2bf67d467aabfd62b3 by Christian Heimes in branch 'main': bpo-45731: Handle --enable-loadable-sqlite-extensions in configure (GH-29434) https://github.com/python/cpython/commit/e9594f6747e848c26e2bf67d467aabfd62b3

[issue45735] Promise the long-time truth that `args=list` works

2021-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is a difference if you modify the arguments list after creating a thread. args = [1] t = threading.Thread(target=access, args=args) args[0] = 2 t.start() Would it call access(1) or access(2)? -- nosy: +serhiy.storchaka

[issue45684] `functools.singledispatchmethod` does not define `__class_getitem__`

2021-11-06 Thread Alex Waygood
Alex Waygood added the comment: ^ I posted the wrong link for the example; it should have been: https://mypy-play.net/?mypy=latest=3.10=show-error-codes%2Cstrict=6a26d31899f9803a823662261eae21df -- ___ Python tracker

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

2021-11-06 Thread Irit Katriel
Irit Katriel added the comment: Initially not, neither in python nor in the c api. It would be nice to replace PyErr_Fetch/Restore by a version that takes just an exception but that’s a long deprecation. -- ___ Python tracker

[issue45710] Junction/symbolic folder access error on Windows 11

2021-11-06 Thread Eryk Sun
Eryk Sun added the comment: > does this or does this not look to you like a bug in CPython? It's better to leave the detailed explanation of limits up to the document that's referenced for further information [1], but this issue isn't even briefly mentioned there. Maybe it would help some