[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: (I forgot to mention this happens on MacOS). -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue45976] Random._randbelow() loses time by caching an attribute lookup

2021-12-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I just did a few timings using the stock python.org Mac builds. Only Python 3.10 gave the expected speed-up. Python 3.8 and Python 3.9 got slower. Python 3.11 was slightly slower. I think we should pass on this proposed change. The current code is saf

[issue45976] Random._randbelow() loses time by caching an attribute lookup

2021-12-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: On the current 3.11, I do get a speedup below a power of two, but a slight degradation (as expected) at power of two. python3.11 -m timeit -s 'from random import randrange' 'randrange(65535)' python3.11 -m timeit -s 'from random import randrange' 'randrang

[issue45976] Random._randbelow() loses time by caching an attribute lookup

2021-12-03 Thread Andrew Lin
Andrew Lin added the comment: I finally cleaned up my benchmark script, which feels like a big hack. I should really learn to use pyperf or something. Inspired by your comment about 3.8 on the Mac I tried my Ubuntu installation's stock 3.8. I get a small degradation (~0.5%) for powers of t

[issue45976] Random._randbelow() loses time by caching an attribute lookup

2021-12-03 Thread Andrew Lin
Change by Andrew Lin : Added file: https://bugs.python.org/file50473/randbelow_timing.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31148] Can we get an MSI installer for something past 3.4.4?

2021-12-03 Thread David Jack
David Jack added the comment: Thank you for the information. That will definitely be helpful. Also, thank you for being so detailed with your explanation. Thank you so much. my name is david. i am provide mac optimizer pro software your mac has been speed slow and  malware attack and junk file

[issue45914] Very first multiprocessing example not working on Windows 11

2021-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think something should be said right after the example. But the 20 line note seems a bit too much at this location. Perhaps insert (For reasons given _below_, this will raise error if enter interactively.) with _below_, say, linked to the 20 line note.

[issue45916] documentation link error

2021-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 257eea55860c5f35acce49c062c5823c7a3a1317 by Miss Islington (bot) in branch '3.9': bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896) https://github.com/python/cpython/commit/257eea55860c5f35acce49c062c5823c7a3a1317 -

[issue45916] documentation link error

2021-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zach, I presume you wanted the last backport merged and issue closed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45922] Make more methods, functions, built-ins ... clickable

2021-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am generally in favor of adding more links. PR-29633, covering one doc file, has more than enough changes for one PR. Please read the original patch, the comments, and the subsequent changes. I plan to do the same. -- nosy: +terry.reedy title: M

[issue45971] calendar module does not recognize switch to Gregorian

2021-12-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Library (Lib) -Extension Modules resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> calendar bug related to September 2-14, 1752 title: calendar module issue -> calendar module does not recognize switch to Gre

[issue37198] _parse_localename fail to parse 'en_IL'

2021-12-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: I confirmed that it works on 3.9 so I think this can be closed as not a bug: [ins] In [4]: _parse_localename('en_IL') Out[4]: ('en_IL', 'UTF-8') -- ___ Python tracker _

[issue43098] tarfile list() method does not show file type

2021-12-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: Val: contributions are only now accepted in form of github PRs, not patches. -- ___ Python tracker ___ __

[issue40467] subprocess: replacement shell on windows with executable="..." arg

2021-12-03 Thread Joe Cool
Joe Cool added the comment: Proposed solution: if comspec.endswith('sh.exe') or comspec.endswith('sh'):# issue 40467 args = '{} -c "{}"'.format (comspec, args) # issue 40467 else:

[issue28953] Use `raise from` when raising new IncompleteRead

2021-12-03 Thread Ram Rachum
Ram Rachum added the comment: Interesting feature Irit, thank you Two things: 1. Is there better documentation for that feature than what was in the CL of the issue you linked to? Because that documentation was more lawyery than explanatory. 2. If I understand correctly, the note is meant

[issue45914] Very first multiprocessing example not working on Windows 11

2021-12-03 Thread Eryk Sun
Eryk Sun added the comment: > not quite clear to me it this only applies on Windows or is general. macOS defaults to the spawn method (bpo-33725). -- ___ Python tracker ___ _

<    1   2