[issue45885] Specialize COMPARE_OP

2021-11-23 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +27972 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29734 ___ Python tracker ___ _

[issue45839] python3 executable is able to install pandas

2021-11-23 Thread Muhammad Irfan Asghar
Muhammad Irfan Asghar added the comment: Hi The issue is finally solved by using the command pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pandas Thanks to all who helped. regards Irfan On Tue, Nov 23, 2021 at 10:03 AM Ronald Ouss

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. isqrt_frac_rto is unnecessarily complicated. Here's a more streamlined version of the code. import math def isqrt_frac_rto(n, m): """ Square root of n/m, rounded to the nearest integer using round-to-odd. """ a = math.isqrt(n*m) // m

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

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset 095bc8f0d6845dded8f67fbc6eca20dfac8b3929 by Christian Heimes in branch 'main': bpo-45847: Port _crypt to PY_STDLIB_MOD (GH-29725) https://github.com/python/cpython/commit/095bc8f0d6845dded8f67fbc6eca20dfac8b3929 -- _

[issue45873] Stop using bootstrap_python for deep-freeze in UNIX builds

2021-11-23 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset b9e9292d75fdea621e05e39b8629e6935d282d0d by Christian Heimes in branch 'main': bpo-45847: Port _ssl and _hashlib to PY_STDLIB_MOD (GH-29727) https://github.com/python/cpython/commit/b9e9292d75fdea621e05e39b8629e6935d282d0d -- __

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

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset 9cf5646bb465b7d3d68bfe6d4711feb43d565051 by Christian Heimes in branch 'main': bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720) https://github.com/python/cpython/commit/9cf5646bb465b7d3d68bfe6d4711feb43d565051 -- __

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-23 Thread Christian Heimes
New submission from Christian Heimes : The build process creates the binary Program/_freeze_module, which is used to create frozen modules. The program takes a Python file, compiles it, and stores its marshalled output in a header file. The approach does not work when cross compiling Python.

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-23 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27973 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29735 ___ Python tracker ___

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +27974 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29736 ___ Python tracker __

[issue45839] python3 executable is able to install pandas

2021-11-23 Thread Muhammad Irfan Asghar
Muhammad Irfan Asghar added the comment: Great, thanks! On Tue, Nov 23, 2021 at 10:01 PM Muhammad Irfan Asghar < rep...@bugs.python.org> wrote: > > Muhammad Irfan Asghar added the comment: > > Hi > > The issue is finally solved by using the command > > pip3 install --trusted-host pypi.org --

[issue45887] [subinterpreters] Pull all interpreter-global objects into one place.

