[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check

2022-02-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3483aa65dfebfc60a87ea9db3f20da84be41f606 by Nikita Sobolev in branch 'main': bpo-46583: remove unused `sys.version_info` check from `selectors` (GH-31023) https://github.com/python/cpython/commit/3483aa65dfebfc60a87ea9db3f20da84be41f606 --

[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check

2022-02-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46583] Modernize `selectors.py` by removing unused `sys.version_info` check

2022-02-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: The change should NOT be backported, it doesn't fix any bug but clears code a little -- versions: -Python 3.10, Python 3.9 ___ Python tracker _

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: Oops, sorry: In Tk itself. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue46591] Make About IDLE links clickable

2022-02-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the idea and patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker _

[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-02 Thread Kumar Aditya
New submission from Kumar Aditya : This reduces the size of the data segment by 300 KB of the executable because if the modules are deep-frozen then the marshalled frozen data just wastes space. This was inspired by comment by @gvanrossum in #29118 (comment). Note: There is a new option `--de

[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-02 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch pull_requests: +29259 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31074 ___ Python tracker ___ ___

[issue46597] Remove Python 3.3 compatibility code from overlapped.c

2022-02-02 Thread Kumar Aditya
Change by Kumar Aditya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-02-02 Thread STINNER Victor
STINNER Victor added the comment: Oh, LegacyInterpolation is not documented at: https://docs.python.org/dev/library/configparser.html > Other configparser deprecations were added in 3.2, but with > DeprecationWarnings. Its deprecation was never documented anywhere in Doc/. Well, to respect t

[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-02 Thread STINNER Victor
STINNER Victor added the comment: > For example, see _Py_abspath For functions which are commonly called in Python at runtime, it may be worth it to manually merged large local variables to save a few bytes on the stack when Python is built with -O0. For _Py_abspath(), this function is only

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2022-02-02 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've done some more research and this is an integration issue between pyglet and Tk. In particular: * Both pyglet and Tk use AppKit to implement their GUI * AppKit uses an NSApplication class, and in particular a singleton instance of that class, to represe

[issue46072] Unify handling of stats in the CPython VM

2022-02-02 Thread Mark Shannon
Mark Shannon added the comment: New changeset 187930f74c44e460ba09c60ba5d9bb4fac543d8f by Mark Shannon in branch 'main': bpo-46072: Add some frame stats. (GH-31060) https://github.com/python/cpython/commit/187930f74c44e460ba09c60ba5d9bb4fac543d8f --

[issue46180] Button clicked failed when mouse hover tooltip and tooltip destroyed

2022-02-02 Thread PySimpleGUI
PySimpleGUI added the comment: I'll do some Linux testing today to see if I can replicate it. There was another problem reported that only on 8.6.12 on Mac (sorry, don't mean to muddy the waters by mentioning it). The reason I bring it up is that I've not seen a tkinter release have these s

[issue46609] Generator-based coroutines in Python 3.10 docs

2022-02-02 Thread Sebastian Rittau
New submission from Sebastian Rittau : Currently, the Python 3.10.2 documentation at https://docs.python.org/3/library/asyncio-task.html?highlight=coroutine#asyncio.coroutine says: "Note: Support for generator-based coroutines is deprecated and is scheduled for removal in Python 3.10." Pyth

[issue24132] Direct sub-classing of pathlib.Path

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset 08f8301b21648d58d053e1a513db8ed32fbf37dd by Barney Gale in branch 'main': bpo-43012: remove `pathlib._Accessor` (GH-25701) https://github.com/python/cpython/commit/08f8301b21648d58d053e1a513db8ed32fbf37dd -- nosy: +miss-islington

[issue43012] Remove pathlib accessors

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset 08f8301b21648d58d053e1a513db8ed32fbf37dd by Barney Gale in branch 'main': bpo-43012: remove `pathlib._Accessor` (GH-25701) https://github.com/python/cpython/commit/08f8301b21648d58d053e1a513db8ed32fbf37dd -- nosy: +miss-islington

[issue42238] Deprecate suspicious.py?

2022-02-02 Thread Julien Palard
Julien Palard added the comment: OK, we have: https://github.com/sphinx-contrib/sphinx-lint Ping me if you want rights :) -- ___ Python tracker ___ __

[issue46610] assertCountEqual doesn't work as expected for dictionary elements

2022-02-02 Thread Can
Change by Can : -- nosy: cansarigol priority: normal severity: normal status: open title: assertCountEqual doesn't work as expected for dictionary elements type: behavior ___ Python tracker __

[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2022-02-02 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +29260 pull_request: https://github.com/python/cpython/pull/31076 ___ Python tracker ___ ___

[issue46610] assertCountEqual doesn't work as expected for dictionary elements

2022-02-02 Thread Nikita Sobolev
New submission from Nikita Sobolev : @cansarigol, can you please specify what do you expect and how it works? -- nosy: +sobolevn ___ Python tracker ___

[issue46610] assertCountEqual doesn't work as expected for dictionary elements

2022-02-02 Thread Nikita Sobolev
Change by Nikita Sobolev : -- components: +Library (Lib) versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___ ___

[issue46610] assertCountEqual doesn't work as expected for dictionary elements

2022-02-02 Thread Can
Change by Can : -- keywords: +patch pull_requests: +29261 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31077 ___ Python tracker ___

[issue46200] Discourage logging f-strings due to security considerations

2022-02-02 Thread Tin Tvrtković
Tin Tvrtković added the comment: Eric is absolutely right, due to function calls being somewhat slow in Python the performance argument in practice falls in favor of f-strings. So if they're faster, more readable, and more convenient to write, no wonder people prefer them (including me). The

[issue46594] Windows "Edit with IDLE >" only has one selection

2022-02-02 Thread Steve Dower
Steve Dower added the comment: True. I guess we need to dig a little deeper to find a cause here. Any other ideas? -- ___ Python tracker ___ _

[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset 8d239bfdcc98f4e4a592d9cda569380a9c15a5c0 by Petr Viktorin in branch '3.9': [3.9] bpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_cache (GH-29384) (GH-30922) (GH-31076) https://github.com/python/cpython/commit/8d239bfdcc98f4e4

[issue45995] string formatting: normalize negative zero

2022-02-02 Thread John Belmonte
John Belmonte added the comment: PEP at https://github.com/python/peps/pull/2295 -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue46611] Improve coverage of `__instancecheck__` and `__subclasscheck__` methods in `typing.py`

2022-02-02 Thread Nikita Sobolev
New submission from Nikita Sobolev : There are several problem reported by coverage: 1. This line is never reached in `_SpecialGenericAlias.__subclasscheck__`: https://github.com/python/cpython/blob/08f8301b21648d58d053e1a513db8ed32fbf37dd/Lib/typing.py#L1140 2. `__instancecheck__` and `__subcla

[issue46611] Improve coverage of `__instancecheck__` and `__subclasscheck__` methods in `typing.py`

2022-02-02 Thread Nikita Sobolev
Change by Nikita Sobolev : -- nosy: +AlexWaygood, gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46611] Improve coverage of `__instancecheck__` and `__subclasscheck__` methods in `typing.py`

2022-02-02 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29262 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31078 ___ Python tracker ___ _

[issue46610] assertCountEqual doesn't work as expected for dictionary elements

2022-02-02 Thread Eric V. Smith
Eric V. Smith added the comment: The PR changes the meaning of assertCountEqual. https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertCountEqual says: Equivalent to: assertEqual(Counter(list(first)), Counter(list(second))) ... At the very least, the documentation would ne

[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2022-02-02 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46610] assertCountEqual doesn't work as expected for dictionary elements

2022-02-02 Thread Can
Can added the comment: @sobolevn I was expecting the following test case to be covered. self.assertRaises(self.failureException, self.assertCountEqual, {'a': 1}, {'a': 2}) what I understand from the doc of the assertion is that elements have to be the same without r

[issue46072] Unify handling of stats in the CPython VM

2022-02-02 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29263 pull_request: https://github.com/python/cpython/pull/31079 ___ Python tracker ___

[issue45459] Limited API support for Py_buffer

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset f66c857572a308822c70fd25e0197b6e0dec6e34 by Christian Heimes in branch 'main': bpo-45459: Add Py_buffer to limited API (GH-29991) https://github.com/python/cpython/commit/f66c857572a308822c70fd25e0197b6e0dec6e34 -- nosy: +miss-islingt

[issue46612] Unclear behavior of += operator

2022-02-02 Thread Marek Scholle
New submission from Marek Scholle : Hi, I ran into discussion about scoping in Python (visibility of outer variables in nested functions, global, nonlocal) which made me to create for other some showcases. I realized there is a space for ambiguity which I extracted to this REPL: >>> x =

[issue46612] Unclear behavior of += operator

2022-02-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: You say: "The documentation says ..." but don't tell us which documentation. This documentation: https://docs.python.org/3/reference/simple_stmts.html#augmented-assignment-statements tells us that augmented assignment is assignment: "An augmented assignme

[issue46612] Unclear behavior of += operator

2022-02-02 Thread Marek Scholle
Marek Scholle added the comment: Thanks for pointing to reference https://docs.python.org/3/reference/simple_stmts.html#augmented-assignment-statements Although I can agree it tries to point to similarity with `x = x + 1`, it says about how `x += [1]` is processed: (1) evaluate the target (

[issue43012] Remove pathlib accessors

2022-02-02 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +petr.viktorin resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue46610] assertCountEqual doesn't work as expected for dictionary elements

2022-02-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree with Eric that this should not be changed. It is working as documented and intended. In its original incarenation, assertCountEqual was documented as being equivalent to ``assertEqual(sorted(expected), sorted(actual))``. Either way, the goal wa

[issue45459] Limited API support for Py_buffer

2022-02-02 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the review, Petr! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset 0ef08530124c5ca13a9394f4ac18bee8e6c66409 by Petr Viktorin in branch 'main': bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696) https://github.com/python/cpython/commit/0ef08530124c5ca13a9394f4ac18bee8e6c66409 -- n

[issue46550] __slots__ updates despite being read-only

2022-02-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. augmented assignments, this is a good blog post about how they work under the hood: https://snarky.ca/unravelling-augmented-arithmetic-assignment/ -- ___ Python tracker

[issue45870] There's no readline module on Windows Python (cmd.Cmd)

2022-02-02 Thread E:V:A
E:V:A added the comment: I would like to make the python community aware that there has recently been a renewed interest in updating and maintaining 'pyreadline', but in a new(ish) repository 'pyreadline3'. https://github.com/pyreadline3/pyreadline3 This apparently now works under Py3.10,

[issue37705] winerror_to_errno implementation

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset 38e0b9efdf164be656782db0f969fb536cfbcaf1 by Oleg Iarygin in branch 'main': bpo-37705: Remove orphaned PC/errmap.mak (GH-29724) https://github.com/python/cpython/commit/38e0b9efdf164be656782db0f969fb536cfbcaf1 -- __

[issue46612] Unclear behavior of += operator

2022-02-02 Thread Eric V. Smith
Eric V. Smith added the comment: The "evaluate the target" part causes the UnboundLocalError, just as in: >>> x=1 >>> def f(): ... x ... x = x + 1 ... >>> f() Traceback (most recent call last): File "", line 1, in File "", line 2, in f UnboundLocalError: local variable 'x' referenced

[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-02 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue46612] Unclear behavior of += operator

2022-02-02 Thread Marek Scholle
Marek Scholle added the comment: I don't understand the comment https://bugs.python.org/issue46612#msg412374 >>> def f(): x ... >>> f() is OK, so x is something which can be evaluated inside nested function, it is a good target to be used in `x.__iadd__(iterable)`. That >>> d

[issue46440] ArgumentParser.parse_args exits on missing required argument with exit_on_error=False

2022-02-02 Thread paul j3
paul j3 added the comment: Duplicate of https://bugs.python.org/issue41255 Argparse.parse_args exits on unrecognized option with exit_on_error=False -- nosy: +paul.j3 resolution: -> duplicate stage: patch review -> resolved status: open -> closed

[issue42238] Deprecate suspicious.py?

2022-02-02 Thread Julien Palard
Julien Palard added the comment: Georg, I was able to move forward: - https://github.com/sphinx-contrib/sphinx-lint - https://pypi.org/project/sphinx-lint/ Does everything looks good to you? Next step would be to remove rstlint.py from Docs/tools and add a dependency to rstlint from the Mak

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2022-02-02 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue46613] Add PyType_GetModuleByDef to the public & limited API

