[issue7932] print statement delayed IOError when stdout has been closed

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: cpython % ./python.exe -c 'import sys; print("x", file=sys.stdout)' 1>&- ; echo $? 0 cpython % ./python.exe -c 'import sys; print("x", file=sys.stderr)' 2>&- ; echo $? x 0 -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.5

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Steve Dower added the comment: New changeset 4841e694ee1686f8c933ddfcb8c854915867ce17 by Steve Dower in branch 'main': bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799) https://github.com/python/cpython/commit/4841e694ee1686f8c933ddfcb8c8

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +28039 pull_request: https://github.com/python/cpython/pull/29807 ___ Python tracker _

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +28040 pull_request: https://github.com/python/cpython/pull/29808 ___ Python tracker ___ __

[issue16242] [doc] Document that __getattr__ can be called before __init__ (e.g. by pickle)

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- title: Pickle and __getattr__ -> [doc] Document that __getattr__ can be called before __init__ (e.g. by pickle) type: behavior -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue30535] [doc] Explicitly note that meta_path is not empty

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- title: Explicitly note that meta_path is not empty -> [doc] Explicitly note that meta_path is not empty versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

2021-11-26 Thread Steve Dower
Steve Dower added the comment: This change modified the audit event 'code.__name__', which requires a deprecation period (all events are public API, as per PEP 578). We need to revert that part of the change. I don't think we need to add a new event to report the qualname here, so just dropp

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

2021-11-26 Thread Steve Dower
Steve Dower added the comment: Correction: the event is `code.__new__` -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

2021-11-26 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +28041 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/29809 ___ Python tracker ___ _

[issue20126] sched doesn't handle events added after scheduler starts

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.3 ___ Python tracker ___ ___

[issue20126] sched doesn't handle events added after scheduler starts

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20126] sched doesn't handle events added after scheduler starts as expected

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- title: sched doesn't handle events added after scheduler starts -> sched doesn't handle events added after scheduler starts as expected ___ Python tracker

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread miss-islington
miss-islington added the comment: New changeset 3dcbe01dc5236fb77d8c0133fb7e6bdd0754768a by Miss Islington (bot) in branch '3.10': bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799) https://github.com/python/cpython/commit/3dcbe01dc5236fb7

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

2021-11-26 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: -26699 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11, with a different error: % ./python.exe prog.py Traceback (most recent call last): File "/Users/iritkatriel/src/cpython-1/prog.py", line 5, in args = parse.parse_args() ^^ File "/Users/iritkatriel/src/cpytho

[issue21616] argparse explodes with nargs='*' and a tuple metavar

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple ___ Python tracker

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Steve Dower added the comment: New changeset 133fb267f437f9bd568738d0e0e59e574fc82b02 by Miss Islington (bot) in branch '3.9': bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799) https://github.com/python/cpython/commit/133fb267f437f9bd5687

[issue21021] PyMemberDef name is char* instead of const char*

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: It is const char* now: https://github.com/python/cpython/blob/f4c03484da59049eb62a9bfb963e2267d187/Include/structmember.h#L19 -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___

[issue21020] PyMethodDef ml_doc is char* instead of const char*

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: It is const char* now: https://github.com/python/cpython/blob/f4c03484da59049eb62a9bfb963e2267d187/Include/methodobject.h#L40 -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___

[issue45582] Rewrite getpath.c in Python

2021-11-26 Thread Steve Dower
Steve Dower added the comment: Status update on this: I owe everyone a perf comparison of the before/after with this change. I don't particularly want to block on a regression unless it's significant (honestly still have no idea what to expect), but open to others' thoughts on this point. H

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45907] Optimize literal comparisons and contains

2021-11-26 Thread theeshallnotknowethme
New submission from theeshallnotknowethme : Most operations with literals are optimized as well, so why shouldn't the comparison/contain operators be? I created a new bug report for it because of this fact and the TODO in the `fold_compare` function in `Python/ast_opt.c`. -- component

[issue25880] codecs should raise specific UnicodeDecodeError/UnicodeEncodeError rather than just UnicodeError

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- title: u'..'.encode('idna') → UnicodeError: label empty or too long -> codecs should raise specific UnicodeDecodeError/UnicodeEncodeError rather than just UnicodeError versions: +Python 3.11 -Python 2.7, Python 3.4 ___ Py

[issue45907] Optimize literal comparisons and contains

2021-11-26 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- keywords: +patch pull_requests: +28042 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29810 ___ Python tracker __

[issue45860] UnboundLocalError leads to Illegal instruction crashing CPython

2021-11-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue41735] Thread locks in zlib module may go wrong in rare case

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

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 7edb6270a78c695e4c2ae2432797dc18105374fc by Ma Lin in branch 'main': bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587) https://github.com/python/cpython/commit/7edb6270a78c695e4c2ae2432797dc18105374fc --

