[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

[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
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 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

[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:

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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:

[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

[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)

[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

[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 --

[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

[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 ___

[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 miss-islington
Change by miss-islington : -- pull_requests: +28044 pull_request: https://github.com/python/cpython/pull/29812 ___ 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

[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 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 --

[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

[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:

[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

[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 ___

[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`. --

[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 ___

[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.

[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

[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

[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)

[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

[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

[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:

[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)

[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

[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:

[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 ___

[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 ___

[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
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

[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

[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

[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 ___

[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 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)

[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

[issue12020] [doc] Attribute error with flush on stdout,stderr

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: Attribute error with flush on stdout,stderr -> [doc] Attribute error with flush on stdout,stderr versions: +Python 3.11 -Python 3.4, Python 3.5 ___ Python tracker

[issue21944] Allow copying of CodecInfo objects

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- type: behavior -> enhancement versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ ___

[issue42268] ./configure failing when --with-memory-sanitizer specified

2021-11-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +28038 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29806 ___ Python tracker

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread miss-islington
miss-islington added the comment: New changeset b3f14dacfea54332e2ddde792142d818b3554dbc by Miss Islington (bot) in branch '3.9': bpo-45866: Fix typo in the NEWS entry (GH-29798) https://github.com/python/cpython/commit/b3f14dacfea54332e2ddde792142d818b3554dbc --

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread miss-islington
miss-islington added the comment: New changeset fc16ea9c8b8769af8a4c0c16fed7eba2e8bf4019 by Miss Islington (bot) in branch '3.10': bpo-45866: Fix typo in the NEWS entry (GH-29798) https://github.com/python/cpython/commit/fc16ea9c8b8769af8a4c0c16fed7eba2e8bf4019 --

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: Concrete example of int/int not being correctly rounded on systems using x87 instructions: on those systems, I'd expect to see 1/2731 return a result of 0.00036616623947272064 (0x1.7ff4005ffd002p-12), as a result of first rounding to 64-bit precision and

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

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

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

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

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9a7611a7c4da6406383f8ffcea272ded6f890f1e by Victor Stinner in branch 'main': bpo-45866: Fix typo in the NEWS entry (GH-29798) https://github.com/python/cpython/commit/9a7611a7c4da6406383f8ffcea272ded6f890f1e --

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: > All the rounding has already happened at the point where ldexp is called, and > the result of the ldexp call is exact. Sketch of proof: [Here](https://github.com/python/cpython/blob/4ebde73b8e416eeb1fd5d2ca3283f7ddb534c5b1/Objects/longobject.c#L3929) we

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Tim Peters
Tim Peters added the comment: > Objects/longobject.c::long_true_divide() uses ldexp() internally. > Will it suffer the same issues with subnormals on Windows? Doesn't look like it will. In context, looks like it's ensuring that ldexp can only lose trailing 0 bits, so that _whatever_ ldexp

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: > Will it suffer the same issues with subnormals on Windows? No, it should be fine. All the rounding has already happened at the point where ldexp is called, and the result of the ldexp call is exact. > Is CPython int/int true division guaranteed to be

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Tim] > Note that, on Windows, ldexp() in the presence of > denorms can truncate. Division rounds, so > >assert x / 2**i == ldexp(x, -i) > > can fail. Objects/longobject.c::long_true_divide() uses ldexp() internally. Will it suffer the same issues

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-11-26 Thread Eryk Sun
Eryk Sun added the comment: > and b / a gives me WindowsPath('/a/b'). So I'm like "ok, a seems > like absolute, I will test for that" but on Windows a.is_absolute() > is False. Path.is_absolute() is true if a path has a `root` and, for a Windows path, also a `drive`. In C++, the

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Thank you. -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Vilnis Termanis
Vilnis Termanis added the comment: Apologies, my mistake - it does indeed work with 3.9 & 3.10. Feel free to close. -- resolution: -> works for me status: open -> pending versions: +Python 3.8 ___ Python tracker

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Version 3.8 is in security fix only mode. Is this a problem on newer versions? -- ___ Python tracker ___

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Vilnis Termanis
Vilnis Termanis added the comment: If you un-comment the print_exc() call, you'll see that it still fails - for queue.Queue: Manager failure (for Queue) Traceback (most recent call last): File "fish.py", line 74, in main add_type_in_own_process(mgr, type_name) File "fish.py", line

[issue45906] Python github installation issue

2021-11-26 Thread Some User
Change by Some User : -- title: Python github installatiomn issue -> Python github installation issue ___ Python tracker ___ ___

[issue45906] Python github installatiomn issue

2021-11-26 Thread Some User
New submission from Some User : Whenever i try to setup python3.9 configure via github, It raises a configure error. `` $ ./configure checking build system type... type checking host system type... type checking for python3.9... no checking for python3... no checking for python... no checking

[issue45898] ctypes cfield.c defines duplicate ffi_type_* symbols

2021-11-26 Thread Steve Dower
Steve Dower added the comment: This is because we use libffi as a DLL and you can't statically reference dynamically loaded addresses on Windows. You could change that format table to be initialised on first use, or resolve the FFI type lazily. Or change ctypes to statically link libffi

[issue45889] pathlib: Path.match does not work on paths

2021-11-26 Thread Éric Araujo
Éric Araujo added the comment: FWIW I think in the same way as Ronald. A pattern is not a path, it’s a string expressing rules. If it matches, the results are paths, but that does not make the pattern a path. -- nosy: +eric.araujo ___ Python

[issue45872] Turtle: invalid example for write doc

2021-11-26 Thread Éric Araujo
Éric Araujo added the comment: The doc for the font parameter is: a triple (fontname, fontsize, fonttype) but the default value in the signature is: font='Arial' I do not know what’s font name vs font type! Do you know if it’s valid to have font='Arial', in which case the doc should be

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: I don't get any errors from the attached script. Is there still a problem here? -- nosy: +iritkatriel resolution: -> works for me status: open -> pending ___ Python tracker

[issue27281] unpickling an xmlrpc.client.Fault raises TypeError

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced in 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Tim Peters
Tim Peters added the comment: Mark, ya, MS's Visual Studio's ldexp() has, far as I know, always worked this way. The code I showed was run under the 2019 edition, which we use to build the Windows CPython. Raymond, x = float(i) is screamingly obvious at first glance. x = i/1

[issue26577] inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable

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

[issue25341] File mode wb+ appears as rb+

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

[issue26577] inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 4ebde73b8e416eeb1fd5d2ca3283f7ddb534c5b1 by Christian Heimes in branch 'main': bpo-40280: Move hard-coded feature checks to configure (GH-29789) https://github.com/python/cpython/commit/4ebde73b8e416eeb1fd5d2ca3283f7ddb534c5b1 --

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-26 Thread Vishal Pandey
Change by Vishal Pandey : -- keywords: +patch nosy: +vishalpandeyvip nosy_count: 5.0 -> 6.0 pull_requests: +28035 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29801 ___ Python tracker

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

2021-11-26 Thread Steve Dower
Steve Dower added the comment: For future reference, in case someone stumbles over this issue, here's how I tested this change: * set $env:IncludeUWP="true" * did a regular PCbuild/build.bat * generated a Store layout with "./python.bat PC/layout --preset-appx --copy ./out" * mock-installed

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: Since I've failed to find a coherent statement and proof of the general principle I articulated anywhere online, I've included one below. (To be absolutely clear, the principle is not new - it's very well known, but oddly hard to find written down

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

2021-11-26 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28034 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29799 ___ Python tracker

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Some info regarding _multiprocessing: Modules/_multiprocessing/semaphore.c is currently conditionally included in setup.py (HAVE_SEM_OPEN && !POSIX_SEMAPHORES_NOT_ENABLED), but always included in Modules/Setup. Here's some historical bpo's (more or

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-11-26 Thread lutecki
lutecki added the comment: So how this should work? I'm testing this simple example on Windows: a = Path("/a/b") b = Path("c/d") and b / a gives me WindowsPath('/a/b'). So I'm like "ok, a seems like absolute, I will test for that" but on Windows a.is_absolute() is False. ??? Regards

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: There are other byte-like objects like memoryview or array.array (for some array types). I would suggest writing a function rather than a method. -- ___ Python tracker

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28033 pull_request: https://github.com/python/cpython/pull/29798 ___ Python tracker ___

[issue43137] webbrowser to support "gio open "

2021-11-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The next 3.10 and 3.11 releases are very soon so unfortunately if this is not fixed by then I will need to revert PR29154 -- ___ Python tracker

[issue32936] RobotFileParser.parse() should raise an exception when the robots.txt file is invalid

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Please reopen this or create a new issue if this is still a problem and you can provide the missing information. -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Eric V. Smith
Eric V. Smith added the comment: Given that the normal sort() machinery wouldn't use this code, I don't think there's any advantage to adding .sort() methods to bytes and bytesarray. The downside to adding these methods is the increased complexity in the stdlib. I think the better approach

[issue45019] Freezing modules has manual steps but could be automated.

2021-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset b0b10e146b1cbf9c5dfa44af116a2eeb0f210e8b by Kumar Aditya in branch 'main': bpo-45019: Cleanup module freezing and deepfreeze (#29772) https://github.com/python/cpython/commit/b0b10e146b1cbf9c5dfa44af116a2eeb0f210e8b --

[issue22684] message.as_bytes() produces recursion depth exceeded

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11. -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue45905] Provide a C API for introspectable frames for Cython and similar tools

2021-11-26 Thread Mark Shannon
Change by Mark Shannon : -- assignee: -> Mark.Shannon type: -> enhancement versions: +Python 3.11 ___ Python tracker ___ ___

[issue45905] Provide a C API for introspectable frames for Cython and similar tools

2021-11-26 Thread Mark Shannon
New submission from Mark Shannon : See https://github.com/cython/cython/issues/4484 -- messages: 407069 nosy: Mark.Shannon priority: normal severity: normal status: open title: Provide a C API for introspectable frames for Cython and similar tools

[issue4322] function with modified __name__ uses original name when there's an arg error

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> def foo(): pass ... >>> foo.__name__ = 'bar' >>> foo(1) Traceback (most recent call last): File "", line 1, in TypeError: foo() takes 0 positional arguments but 1 was given -- nosy: +iritkatriel versions: +Python 3.11

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: It seems like all bugs reported in this issue has been fixed, so I close the issue. Thanks for the bug report ;-) > -# @generated by pegen from ./Tools/peg_generator/pegen/metagrammar.gram > +# @generated by pegen from

[issue45904] Pasting the U00FF character into Python REPL misinterprets character

2021-11-26 Thread George King
George King added the comment: Edit: `chr(0xff)` -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >