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

[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

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

[issue22045] Python make issue

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

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

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

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

[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

[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

[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

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

[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

[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

[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

[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

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

[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

[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

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

[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

[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

[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

[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

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

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

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

[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 095bc8f0d6845dded8f67fbc6eca20dfac8b3929 by Christian Heimes in branch 'main': bpo-45847: Port _crypt to PY_STDLIB_MOD (GH-29725) https://github.com/python/cpython/commit/095bc8f0d6845dded8f67fbc6eca20dfac8b3929 --

[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

[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

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

[issue45885] Specialize COMPARE_OP

2021-11-23 Thread Dennis Sweeney
New submission from Dennis Sweeney : Some specialization statistics: https://gist.github.com/sweeneyde/49cc3a9d074d56cf095cb0a42d13d7a4 Including 3 opcodes: COMPARE_OP_INT and COMPARE_OP_FLOAT and COMPARE_OP_STR (equality only) seems to give pretty good specialization numbers, better than

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: > Should the last line of sqrt_frac() be wrapped with float()? It's already a float - it's the result of an int / int division. -- ___ Python tracker

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45883] reuse_address mistakenly removed from loop.create_server

2021-11-23 Thread Oleg Iarygin
Change by Oleg Iarygin : -- nosy: +arhadthedev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Should the last line of sqrt_frac() be wrapped with float()? -- ___ Python tracker ___ ___

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

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset f840398a5fd8741653c26eb8641c48656c9800d4 by Christian Heimes in branch 'main': bpo-45873: Restore Python 3.6 compatibility (GH-29730) https://github.com/python/cpython/commit/f840398a5fd8741653c26eb8641c48656c9800d4 --

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27971 pull_request: https://github.com/python/cpython/pull/29730 ___ Python tracker ___

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Reposting with more careful timing runs. No regression was observed. $ python3.10 --version Python 3.10.0 $ python3.10 -m timeit -r 11 -s 'x=5' 'x^3'# Xor with variable 500 loops, best of 11: 41.7 nsec per loop $ python3.10 -m timeit -r 11 -s

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Mark Shannon
Mark Shannon added the comment: > I assume there's something wrong with the OP's methodology for profiling. In a word "cProfile". All cProfile is doing is measuring the overhead of cProfile. That the overhead of cProfile has gone up is not surprising. That it has gone up so much, is a bit

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Guido van Rossum
Guido van Rossum added the comment: I assume there's something wrong with the OP's methodology for profiling. (Raymond, in your last example there's a -s argument but nothing to run -- does timeit just use "pass" in that case?) -- ___ Python

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Irit Katriel
Irit Katriel added the comment: Raymond, your last two results look like 3.10 rather than 3.11. -- ___ Python tracker ___ ___

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +Mark.Shannon, gvanrossum, iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: I think GH-28612 broke Windows builds: python_uwp.cpp python_uwp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct PyStatus __cdecl PyConfig_SetArgv(struct PyConfig *,__int64,wchar_t * const *)"

[issue45884] datetime.strptime incorrectly handling hours and minutes with bad format string

2021-11-23 Thread Jon Oxtoby
Jon Oxtoby added the comment: Just noticed the potential for this issue was raised in https://bugs.python.org/msg393688 so it's possible this is not a bug and is the desired behavior, but the documentation doesn't seem to address the issue (unless I'm overlooking it). --

[issue45884] datetime.strptime incorrectly handling hours and minutes with bad format string

2021-11-23 Thread Jon Oxtoby
New submission from Jon Oxtoby : Running datetime.strptime against a string containing year, month, day but with a formatter including %H causes a two-digit day to be split across the day and hour fields of the datetime: datetime.datetime.strptime('20140812', '%Y%m%d%H') returns:

[issue45883] reuse_address mistakenly removed from loop.create_server

2021-11-23 Thread Jim Crist-Harif
Change by Jim Crist-Harif : -- keywords: +patch pull_requests: +27970 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29733 ___ Python tracker ___

[issue45883] reuse_address mistakenly removed from loop.create_server

2021-11-23 Thread Jim Crist-Harif
New submission from Jim Crist-Harif : In https://bugs.python.org/issue45129 the deprecated `reuse_address` parameter to `create_datagram_endpoint` was removed. This PR mistakenly removed this parameter from `create_server` as well (where it wasn't deprecated). -- components: asyncio

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: Here's the float-and-Fraction-based code that I'm using to compare the integer-based code against: def sqrt_frac2(n, m): """ Square root of n/m as a float, correctly rounded. """ f = fractions.Fraction(n, m) # First approximation. x

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread Gaige Paulsen
Gaige Paulsen added the comment: I can test the backports if you like. In that case, let me know when the backports are done, I should be able to test those rapidly, now that I have my build environment working for building from source. Thanks again! --

[issue45882] mailbox fails to read message from mbox

2021-11-23 Thread Peter Wurmsdobler
New submission from Peter Wurmsdobler : When using mailbox to convert mbox files to maildir, I have noticed that it cannot handle messages in the mbox file that start with two subsequent `From` lines in the header like: ``` >From - Fri Feb 20 09:46:18 1998 >From na...@company.com Wed Feb 18

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread STINNER Victor
STINNER Victor added the comment: Gaige Paulsen: "Result: I can confirm that the compilation problem is resolved with this change (and was failing with the main branch prior to the change)." Thank you for the confirmation. I merged my change and I'm backporting it to Python 3.9 and 3.10.

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

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation, Library (Lib) keywords: +easy, newcomer friendly nosy: +docs@python title: Incorrect documentation for strftime()/strptime() format code %f -> [doc] Incorrect documentation for strftime()/strptime()

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27969 pull_request: https://github.com/python/cpython/pull/29732 ___ Python tracker ___

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4ae26b9c1d0c33e3db92c6f305293f9240dea358 by Victor Stinner in branch 'main': bpo-39026: Fix Python.h when building with Xcode (GH-29488) https://github.com/python/cpython/commit/4ae26b9c1d0c33e3db92c6f305293f9240dea358 --

[issue45616] Python Launcher Matches 3.10 instead of 3.1

2021-11-23 Thread Zachary Ware
Change by Zachary Ware : -- keywords: +patch pull_requests: +27968 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29731 ___ Python tracker ___

[issue45561] Run smelly.py and multissltests.py from $(srcdir)

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

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: > Does the technique you had in mind involve testing 1 ulp up or down to see > whether its square is closer to the input? Kinda sorta. Below is some code: it's essentially just pure integer operations, with a last minute conversion to float (implicit in the

[issue27582] Mispositioned SyntaxError caret for unknown code points

2021-11-23 Thread Irit Katriel
Irit Katriel added the comment: This seems to have been fixed by now, I get this on 3.11: >>> varname = “d“a”t”apoint File "", line 1 varname = “d“a”t”apoint ^ SyntaxError: invalid character '“' (U+201C) >>> varname = “d“a”t”apoint.evidence File "", line 1 varname =

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-23 Thread Gaige Paulsen
Gaige Paulsen added the comment: Sorry about the delay. Finally fixed my workflow for building from scratch. Result: I can confirm that the compilation problem is resolved with this change (and was failing with the main branch prior to the change). --

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-23 Thread Éric Araujo
Éric Araujo added the comment: Thank you for suggesting the improvement and working on a PR nonetheless! Hope the experience can be useful for other tickets in the future. -- ___ Python tracker

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It wouldn't be hard to go for _always_ correctly rounded > and actually get it over. Yes, that would be the right thing to do. Does the technique you had in mind involve testing 1 ulp up or down to see whether its square is closer to the input? > an

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-23 Thread Éric Araujo
Éric Araujo added the comment: I think that there’s no need to change the existing tests. The CPython project prefers to not do tiny improvements for their own sake. -- nosy: +eric.araujo ___ Python tracker

[issue41396] pystate.c:_PyCrossInterpreterData_Release() does not clear py exception on error

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +eric.snow, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-11-23 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 1.0 -> 2.0 pull_requests: +27967 pull_request: https://github.com/python/cpython/pull/29730 ___ Python tracker

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-23 Thread Thomas Stolarski
Thomas Stolarski added the comment: I figured this would probably be the case, but since YIQ also requires a profile (and the FCC one it implements is pretty weird for digital work), I thought I'd give it a shot anyway. Would it be worth moving the test/formatting changes over to a

[issue2516] Instance methods are misreporting the number of arguments

2021-11-23 Thread Irit Katriel
Irit Katriel added the comment: This seems to have been fixed by now, on 3.11 I get this: >>> class A: ... def foo(self, x): pass ... >>> A().foo() Traceback (most recent call last): File "", line 1, in TypeError: A.foo() missing 1 required positional argument: 'x' -- nosy:

[issue2786] Names in function call exception should have class names, if they're methods

2021-11-23 Thread Irit Katriel
Irit Katriel added the comment: This seems to have been fixed by now, on 3.11 I get this: >>> class foo: ... def __init__(self, bar): ... pass ... >>> foo() Traceback (most recent call last): File "", line 1, in TypeError: foo.__init__() missing 1 required positional argument:

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here are timings from stock macOS builds from python.org: $ python3.10 --version Python 3.10.0 $ python3.10 -m timeit -r 11 -s 'x=5' 'x^3' # Xor with variable 500 loops, best of 11: 41.4 nsec per loop $ python3.10 -m timeit -r 11 -s 'x=5' 'x+3'

[issue29739] zipfile raises wrong exception for some incorrect passwords

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: I have uploaded a reproducer at https://github.com/tiran/cpython_builddep/compare/cross-aarch64 $ podman run -ti --rm -v $(pwd):/cpython:Z quay.io/tiran/cpythonbuild:ubuntu-impish-aarch64 ... aarch64-linux-gnu-gcc -fPIC -Wno-unused-result -Wsign-compare

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: > we've run the ball almost the full length of the field and then failed to put > the ball over the goal line But if we only go from "faithfully rounded" to "almost always correctly rounded", it seems to me that we're still a couple of millimetres away from

[issue43112] SOABI on Linux does not distinguish between GNU libc and musl libc

2021-11-23 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: Can anyone problem examples that it’s not an option to continue using the “technically incorrect” `-gnu` suffix on 3.9 and 3.10? From what I understand, te suffix technically works (as in the module will load correctly), it just fails to distinguish the ABI

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

2021-11-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 5be98e57b3c3b36d1a1176b49c73b8822c6380e7 by Guido van Rossum in branch 'main': bpo-45873: Get rid of bootstrap_python (#29717) https://github.com/python/cpython/commit/5be98e57b3c3b36d1a1176b49c73b8822c6380e7 --

[issue45850] Port deep-freeze to Windows

2021-11-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 5be98e57b3c3b36d1a1176b49c73b8822c6380e7 by Guido van Rossum in branch 'main': bpo-45873: Get rid of bootstrap_python (#29717) https://github.com/python/cpython/commit/5be98e57b3c3b36d1a1176b49c73b8822c6380e7 --

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-23 Thread STINNER Victor
STINNER Victor added the comment: You can write your own module on PyPI with more advanced features if you want to extend colorsys ;-) -- ___ Python tracker ___

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-23 Thread STINNER Victor
STINNER Victor added the comment: Ok, let's reject this feature and restrict colorsys to simple color spaces which don't require profiles. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-23 Thread Christian Heimes
New submission from Christian Heimes : Cross compiling is an approach to compile a program for a different CPU architecture and platform, e.g. compile for an ARM64 (aarch64) or WASM on a x86_64 build system. Python configure script, Makefile, and setup.py have multiple references to cross

[issue42872] Inconsistent exceptions thrown by pathlib.Path.mkdir on different OSes

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Improper NotADirectoryError when opening a file in a fake directory ___ Python tracker

[issue41742] Request for docs.python.org/3/library/configparser.html#exceptions improvement

2021-11-23 Thread Irit Katriel
Irit Katriel added the comment: I agree with Terry, it's pretty clear that this is a list of the exceptions that are defined in the module. Indeed many builtin exceptions can be raised from any piece of code (for example, you can run out of memory in any module). -- nosy:

[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2021-11-23 Thread Miro Hrončok
Miro Hrončok added the comment: I consider it a bugfix. I don't expect users to rely on the previous behavior and be surprised by the new, but yet I know https://xkcd.com/1172/ very well. -- ___ Python tracker

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'm not sure this is worth worrying about ... Instead of writing simple, mostly accurate code with math.fsum(), these functions have already applied labor intensive measures to get an exact mean and exact sum of square differences expressed in

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Xinhang Xu
New submission from Xinhang Xu : Hello. I'm working on a compute-bound project recently, so I tested several Python versions on my PC (Windows 10 64-bit), about Python's performance on operating Int object. All Python binaries are official distributions. Testcase #1 (simple xor op)

[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2021-11-23 Thread Petr Viktorin
Petr Viktorin added the comment: Now, is this a bugfix, or a new feature? I lean toward calling it a bugfix and backporting to earlier versions. -- ___ Python tracker ___

[issue45035] sysconfig's posix_home scheme has different platlib value to distutils's unix_home

2021-11-23 Thread Petr Viktorin
Petr Viktorin added the comment: Yes. This is a minor bug in the deprecated distutils module. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34451] docs: tutorial/introduction doesn't mention toggle of prompts

2021-11-23 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed status: -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2021-11-23 Thread miss-islington
miss-islington added the comment: New changeset ae1965ccb4b1fad63fab40fe8805d1b8247668d3 by Miro Hrončok in branch 'main': bpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_ca… (GH-29384) https://github.com/python/cpython/commit/ae1965ccb4b1fad63fab40fe8805d1b8247668d3

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-23 Thread Petr Viktorin
Petr Viktorin added the comment: > YUV is a common color encoding system. It's used by the JPEG image format and > MPEG video format for example. As far as I understand it, the YUV/RGB conversion used by JPEG is not the same as the one used by MPEG, and neither of those is the Rec 709 YUV

[issue45786] Avoid allocating when exiting frame; it may be unsafe.

2021-11-23 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +27966 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29729 ___ Python tracker ___

[issue45490] [meta][C API] Avoid C macro pitfalls and usage of static inline functions

2021-11-23 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27965 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29728 ___ Python tracker ___

[issue45879] Access violation

2021-11-23 Thread Eric V. Smith
Eric V. Smith added the comment: Please provide the code you used to trigger this error, so that we can reproduce it. -- nosy: +eric.smith ___ Python tracker ___

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: One thought: would the deci_sqrt approach help with value ranges where the values are well within float limits, but the squares of the values are not? E.g., on my machine, I currently get errors for both of the following: >>> xs = [random.normalvariate(0.0,

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

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: We are down to 9 missing modules: readline _curses _curses_panel _dbm _ctypes _multiprocessing _posixshmem _tkinter _uuid -- ___ Python tracker

[issue45878] Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro`

2021-11-23 Thread Alex Waygood
Change by Alex Waygood : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

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

2021-11-23 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27964 pull_request: https://github.com/python/cpython/pull/29727 ___ Python tracker ___

[issue45869] Unicode and acii regular expressions do not agree on ascii space characters

2021-11-23 Thread Oleg Iarygin
Change by Oleg Iarygin : -- nosy: +arhadthedev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45879] Access violation

2021-11-23 Thread vladexl
New submission from vladexl : It seems object.c hasn't taken into account possible nullptr: object.c: ...else if (Py_TYPE(v)->tp_as_number != NULL &&... It seems Py_TYPE(v) returns null StackTrace: > python310.dll!PyObject_IsTrue(_object * v=0x1d91e2d4) Line 1444 C

[issue45783] test_freeze fails if a file is removed

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

[issue45783] test_freeze fails if a file is removed

2021-11-23 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 8ed1495ad900dd815ff8fb97926da5312aaa23f9 by Eric Snow in branch 'main': bpo-45783: Preserve file moves and deletions in the tests for the freeze tool. (GH-29527) https://github.com/python/cpython/commit/8ed1495ad900dd815ff8fb97926da5312aaa23f9

  1   2   >