2022-02-02 Thread Petr Viktorin
New submission from Petr Viktorin : _PyType_GetModuleByDef (added in bpo-42100)allows module state access from slot methods (like tp_init or nb_add), the main thing missing from PEP 573 (Module State Access from C Extension Methods). It's time to make it public. The function itself can be imp

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

2022-02-02 Thread paul j3
Change by paul j3 : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue46228] argparse docs: default for prog= in ArgumentParser() should be basename of argv[0], not argv[0], to match behaviour

2022-02-02 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue45173] Remove configparser deprecations

2022-02-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e8659b47dece5a272111c0af5e340c364a9f807b by Hugo van Kemenade in branch 'main': bpo-45173: Keep configparser deprecations until Python 3.12 (GH-30952) https://github.com/python/cpython/commit/e8659b47dece5a272111c0af5e340c364a9f807b

[issue46612] Unclear behavior of += operator

2022-02-02 Thread Vedran Čačić
Vedran Čačić added the comment: You've managed to write 3 messages already, without at any point mentioning what _really_ happens when you += something. a += b means (is closest to) a = type(a).__iadd__(a, b) You focus all the time on __iadd__ call, disregarding that its result it assign

[issue46613] Add PyType_GetModuleByDef to the public & limited API

2022-02-02 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +29264 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31081 ___ Python tracker ___ __

