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

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

[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

[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: https://m

[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

[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: https://m

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

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

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

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

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

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

[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) https://github.com/python/cpython/commit/135cabd328504e1648d17242

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

[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

[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: https://mail.pyt

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

[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

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

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

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

[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) https://github.com/python/cpython/commit/b48ac6fe38b2fca9963

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

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

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

[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: https://mail.pyth

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

[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

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

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

[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

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

[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 python310.dll!_PyEval_Ev

[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: https://mail.p

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

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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

[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 = “d

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

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

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

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

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

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

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

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

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

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

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

[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: datetime.dat

[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 *)" (__imp_?PyConfig_SetArgv@@YA?A

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

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

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

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

[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 'x=5'

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

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

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

[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: https://mail.p

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

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

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

  1   2   >