[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2021-10-20 Thread Ken Jin
Ken Jin added the comment: For future reference, the following opcodes specialized via the PEP 659 specializing adaptive interpreter: - LOAD_GLOBAL Issue44338 - LOAD_ATTR Issue44337 - STORE_ATTR Issue44826 (2% faster pyperformance) - BINARY_SUBSCR Issue26280 (2% faster pyperformance) -

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 88f4ec88e282bf861f0af2d237e9fe28fbc8deac by Łukasz Langa in branch '3.9': [3.9] bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993) (#29071)

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 65de808811f93793599209f74bb1bab3ad399b17 by Miss Islington (bot) in branch '3.10': bpo-45229: Make doctest tests discoverable (GH-28986) (GH-29095) https://github.com/python/cpython/commit/65de808811f93793599209f74bb1bab3ad399b17 --

[issue45541] Broken Link in asyncio library Docs

2021-10-20 Thread Lenin Kennedy
New submission from Lenin Kennedy : Priority: Low In the asyncio page (https://docs.python.org/3/library/asyncio.html), in the bullet points of "set of high-level APIs to:", link to "perform network IO and IPC;" is (https://docs.python.org/3/library/asyncio-stream.html#asyncio-streams).

[issue38782] Convert importlib.abc to use typing.Protocol

2021-10-20 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39490] Python Uninstaller fails to clean up the old path variables when uninstalling

2021-10-20 Thread Steve Dower
Steve Dower added the comment: It seems like it is, however, it sounds like the OP didn't restart PowerShell after the uninstall or reinstall, which is necessary (though not mentioned, but given it would usually be missed including text to that effect wouldn't have any impact anyway).

[issue45542] Using multiple comparison operators can cause performance issues

2021-10-20 Thread Maja
New submission from Maja : For example: def f(x): return 1 < x < 3 will be slower than: def f(x): return 1 < x and x < 3 The first function will generate following bytecode: 0 LOAD_CONST 1 (1) 2 LOAD_FAST0

[issue35673] Loader for namespace packages

2021-10-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 876fc7fcec9a79a11546b7588d3683a5ccb4d31c by Barry Warsaw in branch 'main': bpo-35673: Add a public alias for namespace package __loader__ attribute (#29049) https://github.com/python/cpython/commit/876fc7fcec9a79a11546b7588d3683a5ccb4d31c

[issue45540] module.__package__ and module.__spec__.parent have different semantics

2021-10-20 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : TL;DR module.__spec__.parent is read-only but module.__package__ is r/w despite documentation that implies that these two attributes should be identical, and various issues that focus on migrating from direct module attributes to ModuleSpec attributes.

[issue44174] Unclear meaning of _Private__names in enum docs.

2021-10-20 Thread Joseph Riddle
Joseph Riddle added the comment: _Private__names seems to no longer exist in the Python 3.11 documentation. https://docs.python.org/3.11/library/enum.html#private-names It appears to have been removed in this PR https://github.com/python/cpython/pull/23748/files Should this issue be

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 427ab124b3e9a54602b6f1d073a8e073159c0b51 by Miss Islington (bot) in branch '3.9': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29105)

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b2a989995e6b725c5c957927127832fd3fcecfa2 by Miss Islington (bot) in branch '3.10': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29104)

[issue45320] Remove deprecated inspect functions

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

[issue35673] Loader for namespace packages

2021-10-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 20, 2021, at 11:27, Brett Cannon wrote: > >> That should probably be a separate issue/PR in either case. > > https://bugs.python.org/issue38782 and I was trying to rope you into doing > the work.  Ha! You should have nosied me then :D - but

[issue41374] socket.TCP_* no longer available with cygwin 3.1.6+

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45192] The tempfile._infer_return_type function cannot infer the type of os.PathLike objects.

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 6270d3eeaf17b50abc4f8f4d97790d66179638e4 by Kyungmin Lee in branch 'main': bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323)

[issue45192] The tempfile._infer_return_type function cannot infer the type of os.PathLike objects.

2021-10-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27378 pull_request: https://github.com/python/cpython/pull/29111 ___ Python tracker

[issue45192] The tempfile._infer_return_type function cannot infer the type of os.PathLike objects.

2021-10-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +27379 pull_request: https://github.com/python/cpython/pull/29112 ___ Python tracker ___

[issue42517] Enum: do not convert private names into members

2021-10-20 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +27380 pull_request: https://github.com/python/cpython/pull/29113 ___ Python tracker ___

[issue45520] Frozen dataclass deep copy doesn't work with __slots__