[issue46612] Unclear behavior of += operator

2022-02-02 Thread Marek Scholle
Marek Scholle added the comment: > a += b means (is closest to) a = type(a).__iadd__(a, b) I exchanged several messages, and this is all I needed! I propose to resolve as "Not a bug" -- ___ Python tracker _

[issue42238] Deprecate suspicious.py?

2022-02-02 Thread Georg Brandl
Georg Brandl added the comment: Looks good. I should have rights automatically for everything in that org. -- ___ Python tracker ___ __

[issue31582] Add _pth breadcrumb to sys.path documentation

2022-02-02 Thread Russel Webber
Change by Russel Webber : -- keywords: +patch pull_requests: +29265 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31082 ___ Python tracker ___

[issue45975] Simplify some while-loops with walrus operator

2022-02-02 Thread Nick Drozd
Change by Nick Drozd : -- keywords: +patch pull_requests: +29267 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31083 ___ Python tracker ___ _

[issue45173] Remove configparser deprecations

2022-02-02 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: +29268 pull_request: https://github.com/python/cpython/pull/31084 ___ Python tracker ___ ___

[issue46614] Add option to output UTC datetimes as "Z" in `.isoformat()`

2022-02-02 Thread Paul Ganssle
New submission from Paul Ganssle : As part of bpo-35829, it was suggested that we add the ability to output the "Z" suffix in `isoformat()`, so that `fromisoformat()` can both be the exact functional inverse of `isoformat()` and parse datetimes with "Z" outputs. I think that that's not a parti

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2022-02-02 Thread Paul Ganssle
Paul Ganssle added the comment: I don't think it's necessary to add a feature to `isoformat()` just for the purpose of being able to add the corresponding parser, particularly when the plan is to implement a much broader ISO 8601 parser for Python 3.11 (I've done most of the implementation i

[issue46612] Unclear behavior of += operator

2022-02-02 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue24132] Direct sub-classing of pathlib.Path

