[issue37224] test__xxsubinterpreters fails randomly

2019-11-30 Thread Kyle Stanley
Kyle Stanley added the comment: > so that operations (such as running scripts, destroying the interpreter, etc) > can't occur during finalization Clarification: by "destroying the interpreter" I am specifically referring to calling `interp_destroy()` after finalization has already started.

[issue37224] test__xxsubinterpreters fails randomly

2019-11-30 Thread Kyle Stanley
Kyle Stanley added the comment: > Regarding "is_running()", notice that it relies almost entirely on > "frame->f_executing". That might not be enough (or maybe the behavior there > changed). That would be worth checking out. Based on the above hint, I was able to make some progress on a

[issue38200] Adding itertools.pairwise to the standard library?

2019-11-30 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38938] Possible performance improvement for heaqq.merge()

2019-11-30 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2019-11-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38938] Possible performance improvement for heaqq.merge()

2019-11-30 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +16903 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17422 ___ Python tracker ___

[issue17068] peephole optimization for constant string interpolation

2019-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Counting Serhiy's de-priorizing, all five core devs find this a bit dubious, so yes, let's close. -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed title: peephole optimization for constant strings -> peephole

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2019-11-30 Thread Kevin Shweh
New submission from Kevin Shweh : The following code: from dataclasses import dataclass, field from typing import Callable @dataclass class Foo: callback: Callable[[int], int] = lambda x: x**2 @dataclass class Bar: callback: Callable[[int],

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2019-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: With Mohave, double click on a file name in Finder Documents opens the file in an editor and then opens the shell. Double click on another file opens the file in another editor (but not a duplicate shell). These are .py files I saved from IDLE. Ramon

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2019-11-30 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. If I understand correctly, the issue you are seeing is that, when IDLE is already launched and you double-click on a .py file in the Finder, that .py file does not open in IDLE, even though it will open in IDLE if IDLE is not already

[issue17068] peephole optimization for constant strings

2019-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am thinking this should be closed. It isn't clear that it can be done easily or that there would be a measurable impact. Also, the advent of f-strings means that code like this will occur much less often -- both code examples presented would likely no

[issue38938] Possible performance improvement for heaqq.merge()

2019-11-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38938] Iterable merge performance and inclusion in itertools

2019-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Several thoughts: * heapq.merge() could have plausibly been in the itertools module instead of the heapq module. However, since it already has a home, there is no reason to move it or to create duplication with an intermodule dependency. We certainly

[issue38938] Possible performance improvement for heaqq.merge()

2019-11-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Iterable merge performance and inclusion in itertools -> Possible performance improvement for heaqq.merge() ___ Python tracker ___

[issue38938] Iterable merge performance and inclusion in itertools

2019-11-30 Thread Dennis Sweeney
Dennis Sweeney added the comment: Disregard merge_recipe.py: it would skip over a value that had already been retrieved from the iterator when the loop finished. -- ___ Python tracker

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-11-30 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16902 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17421 ___ Python tracker ___

[issue28833] cross compilation of third-party extension modules

2019-11-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: PR 17420 fixes cross-compilation of third-party extension modules. The PYTHON_PROJECT_BASE environment variable is the path to the directory where Python has been cross-compiled. It is used by the native python interpreter to find the target sysconfigdata

[issue28833] cross compilation of third-party extension modules

2019-11-30 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +16901 pull_request: https://github.com/python/cpython/pull/17420 ___ Python tracker ___

[issue38938] Iterable merge performance and inclusion in itertools

2019-11-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue38941] xml.etree.ElementTree.Element inconsistent warning for bool

2019-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: > And, we should finally decide whether this should really be > changed or not. The current behaviour is counter-intuitive, > but it's been like that forever and lots of code depends on > it in one way or another, so … You make a good case to just leave

[issue38946] IDLE not opening multiple .py files

2019-11-30 Thread Ramon
New submission from Ramon : I'm running Python 3.8 and Mac Os Catalina 10.15.1 When I click a .py file, it will open the shell + editor, However if I try to open a new .py file from my finder window it won't open. The only way I can open another file is through the shell by clicking file -

[issue38945] Remove newline characters from uu encoding methods

2019-11-30 Thread stealthcopter
New submission from stealthcopter : Filenames passed to the UU encoding methods (uu.py and uu_codec.py) that contain a newline character will overflow data into the UU content section. This can potentially be used to inject replace or corrupt data content in a file during the decode process.

[issue29598] Write unit tests for pdb module

2019-11-30 Thread Batuhan
Batuhan added the comment: PR 218 is closed and this issue looks like just created for that PR. If that PR is closed and there are nothing to do with this issue, maybe this can also be closed? -- nosy: +BTaskaya ___ Python tracker

[issue38944] Idle autocomplete window doesn't close on Escape key

2019-11-30 Thread JohnnyNajera
Change by JohnnyNajera : -- keywords: +patch pull_requests: +16899 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17419 ___ Python tracker ___

[issue38944] Idle autocomplete window doesn't close on Escape key

2019-11-30 Thread JohnnyNajera
New submission from JohnnyNajera : Tested on all major Ubuntu releases. -- assignee: terry.reedy components: IDLE messages: 357658 nosy: JohnnyNajera, terry.reedy priority: normal severity: normal status: open title: Idle autocomplete window doesn't close on Escape key versions: Python

[issue37523] zipfile: Raise ValueError for i/o operations on closed zipfile.ZipExtFile

2019-11-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker

[issue37523] zipfile: Raise ValueError for i/o operations on closed zipfile.ZipExtFile

2019-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8d62df60d8733d0fa9aee14ef746d0009a7a9726 by Serhiy Storchaka (Daniel Hillier) in branch 'master': bpo-37523: Raise ValueError for I/O operations on a closed zipfile.ZipExtFile. (GH-14658)