[issue45191] Error.__traceback__.tb_lineno is wrong

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

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

2021-11-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +27959 pull_request: https://github.com/python/cpython/pull/29722 ___ Python tracker

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

2021-11-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +27960 pull_request: https://github.com/python/cpython/pull/29723 ___ Python tracker ___

[issue37705] winerror_to_errno implementation

2021-11-23 Thread Oleg Iarygin
Change by Oleg Iarygin : -- nosy: +arhadthedev nosy_count: 7.0 -> 8.0 pull_requests: +27961 pull_request: https://github.com/python/cpython/pull/29724 ___ Python tracker ___

[issue40673] remove deprecated urllib.request.URLopener/FancyURLopener

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- title: urllib.request.URLopener raises different exceptions based on implementation detail -> remove deprecated urllib.request.URLopener/FancyURLopener versions: +Python 3.11 -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Raymond Hettinger
New submission from Raymond Hettinger : The standard deviation computation in the statistics module is still subject to error even though the mean and sum of square differences are computed exactly using fractions. The problem is that the exact fraction gets rounded to a float before going

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45877] Inconsistency in minimal supported version of Microsoft Visual Studio

2021-11-23 Thread Oleg Iarygin
New submission from Oleg Iarygin : According to PCbuild/readme.txt: > Using this directory requires an installation of > Microsoft Visual Studio 2017 (MSVC 14.1) of any edition. However, Doc/using/windows.rst states that Visual Studio 2017 is not required and 2015 may be used instead: > The

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

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

[issue38642] python3.7.3 seems to cause add-apt-repository to rejct or not find gi library

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: "/usr/lib/python3/dist-packages" is not part of Python upstream source. It comes from Debian/Ubuntu-specific downstream patch. Please report Ubuntu bugs on the Ubuntu bug tracker https://bugs.launchpad.net/ -- resolution: -> third party stage:

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

2021-11-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b48ac6fe38b2fca9963b097c04cdecfc6083104e by Nikita Sobolev in branch 'main': bpo-45878: convert `try/except` to `self.assertRaises` in `Lib/ctypes/test/test_functions.py` (GH-29721)

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

2021-11-23 Thread Daniele Varrazzo
Change by Daniele Varrazzo : -- nosy: +piro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38642] python3.7.3 seems to cause add-apt-repository to rejct or not find gi library

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

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

2021-11-23 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +27957 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29721 ___ Python tracker ___

[issue45839] python3 executable is able to install pandas

2021-11-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Could you check with "curl -k https://pypi.org/ >/dev/null" what certificate is used by PyPI? On my system I get (amongst other output): ... * SSL connection using TLSv1.2 / ECDHE-RSA-CHACHA20-POLY1305 * ALPN, server accepted to use h2 * Server

[issue29154] 5 failures in test_doctest: ModuleNotFoundError: No module named 'IPython'

2021-11-23 Thread Irit Katriel
Irit Katriel added the comment: 3.6 is no longer maintained. I am closing this because there was no response to questions from the core devs. If you are having this problem in a current version (>=3.9) please open a new issue. -- nosy: +iritkatriel resolution: -> out of date stage:

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

2021-11-23 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now this test uses `try: ... except TypeError: ...` to ensure that mro is consistent. This has a flaw: code in `try` might not ever raise and this test would still pass. I will refactor it to use `self.assertRaises` to be 100% sure. --

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: I'm not sure this is worth worrying about. We already have a very tight error bound on the result: if `x` is a (positive) fraction and `y` is the closest float to x, (and assuming IEEE 754 binary64, round-ties-to-even, no overflow or underflow, etc.) then

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-11-23 Thread Mark Shannon
Mark Shannon added the comment: New changeset 135cabd328504e1648d17242b42b675cdbd0193b by Mark Shannon in branch 'main': bpo-44525: Copy free variables in bytecode to allow calls to inner functions to be specialized (GH-29595)

[issue22067] time_test fails after strptime()

2021-11-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it was 2.7-only issue. Thank you Irit for checking and closing outdated issues. -- resolution: works for me -> out of date stage: -> resolved status: pending -> closed ___ Python tracker

[issue45848] Pegen's nice error reporting crashes with non-UTF-8 files

2021-11-23 Thread Petr Viktorin
Petr Viktorin added the comment: Wow! Thank you for the quick fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2021-11-23 Thread miss-islington
miss-islington added the comment: New changeset 327c764fa2a032e34dc268164c3c9c2f95b978c4 by Miss Islington (bot) in branch '3.10': bpo-45561: Run smelly.py tool from $(srcdir) (GH-29138) https://github.com/python/cpython/commit/327c764fa2a032e34dc268164c3c9c2f95b978c4 --

[issue45191] Error.__traceback__.tb_lineno is wrong

2021-11-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.7, Python 3.8 ___ Python tracker ___

[issue44445] Add `site-include` install scheme path in sysconfig

2021-11-23 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch nosy: +petr.viktorin nosy_count: 7.0 -> 8.0 pull_requests: +27958 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29578 ___ Python tracker

[issue33590] [doc] sched.enter priority has no impact on execution

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation keywords: +easy nosy: +docs@python resolution: not a bug -> title: sched.enter priority has no impact on execution -> [doc] sched.enter priority has no impact on execution versions: +Python 3.10, Python

[issue45548] Update Modules/Setup

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: Erlend and I have split off the pkg-config and autoconf work into bpo-45847, bpo-45573, and others. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45614] traceback of exception with non-unicode __module__

2021-11-23 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +27963 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29726 ___ Python tracker ___

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

2021-11-23 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27962 pull_request: https://github.com/python/cpython/pull/29725 ___ 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,

[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

[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

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

2021-11-23 Thread Joran van Apeldoorn
Joran van Apeldoorn added the comment: Hi, I was not suggesting that the documentation literally says they should be the same but it might be unexpected for users if ASCCI characters change properties depending on whether they are considered in a unicode or pure ASCII setting. The

[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

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

[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

[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

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

[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

[issue45126] [sqlite3] cleanup and harden Connection and Cursor __init__

2021-11-23 Thread Petr Viktorin
Petr Viktorin added the comment: I think it's a good idea, but without the "will be disallowed in Python 3.13" part -- we should tell people that it's discouraged, but there's not much point in removing it. But there's no consensus whether that's a good way to handle things, in general. So

[issue40673] remove deprecated urllib.request.URLopener/FancyURLopener

2021-11-23 Thread STINNER Victor
STINNER Victor added the comment: I tried but failed to remove urllib deprecated functions: see bpo-45084. -- ___ Python tracker ___

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

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

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

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

[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

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

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

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

[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

[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
Christian Heimes added the comment: We are down to 9 missing modules: readline _curses _curses_panel _dbm _ctypes _multiprocessing _posixshmem _tkinter _uuid -- ___ Python tracker

[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

[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

[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

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

[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

[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

[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

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

[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

[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

[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

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

[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

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

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

[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

[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

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

[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

[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

[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

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

[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

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

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

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

[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

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

[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

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

[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

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

[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

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

  1   2   >