2022-02-02 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +29269 pull_request: https://github.com/python/cpython/pull/31085 ___ Python tracker ___ _

[issue46615] Segfault in set intersection (&) and difference (-)

2022-02-02 Thread Dennis Sweeney
New submission from Dennis Sweeney : Maybe related to https://bugs.python.org/issue8420 Somewhat obscure, but using only standard Python, and no frame- or gc-hacks, it looks like we can get a use-after-free: from random import random BADNESS = 0.0 class Bad: def __eq__(self, other):

[issue46615] Segfault in set intersection (&) and difference (-)

2022-02-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: replacing `return True` with `return random() < 0.5` makes *all* of the operations crash, except for `|` and `|=`. -- ___ Python tracker ___

[issue46616] test_importlib leaves stray registry entries on Windows

2022-02-02 Thread Steve Dower
New submission from Steve Dower : When running test_importlib.test_windows, it may create registry keys that previously didn't exist. These keys are not fully cleaned up. Detect if the full key is created and then delete it after the test. If it existed, only delete the specific test key. --

[issue46615] Use-after-free by mutating set during set operations

2022-02-02 Thread Dennis Sweeney
Change by Dennis Sweeney : -- title: Segfault in set intersection (&) and difference (-) -> Use-after-free by mutating set during set operations ___ Python tracker ___ ___