2021-10-20 Thread Justin Furuness
Justin Furuness added the comment: Thank you for the in-depth explanation. That all makes sense to me, I have run into the __slots__ with defaults issues before, I'll be sure to try out these fixes. I appreciate you taking the time. Thanks, Justin On Tue, Oct 19, 2021 at 5:28 PM Josh

[issue45192] The tempfile._infer_return_type function cannot infer the type of os.PathLike objects.

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d33fae7105aaea7c376b5455fd1f8de802ca2542 by Miss Islington (bot) in branch '3.9': bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) (GH-29112)

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-20 Thread Hai Shi
Hai Shi added the comment: >Ah, sorry, I overlooked the flags. It's Okay. >This does beg the question: what else from PyType_Spec will be needed? I guess we don't want to allow additional slots/methods. +1. >Also, note that converting the stdlib to heap types is suspended, pending a >PEP.

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27376 pull_request: https://github.com/python/cpython/pull/29108 ___ Python tracker ___

[issue45532] Replace 'default' with 'main' as default in sys.version

2021-10-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +27375 pull_request: https://github.com/python/cpython/pull/29107 ___ Python tracker ___

[issue45532] Replace 'default' with 'main' as default in sys.version

2021-10-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27374 pull_request: https://github.com/python/cpython/pull/29106 ___ Python tracker

[issue45532] Replace 'default' with 'main' as default in sys.version

2021-10-20 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad by Jeong YunWon in branch 'main': bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100) https://github.com/python/cpython/commit/d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad --

[issue45541] Broken Link in asyncio library Docs

2021-10-20 Thread Lenin Kennedy
Lenin Kennedy added the comment: Sorry, not a bug. Found out it's actually how the python docs works. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue45532] Replace 'default' with 'main' as default in sys.version

2021-10-20 Thread Dong-hee Na
Dong-hee Na added the comment: Thank you Ezio and youknowone :) -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45542] Using multiple comparison operators can cause performance issues

2021-10-20 Thread Maja
Change by Maja : -- keywords: +patch pull_requests: +27377 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29109 ___ Python tracker ___

[issue45540] module.__package__ and module.__spec__.parent have different semantics

2021-10-20 Thread Brett Cannon
Brett Cannon added the comment: I say make it writable. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45320] Remove deprecated inspect functions

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d89fb9a5a610a257014d112bdceef73d7df14082 by Hugo van Kemenade in branch 'main': bpo-45320: Remove long-deprecated inspect methods (GH-28618) https://github.com/python/cpython/commit/d89fb9a5a610a257014d112bdceef73d7df14082 --

[issue45315] `PyType_FromSpec` does not copy the name

2021-10-20 Thread Petr Viktorin
Petr Viktorin added the comment: > the simplest solution is calling `type_set_name`, even if that runs some > unnecessary checks. Unfortunately this won't work, because it sets ht_name to the same value as tp_name. For historical reasons, the two can be different (and often are) for types

[issue35673] Loader for namespace packages

2021-10-20 Thread Brett Cannon
Brett Cannon added the comment: > What benefit would be gained? The ABCs are broader than what the import system actually requires due to their helper methods. So for typing purposes they are actually not a perfect fit. > That should probably be a separate issue/PR in either case.

[issue45540] module.__package__ and module.__spec__.parent have different semantics

2021-10-20 Thread Eric Snow
Eric Snow added the comment: On Wed, Oct 20, 2021 at 11:11 AM Barry A. Warsaw wrote: > Maybe we should relax the restriction on module.__spec__.parent so that it's > writeable just like module.__package__. Hmm, I hadn't realized __package__ is used in __import__(). That makes things

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-20 Thread Joe Wells
Joe Wells added the comment: In the hopes of convincing someone to install a fix to this bug, I will mention a few additional points. When I mention “the capture_locals feature”, I mean calls of the form traceback.TracebackException(..., capture_locals=True) and

[issue45315] `PyType_FromSpec` does not copy the name

2021-10-20 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +27371 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29103 ___ Python tracker ___

[issue45540] module.__package__ and module.__spec__.parent have different semantics

2021-10-20 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +brett.cannon, eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41374] socket.TCP_* no longer available with cygwin 3.1.6+

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue41374] socket.TCP_* no longer available with cygwin 3.1.6+

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> fixed status: open -> closed superseder: Cygwin is unsupported - close all open issues and list them here. -> ___ Python tracker

[issue41374] socket.TCP_* no longer available with cygwin 3.1.6+

2021-10-20 Thread Irit Katriel
Irit Katriel added the comment: New changeset d8e181925123ab1fd3dfcad3b29325b2b0ff704b by Zackery Spytz in branch 'main': bpo-41374: Remove obsolete exclusion of netinet/tcp.h on Cygwin (GH-21649) https://github.com/python/cpython/commit/d8e181925123ab1fd3dfcad3b29325b2b0ff704b --

