[issue46648] `test.test_urllib2.MiscTests.test_issue16464` started to fail

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
New submission from STINNER Victor : The locale.getdefaultlocale() function only relies on environment variables. At Python startup, Python calls setlocale() is set the LC_CTYPE locale to the user preferred encoding. Since Python 3.7, if the LC_CTYPE locale is "C" or "POSIX

[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: Deprecating these functions is complex. I prefer to start with the least controversial part: bpo-46659. -- ___ Python tracker <https://bugs.python.org/issue43

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29339 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31166 ___ Python tracker <https://bugs.python.org/issu

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: cal_locale.py: Test calendar.LocaleTextCalendar() default locale, manual test for GH-31166. -- Added file: https://bugs.python.org/file50605/cal_locale.py ___ Python tracker <https://bugs.python.org/issue46

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : Removed file: https://bugs.python.org/file50605/cal_locale.py ___ Python tracker <https://bugs.python.org/issue46659> ___ ___ Python-bug

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50606/cal_locale.py ___ Python tracker <https://bugs.python.org/issue46659> ___ ___ Python-bugs-list m

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29340 pull_request: https://github.com/python/cpython/pull/31167 ___ Python tracker <https://bugs.python.org/issue46

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29341 pull_request: https://github.com/python/cpython/pull/31168 ___ Python tracker <https://bugs.python.org/issue46

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29343 pull_request: https://github.com/python/cpython/pull/31171 ___ Python tracker <https://bugs.python.org/issue45

[issue46663] test_math test_cmath test_complex fails on Fedora Rawhide buildbots

2022-02-06 Thread STINNER Victor
New submission from STINNER Victor : PPC64LE Fedora Rawhide LTO 3.10: https://buildbot.python.org/all/#/builders/674/builds/543 3 tests failed: test_cmath test_complex test_math That's a GCC 12 regression: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104389 -- components:

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 04dd60e50cd3da48fd19cdab4c0e4cc600d6af30 by Victor Stinner in branch 'main': bpo-46659: Update the test on the mbcs codec alias (GH-31168) https://github.com/python/cpython/commit/04dd60e50cd3da48fd19cdab4c0e4c

[issue29240] PEP 540: Add a new UTF-8 mode

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 91106cd9ff2f321c0f60fbaa09fd46c80aa5c266 by Victor Stinner in > branch 'master': > bpo-29240: PEP 540: Add a new UTF-8 Mode (#855) > https://github.com/python/cpython/commit/91106cd9ff2f321c0f60fbaa09fd46c80aa5c266 Oh,

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 06b8f1615b09099fae5c5393334b8716a4144d20 by Victor Stinner in branch 'main': bpo-46659: test.support avoids locale.getdefaultlocale() (GH-31167) https://github.com/python/cpython/commit/06b8f1615b09099fae5c5393334b87

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: > Please see the discussion on https://bugs.python.org/issue43552: > locale.getpreferredencoding() needs to be deprecated as well. Instead we > should have a single locale.getencoding() as outlined there... perhaps in a > separate ticket ?! Than

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread STINNER Victor
New submission from STINNER Victor : While working on bpo-46659, I found a bug in the encodings "mbcs" alias. Even if the function has 2 tests (in test_codecs and test_site), both tests missed the bug :-( I fixed the alias with this change: --- commit 04dd60e50cd3da48fd19cdab4c0e4c

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: The alias was created in 2003 to fix bpo-671666: --- commit 4eab486476c0082087a8460a5ab1064e64cc1a6b Author: Martin v. Löwis Date: Mon Mar 3 09:34:01 2003 + Patch #671666: Alias ANSI code page to "mbcs". --- In 2003, bpo-671666 was creat

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: Python 3.11 supports the 40 code pages: * 037 * 273 * 424 * 437 * 500 * 720 * 737 * 775 * 850 * 852 * 855 * 856 * 857 * 858 * 860 * 861 * 862 * 863 * 864 * 865 * 866 * 869 * 874 * 875 * 932 * 949 * 950 * 1006 * 1026 * 1125 * 1140 * 1250 * 1251 * 1252 * 1253

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29345 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31174 ___ Python tracker <https://bugs.python.org/issu

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 04dd60e50cd3da48fd19cdab4c0e4cc600d6af30 by Victor Stinner in > branch 'main': > bpo-46659: Update the test on the mbcs codec alias (GH-31168) This change is not correct, I created

[issue46648] `test.test_urllib2.MiscTests.test_issue16464` flaky due to external connection

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue46648> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43882] [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: CVE-2022-0391 has been assigned to this vulnerability. -- nosy: +vstinner title: [security] urllib.parse should sanitize urls containing ASCII newline and tabs. -> [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newl

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
New submission from STINNER Victor : Building Python with "gcc -Wundef" emits many warnings about usage of undefined macros. If a macro is not defined, it is equal to 0. The problem is that a macro can be undefined because of a missing #include, or because of a typo in its name,

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29347 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31176 ___ Python tracker <https://bugs.python.org/issu

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29348 pull_request: https://github.com/python/cpython/pull/31177 ___ Python tracker <https://bugs.python.org/issue46

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29349 pull_request: https://github.com/python/cpython/pull/31178 ___ Python tracker <https://bugs.python.org/issue46

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29350 pull_request: https://github.com/python/cpython/pull/31179 ___ Python tracker <https://bugs.python.org/issue46

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 16f96a4cf9ab1e91e6e8e18232378bc4b42bb796 by Victor Stinner in branch 'main': bpo-46670: Remove unused get_frame_state() function (GH-31177) https://github.com/python/cpython/commit/16f96a4cf9ab1e91e6e8e18232378b

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 097f74a5a37e2a8a26d529cede456ede7011b66f by Victor Stinner in branch 'main': bpo-46670: Define all macros for stringlib (GH-31176) https://github.com/python/cpython/commit/097f74a5a37e2a8a26d529cede456e

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29351 pull_request: https://github.com/python/cpython/pull/31180 ___ Python tracker <https://bugs.python.org/issue46

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b556f53785cb9ad8cc088ad8c10efee91fe3da58 by Victor Stinner in branch 'main': bpo-46670: Test if a macro is defined, not its value (GH-31178) https://github.com/python/cpython/commit/b556f53785cb9ad8cc088ad8c10efe

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29359 pull_request: https://github.com/python/cpython/pull/31188 ___ Python tracker <https://bugs.python.org/issue46

[issue46648] `test.test_urllib2.MiscTests.test_issue16464` flaky due to external connection

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8e98175a03fe03d62822d96007a74e5273013764 by Nikita Sobolev in branch 'main': bpo-46648: Rewrite test_urllib2.test_issue16464() with a local HTTP server (GH-31186) https://github.com/python/cpyt

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: I don't think that this fallback is needed anymore. Which Windows code page can be used as ANSI code page which is not already implemented as a Python codec? -- ___ Python tracker <https://bugs.py

[issue46663] test_math test_cmath test_complex fails on Fedora Rawhide buildbots

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > @vstinner What was the change that caused the buildbots to start failing? Did > the GCC version get updated on those machines between the last runs and this > one, or was the change due to recent PRs in Python? It's a GCC regression.

[issue24904] Provide a way for potentially long runtime difflib algorithms to be aborted by the caller (and report progress?)

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue24904> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46640] Python can now use the C99 NAN constant or __builtin_nan()

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > Adding new C99 features needs a change in PEP 7 > (https://www.python.org/dev/peps/pep-0007/#c-dialect) IMO this PEP is outdated for a long time. C99 standard is wide. Do we have to explicitly list every single function, macro or constant used by

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: A benchmark on calling C functions using ctypes sounds better than a benchmark calling Python functions. For Python functions, Python objects are converted to C types, and then C types are convered back to Python objects, the Python result is converted to a

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4cce1352bb47babaeefb68fcfcc48ffa073745c3 by Victor Stinner in branch 'main': bpo-46323: _ctypes.CFuncPtr fails if _argtypes_ is too long (GH-31188) https://github.com/python/cpython/commit/4cce1352bb47babaeefb68fcfcc48f

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29362 pull_request: https://github.com/python/cpython/pull/31192 ___ Python tracker <https://bugs.python.org/issue46

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29363 pull_request: https://github.com/python/cpython/pull/31193 ___ Python tracker <https://bugs.python.org/issue46

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29364 pull_request: https://github.com/python/cpython/pull/31194 ___ Python tracker <https://bugs.python.org/issue46

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: -Wexpansion-to-defined and -Wunused-macros options are also interesting. -- ___ Python tracker <https://bugs.python.org/issue46

[issue39277] _PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29365 pull_request: https://github.com/python/cpython/pull/31195 ___ Python tracker <https://bugs.python.org/issue39

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29366 pull_request: https://github.com/python/cpython/pull/31196 ___ Python tracker <https://bugs.python.org/issue46

[issue46640] Python can now use the C99 NAN constant or __builtin_nan()

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > Well, if you ask me, I would simply require a C99 compiler. That's all :-) Done in https://github.com/python/peps/pull/2309 -- ___ Python tracker <https://bugs.python.org

[issue39277] _PyTime_FromDouble() fails to detect an integer overflow when converting a C double to a C int64_t

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset d3e53bc5321a9f08c7ed5b9383eefb2e03dfa6e2 by Victor Stinner in branch 'main': bpo-39277: Fix PY_TIMEOUT_MAX cast in _threadmodule.c (GH-31195) https://github.com/python/cpython/commit/d3e53bc5321a9f08c7ed5b9383eefb

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4f1d3f33dd8b37a151b73533f18b08b0500223e5 by Victor Stinner in branch 'main': bpo-46670: Remove unused macros in the Modules directory (GH-31194) https://github.com/python/cpython/commit/4f1d3f33dd8b37a151b73533f18b08

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 760349198dbd8771629753e096a885c1aa28a1ca by Victor Stinner in branch 'main': bpo-46670: Remove unused macros in the Objects directory (GH-31193) https://github.com/python/cpython/commit/760349198dbd8771629753e096a885

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d8b69e1d1f125454d8cec81ff0dee72f2bef957 by Victor Stinner in branch 'main': bpo-46670: Remove unused macros in the Python directory (GH-31192) https://github.com/python/cpython/commit/7d8b69e1d1f125454d8cec81ff0dee

[issue46670] Build Python with -Wundef: don't use undefined macros

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset f20ca766fe404a20daea29230f161a0eb71bb489 by Victor Stinner in branch 'main': bpo-46670: Fix #ifdef in sha3module.c (GH-31180) https://github.com/python/cpython/commit/f20ca766fe404a20daea29230f161a

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: Oh ok, thanks for the clarification :-) -- ___ Python tracker <https://bugs.python.org/issue46323> ___ ___ Python-bugs-list m

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: Example of C code that I added to _testcapi: --- static PyObject * get_caller_locals(PyObject *self, PyObject *Py_UNUSED(args)) { PyFrameObject *frame = PyThreadState_GetFrame(PyThreadState_Get()); if (frame == NULL) { Py_RETURN_NONE

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > Is there anyway to get the PyObject* associated with a PyFrameObject*? Ah. I see. If you pass a PyFrameObject* frame to PyObject_GetAttrString(), you get a compiler warning. You should cast it explicitly: PyObject_GetAttrString((PyObject*)fr

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29369 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31198 ___ Python tracker <https://bugs.python.org/issu

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: I proposed GH-31198 to fix the compiler warnings in the doc. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46166] [C API] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- title: Get "self" args or non-null co_varnames from frame object with C-API -> [C API] Get "self" args or non-null co_varnames from frame object with C-API ___ Python tracker <https://

[issue46166] [C API] Get "self" args or non-null co_varnames from frame object with C-API

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset a89772c79183e3e62bf61b92077a04f6ebcc4a2b by Victor Stinner in branch 'main': bpo-46166: Fix compiler warnings in What's New in Python 3.11 (GH-31198) https://github.com/python/cpython/commit/a89772c79183e3e62bf61b920

[issue45459] Limited API support for Py_buffer

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: > There's some side effects with "buffer.h" inclusion in Panda3D when building > againt 3.11a5, project manager concerns are here > https://github.com/python/cpython/pull/29991#issuecomment-1031731100 Copy of rdb's message: &quo

[issue45459] Limited API support for Py_buffer

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29372 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/31201 ___ Python tracker <https://bugs.python.org/issu

[issue46648] `test.test_urllib2.MiscTests.test_issue16464` flaky due to external connection

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: I close again the issue. The 3.8 backport is waiting for the Python 3.8 Release Manager approval. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7a0486eaa98083e0407ff491872db6d7a0da2635 by Victor Stinner in branch 'main': bpo-46659: calendar uses locale.getlocale() (GH-31166) https://github.com/python/cpython/commit/7a0486eaa98083e0407ff491872db6

[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29376 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31206 ___ Python tracker <https://bugs.python.org/issu

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29377 pull_request: https://github.com/python/cpython/pull/31206 ___ Python tracker <https://bugs.python.org/issue46

[issue43882] [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: > Looks like that CVE isn't public yet. > https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0391 > Any chance I can get access (I originally reported this vuln.). Message from Gaurav Kamathe who requested the CVE: "We've sent a

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "getdefaultlocale() falls back to LANG and LANGUAGE. It allows also to specify a list of looked up environment variables. How could this use case be covered with getlocale()?" What's your use case to use env vars rather than the c

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: > I think calendar.Locale*Calendar should try the LC_CTYPE locale if LC_TIME is > "C", i.e. (None, None). Otherwise, it's introducing new default behavior. For > example, with LC_ALL set to "ru_RU.utf8": (...) Oh. Serhiy a

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29384 pull_request: https://github.com/python/cpython/pull/31214 ___ Python tracker <https://bugs.python.org/issue46

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: Eryk: I created GH-31214 which uses the user preferred locale if the current LC_TIME locale is "C" or "POSIX". Moreover, it no longer gets the current locale when the class is created. If locale=locale is passed, just use the current

[issue44006] symbol documentation still exists

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue for binhex. https://docs.python.org/dev/library/binhex.html is still there whereas https://github.com/python/cpython/blob/main/Doc/library/binxhex.rst is gone. -- nosy: +vstinner resolution: fixed -> status: closed ->

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

2022-02-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29387 pull_request: https://github.com/python/cpython/pull/31217 ___ Python tracker <https://bugs.python.org/issue45

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29388 pull_request: https://github.com/python/cpython/pull/31218 ___ Python tracker <https://bugs.python.org/issue46

[issue46668] encodings: the "mbcs" alias doesn't work

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: I created GH-31218 which basically restores Python 3.10 code but enhances the test. -- ___ Python tracker <https://bugs.python.org/issue46

[issue45490] [C API] PEP 670: Convert macros to functions in the Python C API

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: I will use this issue to track changes related to PEP 670. -- title: [meta][C API] Avoid C macro pitfalls and usage of static inline functions -> [C API] PEP 670: Convert macros to functions in the Python C

[issue45490] [C API] PEP 670: Convert macros to functions in the Python C API

2022-02-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29391 pull_request: https://github.com/python/cpython/pull/31221 ___ Python tracker <https://bugs.python.org/issue45

[issue46656] Compile fails if Py_NO_NAN is defined

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: Requiring IEEE 754 support is being discussed on python-dev: https://mail.python.org/archives/list/python-...@python.org/thread/J5FSP6J4EITPY5C2UJI7HSL2GQCTCUWN/ -- ___ Python tracker <https://bugs.python.

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-08 Thread STINNER Victor
STINNER Victor added the comment: I suggest to use PyTuple_GET_ITEM(), but PySequence_Fast_ITEMS() is more effecient. It's hard to beat an array in C. -- ___ Python tracker <https://bugs.python.org/is

[issue45863] tarfile zeroes ustar header fields unnecessarily

2022-02-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset bf2d44ffb06e8f49aacc6b1c140a6717df5cf897 by Joshua Root in branch 'main': bpo-45863: tarfile: don't zero out header fields unnecessarily (GH-29693) https://github.com/python/cpython/commit/bf2d44ffb06e8f49aacc6b1c1

[issue45863] tarfile zeroes ustar header fields unnecessarily

2022-02-09 Thread STINNER Victor
STINNER Victor added the comment: Thanks Joshua Root for the bug report and the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-02-09 Thread STINNER Victor
STINNER Victor added the comment: I failed to find the doc about alloca(0). It seems like the existing _ctypes_callproc() function *can* call alloca(0) if argtuple is empty and pIunk is 0 (pIunk is specific to Windows). -- ___ Python tracker

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread STINNER Victor
New submission from STINNER Victor : Seen on s390x RHEL7 Refleaks 3.x: https://buildbot.python.org/all/#/builders/129/builds/300 == Tests result: FAILURE == (...) 3 tests failed: test_asyncio test_importlib test_unittest (...) 0:36:44 load avg: 0.50 Re-running test_asyncio in verbose mode

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread STINNER Victor
STINNER Victor added the comment: By default, asyncio.events._event_loop_policy is None: $ ./python -i >>> import asyncio; asyncio.events._event_loop_policy is None True After running the test, it changes: vstinner@apu$ ./python -i Python 3.11.0a5+ (heads/main:46328d8ae6, Feb 9

[issue46709] test_urllib: testInterruptCaught() has a race condition and fails randomly

2022-02-10 Thread STINNER Victor
New submission from STINNER Victor : test_urllib failed and then passed when re-run on s390x RHEL7 Refleaks 3.x: https://buildbot.python.org/all/#builders/129/builds/300 I can reproduce the issue on my Linux laptop: $ ./python -m test -m

[issue46708] test_asyncio: test_sock_client_fail() changes asyncio.events._event_loop_policy

2022-02-10 Thread STINNER Victor
STINNER Victor added the comment: With PR 31253 fix, I confirm that it fix my bug explained in msg412992. commit 012e77eb5c3ba3d411f5967a7f368ebdb42ab88c Author: Andrew Svetlov Date: Thu Feb 10 14:57:20 2022 +0200 Fix warning: asyncio.events._event_loop_policy was modified by

[issue46711] test_logging: test_post_fork_child_no_deadlock() failed with timeout on AMD64 Arch Linux Asan Debug 3.10

2022-02-10 Thread STINNER Victor
New submission from STINNER Victor : The test calls support.wait_process() which uses SHORT_TIMEOUT. wait_process() should use LONG_TIMEOUT, or the ASAN buildbot should increase its timeout (regrtest --timeout parameter). IMO using LONG_TIMEOUT is fine: it's ok if the test takes 2 mi

[issue46716] regrtest didn't respect the timeout on AMD64 Windows11 3.x

2022-02-10 Thread STINNER Victor
New submission from STINNER Victor : regrtest was run with --timeout 900 on AMD64 Windows11 3.x: timeout confirmed by "(timeout: 15 min, worker timeout: 20 min)" log. But then test_subprocss was only stopped after "4 hour 55 min". If the regrtest main process is able to

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-02-10 Thread STINNER Victor
Change by STINNER Victor : -- title: regrtest didn't respect the timeout on AMD64 Windows11 3.x -> regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x ___ Python tracker <https://bugs.pytho

[issue46400] Please update bundled libexpat to 2.4.4 with security fixes (CVE-2021-45960)

2022-02-10 Thread STINNER Victor
Change by STINNER Victor : -- title: Please update bundled libexpat to 2.4.4 with security fixes -> Please update bundled libexpat to 2.4.4 with security fixes (CVE-2021-45960) ___ Python tracker <https://bugs.python.org/issu

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-11 Thread STINNER Victor
STINNER Victor added the comment: > It also adds a precondition that's not feasible public API, which this was > meant to become Do you plan to make the function public? It would be nice! -- ___ Python tracker <https://bugs.python.

[issue46709] test_urllib: testInterruptCaught() has a race condition and fails randomly

2022-02-11 Thread STINNER Victor
STINNER Victor added the comment: Oops, I forgot about my own bpo-46465. I failed to find it when I searched for "test_urllib". -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Regression caused by CALL_FUNCTIO

[issue46465] Regression caused by CALL_FUNCTION specialization for C function calls (test_urllib fails when run multiple times)

2022-02-11 Thread STINNER Victor
Change by STINNER Victor : -- title: Regression caused by CALL_FUNCTION specialization for C function calls -> Regression caused by CALL_FUNCTION specialization for C function calls (test_urllib fails when run multiple times) ___ Python trac

[issue45490] [C API] PEP 670: Convert macros to functions in the Python C API

2022-02-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset e0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b by Victor Stinner in branch 'main': bpo-45490: Rename static inline functions (GH-31217) https://github.com/python/cpython/commit/e0bcfd0e4db193743d4bafc48d10f1

[issue46355] [C API] Document PyFrameObject and PyThreadState changes and explain how to port code to Python 3.11

2022-02-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset ba5725171d9c411fc4764349205eff5cfc028797 by Erlend Egeberg Aasland in branch 'main': bpo-46355: Amend What's New in Python 3.11 C API wording (GH-31288) https://github.com/python/cpython/commit/ba5725171d9c411fc47643492

[issue33601] [doc] Py_UTF8Mode is not documented

2022-02-21 Thread STINNER Victor
STINNER Victor added the comment: > [Entry level contributor seeking guidance]The PR on this issue looks closed. > I worked on this and attaching the updated html file. Hi. You should update Doc/c-api/init.rst. Not the generated HTM

[issue34990] year 2038 problem in compileall.py

2022-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue34990> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43974] Define Py_BUILD_CORE_MODULE in extensions instead of setup.py and Modules/Setup

2022-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue43974> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-02-21 Thread STINNER Victor
STINNER Victor added the comment: > It does seem that only the Windows Popen._wait() cannot handle negative > timeout values, so the fix should be as simple as coercing the timeout values > to >= 0. Oh. This function should maybe raise an exception if the timeout is negativ

[issue42752] multiprocessing Queue leaks a file descriptor associated with the pipe writer (#33081 still a problem)

2022-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue42752> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46789] Restore caching of externals on Windows buildbots

2022-02-21 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to create a download cache somewhere outside the Python source tree, so "git clean -fdx" would not remove this cache? Some CIs implement such cache. Does buildbot have helpers for that? buildbot provides for example: * LRUCa

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: The gevent project is not compatible with Python 3.11: it gets and sets directly PyFrameObject.f_code member which has been removed in Python 3.11 (moved to PyFrameObject.f_frame.f_code internal C API). gevent issue: https://github.com/gevent/gevent/issues

<    1   2   3   4   5   6   7   8   9   10   >