[issue46615] Use-after-free by mutating set during set operations

2022-02-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: set1.isdisjoint(set2) also crashes -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue46616] test_importlib leaves stray registry entries on Windows

2022-02-02 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +29270 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31086 ___ Python tracker _

[issue45173] Remove configparser deprecations

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset ba4d79af32b6bb8378cb7003f67d6c4d413fbe89 by Hugo van Kemenade in branch '3.10': [3.10] bpo-45173: Note configparser deprecations will be removed in 3.12 (GH-31084) https://github.com/python/cpython/commit/ba4d79af32b6bb8378cb7003f67d6c4d413fbe8

[issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

2022-02-02 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: > > Other configparser deprecations were added in 3.2, but with > > DeprecationWarnings. > Its deprecation was never documented anywhere in Doc/. Correct, only in the docstring: ``` class LegacyInterpolation(Interpolation): """Deprecated interpolatio

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-02 Thread Ned Deily
Ned Deily added the comment: Thanks for looking into this, Ronald. Before we close this as a Python issue, perhaps Marc might have a suggestion on what should be done here from a Tk perspective. -- nosy: +culler status: pending -> open ___ Python

[issue46616] test_importlib leaves stray registry entries on Windows

2022-02-02 Thread Steve Dower
Steve Dower added the comment: New changeset 89a0a90c2e0e685bc70206fc45e4413c4f4411ed by Steve Dower in branch 'main': bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086) https://github.com/python/cpython/commit/89a0a90c2e0e685bc70206fc45e4413c4

[issue46616] test_importlib leaves stray registry entries on Windows

2022-02-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29271 pull_request: https://github.com/python/cpython/pull/31087 ___ Python tracker _

[issue46616] test_importlib leaves stray registry entries on Windows

2022-02-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +29272 pull_request: https://github.com/python/cpython/pull/31088 ___ Python tracker ___ __

[issue46550] __slots__ updates despite being read-only

2022-02-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: There's a use case for using a dict for __slots__, pydoc will use a dict value for the slots as a mapping from attribute name to attribute documentation. Because of that it is not really worthwhile to transform the value of __slots__ during class definition

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-02-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 164a017e13ee96bd1ea1ae79f5ac9e25fe83994e by Gregory P. Smith in branch 'main': bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (#31015) https://github.com/python/cpython/commit/164a017e13ee96bd1ea1ae79f5ac9e25fe

[issue46576] test_peg_generator is extremely slow

2022-02-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 164a017e13ee96bd1ea1ae79f5ac9e25fe83994e by Gregory P. Smith in branch 'main': bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (#31015) https://github.com/python/cpython/commit/164a017e13ee96bd1ea1ae79f5ac9e25fe

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-02-02 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +29274 pull_request: https://github.com/python/cpython/pull/31089 ___ Python tracker ___

[issue46576] test_peg_generator is extremely slow

2022-02-02 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +29273 pull_request: https://github.com/python/cpython/pull/31089 ___ Python tracker ___

[issue46616] test_importlib leaves stray registry entries on Windows

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset 3c6173ca67c019f3eb7a2fc34c5bfc426f99c5b2 by Miss Islington (bot) in branch '3.9': bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086) https://github.com/python/cpython/commit/3c6173ca67c019f3eb7a2f

[issue46616] test_importlib leaves stray registry entries on Windows

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset 5765eaa13654e5f812a286700da7d6b8e144da0e by Miss Islington (bot) in branch '3.10': bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after completion (GH-31086) https://github.com/python/cpython/commit/5765eaa13654e5f812a28

[issue46616] test_importlib leaves stray registry entries on Windows

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

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-02 Thread Marc Culler
Marc Culler added the comment: The TKApplication class is a subclass of NSApplication which adds both attributes and methods. Those are used throughout the macOS port of Tk, and as Ronald says, the unique instance of NSApplication in Tk is actually a TKApplication. Every macOS Application mus

[issue46617] CSV Creation occasional off by one error

2022-02-02 Thread Matthew Stidham
New submission from Matthew Stidham : The file which I found the error in is in https://github.com/greearb/lanforge-scripts -- components: C API files: debug from pandas failure.txt messages: 412400 nosy: matthewstidham priority: normal severity: normal status: open title: CSV Creation

[issue46617] CSV Creation occasional off by one error

2022-02-02 Thread Eric V. Smith
Eric V. Smith added the comment: There's too much for us to look at here. Can you create a small example which demonstrates the problem? It should include the input, the code, the actual output, and the expected output. -- nosy: +eric.smith ___ P

[issue46618] Exponent operator(**) interpreter issue

2022-02-02 Thread koala-lava
New submission from koala-lava : If I put -2 ** 2 in the interpreter it outputs -4. Expected is 4. If I create a variable and initialize it with -2 and then try the same then it's correct. -- components: Interpreter Core messages: 412402 nosy: koala-lava priority: normal severity: nor

[issue42238] Deprecate suspicious.py?

2022-02-02 Thread STINNER Victor
STINNER Victor added the comment: > https://pypi.org/project/sphinx-lint/ Congrats :-) -- ___ Python tracker ___ ___ Python-bugs-l

[issue46618] Exponent operator(**) interpreter issue

2022-02-02 Thread Tim Peters
Tim Peters added the comment: Exponentiation has higher precedence (binds more tightly) than unary minus, so the expression groups as -(2**2). Virtually all computer languages (those that _have_ an exponentiation operator) do the same. For example, here from wxMaxima: (%i1) -2**2; (%o1) -4

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-02-02 Thread Eric Snow
Eric Snow added the comment: FYI, I've posted to python-dev for feedback before proceeding: https://mail.python.org/archives/list/python-...@python.org/thread/DNMZAMB4M6RVR76RDZMUK2WRLI6KAAYS/ -- ___ Python tracker

[issue45819] Avoid releasing the GIL in nonblocking socket operations

2022-02-02 Thread jakirkham
Change by jakirkham : -- nosy: +jakirkham ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue46617] CSV Creation occasional off by one error

2022-02-02 Thread Matthew Stidham
Matthew Stidham added the comment: the problem was a file in our library screwing up the python configuration -- stage: -> resolved status: open -> closed ___ Python tracker

[issue43478] Disallow Mock spec arguments from being Mocks

2022-02-02 Thread Matthew Suozzo
Change by Matthew Suozzo : -- pull_requests: +29275 pull_request: https://github.com/python/cpython/pull/31090 ___ Python tracker ___ __

[issue46617] CSV Creation occasional off by one error

2022-02-02 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue46600] Python built with clang -O0 allocates 10x more stack memory than clang -O3 on a Python function call

2022-02-02 Thread Inada Naoki
Inada Naoki added the comment: I didn't mean _Py_abspath is problem. I just used it to describe why -O0 and -Og is so different. We can reduce stack usage of it easily, but it is not a problem than _PyEval_EvalFrameDefault. It is difficult to reduce stack usage of _PyEval_EvalFrameDefault wi

[issue46197] ensurepip bootstrap breaks out of isolated environment

2022-02-02 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and PR. The workflow would be to merge a fix to the main branch for 3.11, then there’s a bot that makes backports for active branches (3.10 and 3.9). More info: https://devguide.python.org/ -- nosy: +eric.araujo __

[issue46619] lazy module property not recognized by doctests

2022-02-02 Thread Jason R. Coombs
New submission from Jason R. Coombs : Attempting to define a lazy-loaded property for a module, I found [this guidance](https://stackoverflow.com/a/52018676/70170) referencing [module attribute access](https://docs.python.org/3/reference/datamodel.html#customizing-module-attribute-access) in

  1   2   >