[issue35673] Loader for namespace packages

2021-10-20 Thread Eric Snow
Eric Snow added the comment: On Mon, Jan 7, 2019 at 11:41 PM Eric V. Smith wrote: > Namespace packages (PEP 420) predate ModuleSpec (PEP 451). So, I think this > probably happened when 451 was implemented. Maybe Eric Snow recalls? PEP 451 talks about this a little

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: Marking this as "wont fix" since only documentation was updated. Thanks for reporting, Marek! -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45527] Reduce overhead for cache hits in specialized opcodes.

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

[issue45192] The tempfile._infer_return_type function cannot infer the type of os.PathLike objects.

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 64e83c711eb371d60fce64cae074c4d3311f6ece by Miss Islington (bot) in branch '3.10': bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) (GH-29111)

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27372 pull_request: https://github.com/python/cpython/pull/29104 ___ Python tracker

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +27373 pull_request: https://github.com/python/cpython/pull/29105 ___ Python tracker ___

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset dff0b713436e286bb1afdd7c6f3093c8e8db16dd by Łukasz Langa in branch 'main': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) https://github.com/python/cpython/commit/dff0b713436e286bb1afdd7c6f3093c8e8db16dd

[issue45532] Replace 'default' with 'main' as default in sys.version

2021-10-20 Thread miss-islington
miss-islington added the comment: New changeset 696a89fef81f8229ebff9c32dfd36921c04f0890 by Miss Islington (bot) in branch '3.10': bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100) https://github.com/python/cpython/commit/696a89fef81f8229ebff9c32dfd36921c04f0890

[issue3778] python uninstaller leave registry entries

2021-10-20 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue33277] Deprecate __loader__, __package__, and __cached__ on modules

2021-10-20 Thread Brett Cannon
Brett Cannon added the comment: > The spec identifies how a module should be loaded (or how it was loaded and > should be reloaded). We should be careful to preserve that identify and not > invite uses to modify the spec after (or while) the module is loaded. But they may want to modify it

[issue35673] Loader for namespace packages

2021-10-20 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the fix, Pablo! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 919268316582c6ac47960c2e5dd2ee1682371494 by Miss Islington (bot) in branch '3.9': bpo-45229: Make doctest tests discoverable (GH-28986) (GH-29096) https://github.com/python/cpython/commit/919268316582c6ac47960c2e5dd2ee1682371494 --

[issue45532] Replace 'default' with 'main' as default in sys.version

2021-10-20 Thread miss-islington
miss-islington added the comment: New changeset 1249ce7c6c0ac7a99a72e6e7b8b10dd64158c386 by Miss Islington (bot) in branch '3.9': bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100) https://github.com/python/cpython/commit/1249ce7c6c0ac7a99a72e6e7b8b10dd64158c386

[issue45527] Reduce overhead for cache hits in specialized opcodes.

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset bc85eb7a4f16e9e2b6fb713be2466ebb132fd7f2 by Mark Shannon in branch 'main': bpo-45527: Don't count cache hits, just misses. (GH-29092) https://github.com/python/cpython/commit/bc85eb7a4f16e9e2b6fb713be2466ebb132fd7f2 -- nosy:

[issue44174] Unclear meaning of _Private__names in enum docs.

2021-10-20 Thread Ethan Furman
Ethan Furman added the comment: It has been moved to the tutorial (links are at the top of the Enum page). -- ___ Python tracker ___

[issue45543] IDLE shell Windows EOL

2021-10-20 Thread Lee Bosch
New submission from Lee Bosch : The IDLE shell for Windows doesn't respect carriage returns in output strings. When using a '\r' as sep, end or as part of the output strings, IDLE ignores it and I get linear output rather than each successive line printing over the previous output. The same

[issue45544] Close 2to3 issues and list them here

2021-10-20 Thread Irit Katriel
New submission from Irit Katriel : 2to3 is deprecated. All open issues will now being closed as duplicates of this issue, in case someone needs this list in the future. -- messages: 404531 nosy: iritkatriel priority: normal severity: normal status: open title: Close 2to3 issues and

[issue2470] Need fixer for dl (removed) -> ctypes module

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue12864] 2to3 creates illegal code on import a.b inside a package

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue13332] execfile fixer produces code that does not close the file

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue27855] 2to3: Wrong code output w/ has_key without trailing space

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___ ___