2021-11-23 Thread Eric Snow
New submission from Eric Snow : Currently there are still a bunch of PyObject static variables in the code that need to become per-interpreter. This includes quite a few static types (e.g. in Objects/*.c), as well as freelists and caches. To make the transition easier I'd like to move all t

[issue45887] [subinterpreters] Pull all interpreter-global objects into one place.

2021-11-23 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +27975 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29737 ___ Python tracker ___ __

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've opened a PR to make this easy to experiment with. It also worked with my frac_sqrt() and deci_sqrt(), but having all integer arithmetic and always correct rounding are nice wins. The only downside is that I completely understood the first two varia

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: As a side effect of inlining the variance code, we also get to fix the error messages which were variance specific. -- ___ Python tracker ___

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

2021-11-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27976 pull_request: https://github.com/python/cpython/pull/29738 ___ Python tracker ___ ___

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-23 Thread Guido van Rossum
Guido van Rossum added the comment: To the question "why does _freeze_module need to be a (C) binary" (IOW, why can't it be replaced by a Python script that is run with PYTHON_FOR_REGEN, which always runs on the build host), the reason is that it uses the bytecode compiler to generate correc

[issue45299] SMTP.send_message() does from mangling when it should not

2021-11-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: Seems like a reasonable request to me. I can make the PR+test. To minimize backwards-incompatible change, we can pass `_mangle_from=policy._mangle_from` argument instead of passing the entire policy. Is that a good idea or passing the policy argument should

[issue45299] SMTP.send_message() does from mangling when it should not

2021-11-23 Thread R. David Murray
R. David Murray added the comment: In this case the docs are correct and the code has a bug. The intent was that if the message passed in to BytesGenerator has a policy, that policy should be followed. If it is not being followed, that's a bug in BytesGenerator. The tricky part of course

[issue32731] getpass.getuser() raises an unspecified exceptions (ImportError, OSError, etc)

2021-11-23 Thread Jacob Walls
Change by Jacob Walls : -- nosy: +jacobtylerwalls nosy_count: 4.0 -> 5.0 pull_requests: +27977 pull_request: https://github.com/python/cpython/pull/29739 ___ Python tracker ___

[issue45616] Python Launcher Matches 3.10 instead of 3.1

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

[issue45616] Python Launcher Matches 3.10 instead of 3.1

2021-11-23 Thread Zachary Ware
Zachary Ware added the comment: New changeset f9de97aae5fe9dafb58a8099171f4a09c449f4e8 by Zachary Ware in branch 'main': bpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731) https://github.com/python/cpython/commit/f9de97aae5fe9dafb58a8099171f4a09c449f4e8 --

[issue45616] Python Launcher Matches 3.10 instead of 3.1

2021-11-23 Thread miss-islington
miss-islington added the comment: New changeset ae065f83625f3abcf75d928f405e05582fc035b4 by Miss Islington (bot) in branch '3.10': bpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731) https://github.com/python/cpython/commit/ae065f83625f3abcf75d928f405e05582fc035b4 --

[issue45299] SMTP.send_message() does from mangling when it should not

2021-11-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: There are 3 policy settings that are also being passed as parameters to Generator/BytesGenerator: - mangle_from_ - linesep - maxheaderlen Both linesep and maxheaderlen are being inserted into policy after self.policy (if there is one) overrides message poli

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset dd8ce9ea8d7e45224a348ea7962b5f50cbf86dc5 by Christian Heimes in branch 'main': bpo-45886: Allow overriding freeze command for cross compiling (GH-29735) https://github.com/python/cpython/commit/dd8ce9ea8d7e45224a348ea7962b5f50cbf86dc5 --

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

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset 324527012fa1078428a6207918640cf860e28c81 by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port _posixshmem to PY_STDLIB_MOD (GH-29738) https://github.com/python/cpython/commit/324527012fa1078428a6207918640cf860e28c81 -- __

[issue45888] Revisit: start_tls() difficult when using asyncio.start_server()

2021-11-23 Thread Rob Blackbourn
New submission from Rob Blackbourn : The issue 34975 "start_tls() difficult when using asyncio.start_server()" was closed because streams was being re-written, but it's still a useful enhancement, and a fairly simple change. Could this be revisited? I've done a proof of concept here: https:

[issue45879] Access violation

2021-11-23 Thread vladexl
vladexl added the comment: Sorry i can't provide simple example, but will describe steps. And also i found reason of such behavior. It was a function from pythonwin: PyWinObject_FromHANDLE. When i removed it from code - issue gone. So, in order to start 2 python scripts simultaneously: 1. 2

[issue22045] Python make issue

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45514] Deprecate legacy functions from importlib.resources (importlib_resources 5.3)

2021-11-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset d5cd2effa69551c6bc7edfef8a414d545dea9117 by Jason R. Coombs in branch 'main': bpo-45514: Deprecate importlib resources legacy functions. (GH-29036) https://github.com/python/cpython/commit/d5cd2effa69551c6bc7edfef8a414d545dea9117 --

[issue45514] Deprecate legacy functions from importlib.resources (importlib_resources 5.3)

2021-11-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: See https://discuss.python.org/t/deprecating-importlib-resources-legacy-api/11386 for some lively discussion on this deprecation. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed __

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

2021-11-23 Thread Nick Papior
New submission from Nick Papior : The documentation of Path.match only says it will match a pattern. But quite often this pattern may be desirable to have as a Path as well. import pathlib as pl path = pl.Path("foo/bar") print(path.match("bar")) print(path.match(pl.Path("bar"))) However, the

<    1   2