[issue28463] Email long headers parsing/serialization

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5 ___ Python tracker ___ __

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 86c1265cdc64030c8921e0da5fcae2ac64299c26 by Ma Lin in branch '3.9': [3.9] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29588) https://github.com/python/cpython/commit/86c1265cdc64030c8921e0da5fcae2ac64299c26 --

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +28044 pull_request: https://github.com/python/cpython/pull/29812 ___ Python tracker ___ __

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

2021-11-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you Eryk for the info. As a bug report, this should be closed as '3rd party'. As an enhancement request, it needs to be specified more and should perhaps be discussed on python-ideas. -- nosy: +terry.reedy ___

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks malin! -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___ _

[issue26683] [doc] Questionable terminology ('free variables') for describing what locals() does

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- title: Questionable terminology for describing what locals() does -> [doc] Questionable terminology ('free variables') for describing what locals() does versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___

[issue44530] Propagate qualname from the compiler unit to code objects for finer grained profiling data

2021-11-26 Thread Steve Dower
Steve Dower added the comment: New changeset db55f3fabafc046e4fca907210ced4ce16bf58d6 by Steve Dower in branch 'main': bpo-44530: Reverts a change to the 'code.__new__' audit event (GH-29809) https://github.com/python/cpython/commit/db55f3fabafc046e4fca907210ced4ce16bf58d6 -- _

[issue10880] do_mkvalue and 'boolean'

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Maybe 'p' as in https://docs.python.org/3/c-api/arg.html#other-objects ? -- components: +C API nosy: +iritkatriel type: -> enhancement versions: +Python 3.11 -Python 3.5 ___ Python tracker

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread miss-islington
miss-islington added the comment: New changeset 57100c86baa8451a568348646834380cd425b858 by Miss Islington (bot) in branch '3.10': [3.10] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587) (GH-29811) https://github.com/python/cpython/commit/57100c86baa8451a56834864

[issue38497] [doc] Wrong argument name in documentation for pipes.Template.open

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: It's documented as a positional arg: Template.open(file, mode) https://docs.python.org/3/library/pipes.html#pipes.Template.open but accepts it also as the kwarg "rw". So these are ok: from pipes import Template; Template().open('/tmp/f', rw='r') from pipes im

[issue45907] Optimize literal comparisons and contains

2021-11-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: This PR looks to be the same as one that was recently rejected. Compare: https://github.com/python/cpython/pull/29639/files https://github.com/python/cpython/pull/29810/files See discussion at: https://bugs.python.org/issue45843 -- nosy:

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It won't affect _this_ application, but possibly we should > fix this anyway. I would like to see this fixed. It affects our ability to reason about int/int code. That comes up every time a fraction is fed into a math library function than converts it

[issue45907] Optimize literal comparisons and contains

2021-11-26 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: It doesn't seem to make sense why other operations on literals are optimized but these particular ones aren't optimized (much). -- ___ Python tracker ___

[issue45907] Optimize literal comparisons and contains

2021-11-26 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: If this bug report isn't accepted, for how long would the TODO remain in `Python/ast_opt.c`? -- ___ Python tracker ___ __

[issue45872] Turtle: invalid example for write doc

2021-11-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Doc for turtle.write missing the tuple part of the font param in 3.10+ type: -> behavior versions: +Python 3.11 ___ Python tracker <

[issue45397] turtle.write doc missing tuple parens for font default in 3.10+

2021-11-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Closed #45872 as duplicate. Éric, any idea for a local fix? I verified with Sphinx 3.2.1. I tried both escaping with '\' and doubling parens, without success. -- nosy: +terry.reedy title: Doc for turtle.write missing the tuple part of the font param

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Tim Peters
Tim Peters added the comment: But I would like to leave it alone. Extended precision simply is not an issue on any current platform I'm aware of ("not even Windows"), and I would, e.g., hate trying to explain to users why 1 / 2731 != 1.0 / 2731.0 (assuming we're not also proposing to ta

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-26 Thread Chris Eykamp
Chris Eykamp added the comment: If we decide that this is a tkinter bug (and that the Python part is working properly), does that mean that we close this ticket and rely on the upstream provider to fix the problem? I don't know how jurisdiction works with core libraries shipped with Python.

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-26 Thread Ned Deily
Ned Deily added the comment: This issue was already closed under the presumption that what you described is Tk behavior. tkinter is the module in the Python standard library that provides the “glue” to the third-party TCL and Tk libraries; it is pretty much a thin wrapper that provides little

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread Ma Lin
Ma Lin added the comment: Thanks for review! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: Raymond, Mark, Tim, I have been reading this whole thread. Thank you all. I am in awe and a little bit intimidated by how much I still have to learn about floating point arithmetic. -- ___ Python tracker

[issue45876] Improve accuracy of stdev functions in statistics

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

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you all for looking at this. It's unlikely that anyone will ever notice the improvement, but I'm happy with it and that's all the matters ;-) -- ___ Python tracker __

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset af9ee57b96cb872df6574e36027cc753417605f9 by Raymond Hettinger in branch 'main': bpo-45876: Improve accuracy for stdev() and pstdev() in statistics (GH-29736) https://github.com/python/cpython/commit/af9ee57b96cb872df6574e36027cc753417605f9

<    1   2