[issue13253] 2to3 fix_renames renames sys.maxint only in imports

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue25527] Invalid (... and confusing) warning raised by 2to3 regarding repeat

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue35417] Double parenthesis in print function running 2to3 in already correct call

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue35708] lib2to3 failed to convert as refactor's fixes not search.pyc files

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue45545] chdir __exit__ is not safe

2021-10-20 Thread Jeremy
New submission from Jeremy : The way that contextlib.chdir currently restores the old working directory, an exception is raised if the program was already close to or beyond a system's PATH_MAX. The context manager has no issue crafting the path in __enter__ because os.getcwd() can return a

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue39683] 2to3 fix_exitfunc suggests duplicated import of atexit module

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue40547] 2to3 raise can silently remove code from old 2.4 string exceptions

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue39670] 2to3 fix_apply tries to fix user-defined apply function calls

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue2350] 'exceptions' import fixer

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue45544] Close 2to3 issues and list them here

2021-10-20 Thread Aldwin Pollefeyt
Change by Aldwin Pollefeyt : -- pull_requests: +27386 pull_request: https://github.com/python/cpython/pull/14835 ___ Python tracker ___

[issue43678] TypeError: get() got an unexpected keyword argument 'vars'

2021-10-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45540] module.__package__ and module.__spec__.parent have different semantics

2021-10-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 20, 2021, at 11:38, Eric Snow wrote: > > Regardless, I expect the primary reason __package__ is writable is > because modules have never had any read-only attrs. So historical accident mostly. > The more important question now is, when is

[issue45546] Unable to pickle enum with nested frozen dataclass?

2021-10-20 Thread Ethan Furman
Ethan Furman added the comment: I'm confused -- your initial report talks about pickling fields, but your tests are pickling the entire class... what am I missing? -- ___ Python tracker

[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13332] execfile fixer produces code that does not close the file

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11195] next fixer fooled by trailing characters

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12864] 2to3 creates illegal code on import a.b inside a package

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2470] Need fixer for dl (removed) -> ctypes module

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9273] 2to3 to simultaneously do code and doctests

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> works for me ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41110] 2to3 reports some files as both not changing and having been modified

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue11056] 2to3 fails for inner __metaclass__ class definition

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue12942] Shebang line fixer for 2to3

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: test needed -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue12613] itertools fixer fails

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue45544] Close 2to3 issues and list them here

2021-10-20 Thread Romuald Brunet
Change by Romuald Brunet : -- nosy: +Romuald nosy_count: 3.0 -> 4.0 pull_requests: +27383 pull_request: https://github.com/python/cpython/pull/16826 ___ Python tracker ___

[issue39154] "utf8" not always a synonym for "utf-8" in lib2to3

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue17393] stdlib import mistaken for local by import_fixer

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue6899] Base.replace breaks tree

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue43678] TypeError: get() got an unexpected keyword argument 'vars'

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45546] Unable to pickle enum with nested frozen dataclass?

2021-10-20 Thread Eric Cousineau
Eric Cousineau added the comment: Thinking on it some more, I the current `Enum` metaclass doesn't distinguish between nested class and normal field, so it wraps it, thus why `pickle` gets confused. Perhaps it's possible to recognize this case - the class w/ `__qualname__` can be checked

[issue45544] Close 2to3 issues and list them here

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40051] Give proper link in help(idlelib/turtledemo/tkinter.sub/test_*/?)

2021-10-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: As the title suggested, this is a generic help(module) issue that involves several library modules, including idlelib. It just happened to be reported for 2to3. For example, the generated text for import idlelib; help(idlelib) includes MODULE

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-20 Thread Tim Peters
Tim Peters added the comment: It's rare that an optimization is a _pure_ win. Some cases win, others lose. There's almost never "a proof" of net gain ending with "QED". Of course it's dead easy to construct examples where "many duplicates in the first tuple position" rules, and even easy to

[issue45548] Update Modules/Setup

2021-10-20 Thread miss-islington
miss-islington added the comment: New changeset dd86f63b551c8c255c6d8082c02f35608d294db9 by Brett Cannon in branch 'main': bpo-45548: add some missing entries to `Modules/Setup` (GH-29115) https://github.com/python/cpython/commit/dd86f63b551c8c255c6d8082c02f35608d294db9 -- nosy:

[issue20867] fix_import in 2to3 adds spurious relative import (windows)

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue45542] Using multiple comparison operators can cause performance issues

2021-10-20 Thread Dennis Sweeney
Dennis Sweeney added the comment: The PR changes behavior slightly: def f(): class A: def __lt__(self, other): nonlocal x x += 100 return True a = A() x = 1 print(a < x < 10) x = 1 print(a < x and x < 10) ### Before ### >>>

  1   2   3   4   >