[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-14 Thread Dong-hee Na
Dong-hee Na added the comment: Please take a look at the patch file that it will be okay to CPython code base :) -- ___ Python tracker ___ ___

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-14 Thread Dong-hee Na
Dong-hee Na added the comment: I will send this patch file, when I apply this patch file, my compiler did not raise _POSIX_C_SOURCE issue. (gcc version 8.4.1 20200928 (Red Hat 8.4.1-1) (GCC)) CPython affects - xmltok.c - xmlrole.c (Not yet applied to CPython code) Not affected - xmlfile.c -

[issue45084] urllib.parse: remove deprecated functions (splittype, to_bytes, etc.)

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: pip uses deprecated functions indirectly: https://github.com/python/cpython/pull/28115 Python 3.11 seems to be too early to *remove* functions. We can attempt again in the next Python release ;-) -- resolution: -> postponed stage: patch review -> re

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-14 Thread Dong-hee Na
Dong-hee Na added the comment: Related PRs - https://github.com/python/cpython/commit/d413c503636cde2a6ab0ada25dccb0134633a8e6 by Dong-hee - https://github.com/python/cpython/commit/8177404d520e81f16324a900f093adf3856d33f8 by Pablo - https://github.com/python/cpython/commit/cf247359d5b708

[issue45479] clean up Py_UniversalNewlineFgets

2021-10-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 9ce9cfe595d64e3081e69de7296042cc54bccf18 by Benjamin Peterson in branch 'main': bpo-45479: Futher simplify Py_UniversalNewlineFgets. (GH-28967) https://github.com/python/cpython/commit/9ce9cfe595d64e3081e69de7296042cc54bccf18 -- __

[issue45479] clean up Py_UniversalNewlineFgets

2021-10-14 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +27255 pull_request: https://github.com/python/cpython/pull/28967 ___ Python tracker ___ ___

[issue45479] clean up Py_UniversalNewlineFgets

2021-10-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 160c38df7fc7ba22dc687879c387bf643ffc3398 by Benjamin Peterson in branch 'main': closes bpo-45479: Degunkify Py_UniversalNewlineFgets. (GH-28965) https://github.com/python/cpython/commit/160c38df7fc7ba22dc687879c387bf643ffc3398 -- re

[issue45479] clean up Py_UniversalNewlineFgets

2021-10-14 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +27254 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28965 ___ Python tracker __

[issue45479] clean up Py_UniversalNewlineFgets

2021-10-14 Thread Benjamin Peterson
New submission from Benjamin Peterson : Py_UniversalNewlineFgets has a bunch of dead code and general gunk that should be removed. -- assignee: benjamin.peterson components: IO messages: 403970 nosy: benjamin.peterson priority: normal severity: normal status: open title: clean up Py_Un

[issue45420] Python 3.10 final installation failure

2021-10-14 Thread wyz23x2
wyz23x2 added the comment:   -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailm

[issue45478] Send a patch to libexpat to solve _POSIX_C_SOURCE issue.

2021-10-14 Thread Dong-hee Na
New submission from Dong-hee Na : Yesterday, I left an issue to libexpat project about what we solved yesterday to follow Christian suggestion. https://github.com/libexpat/libexpat/issues/513 The maintainer suggests sending a patch with reordering all headers files related to expat_config.h.

[issue45465] logging messages are needlessly reformatted for every handler

2021-10-14 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 77b24ba505744532d7cfd721b1c92d205e145180 by Victor Stinner in branch 'main': bpo-35134: Move Include/cellobject.h to Include/cpython/ (GH-28964) https://github.com/python/cpython/commit/77b24ba505744532d7cfd721b1c92d205e145180 --

[issue45443] 'ThreadPoolExecutor' object has no attribute 'map'

2021-10-14 Thread Dennis Sweeney
Change by Dennis Sweeney : -- components: +Library (Lib) status: open -> pending type: crash -> behavior ___ Python tracker ___ ___

[issue45443] 'ThreadPoolExecutor' object has no attribute 'map'

2021-10-14 Thread Dennis Sweeney
Dennis Sweeney added the comment: I was also unable to replicate on any of 3.7-3.11, including 3.9.6. Is it possible that one of your Python stdlib source files was modified? Does this still happen with a fresh install of Python? Does your problem still happen if you run the file using a pyt

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I searched for "PyFloat_AS_DOUBLE.*=" regex in the PyPI top 5000 projects. I couldn't find any project doing that. I only found perfectly safe comparisons: traits/ctraits.c:if (PyFloat_AS_DOUBLE(value) <= PyFloat_AS_DOUBLE(low)) { traits/ctraits

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27253 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/28964 ___ Python tracker ___ __

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: commit 37b1d607bf0f1a9c1e89b1715349efc24dc180e0 (upstream/main, main) Author: Victor Stinner Date: Fri Oct 15 01:50:28 2021 +0200 po-35134: Move Include/funcobject.h to Include/cpython/ (GH-28958) Remove redundant "#ifndef Py_LIMITED_API" in fu

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7076bef8ba8836a19d5033f4ceb8eb9837de2301 by Victor Stinner in branch 'main': bpo-45434: Remove useless space in includes (GH-28963) https://github.com/python/cpython/commit/7076bef8ba8836a19d5033f4ceb8eb9837de2301 -- _

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03bbc6066ff40c62edd57612be9150dcf1b123c8 by Victor Stinner in branch 'main': bpo-41710: Fix What's New Entry credit (GH-28962) https://github.com/python/cpython/commit/03bbc6066ff40c62edd57612be9150dcf1b123c8 -- __

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: Raymond: > AFAICT, no one has ever has problems with these being macros. This issue is about the API of PyFloat_AS_DOUBLE(). Implementing it as a macro or a static inline function is an implementation detail which doesn't matter. But I don't know how to disa

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27252 pull_request: https://github.com/python/cpython/pull/28963 ___ Python tracker ___ __

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27251 pull_request: https://github.com/python/cpython/pull/28962 ___ Python tracker ___ __

[issue45473] Enum add "from_name" and "from_value" class methods

2021-10-14 Thread Aaron Koch
Aaron Koch added the comment: Are there any other names that you would contemplate besides `from_name` and `from_value`? My reading of your response indicates that you are fundamentally opposed to the addition of class methods, since they would limit the space of possible instance methods/m

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27250 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28961 ___ Python tracker ___ _

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 284994762d820d8e09cc019f8f7c4bc501e37dd4 by Victor Stinner in branch 'main': bpo-45434: Limited Python.h no longer includes stdio.h (GH-28960) https://github.com/python/cpython/commit/284994762d820d8e09cc019f8f7c4bc501e37dd4 -- __

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27249 pull_request: https://github.com/python/cpython/pull/28960 ___ Python tracker ___ __

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue45442] Update `Virtual Environment` tutorial

2021-10-14 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +27248 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28959 ___ Python tracker _

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset af1083e975b9627a5c97013d3a2b9aef0e4b333c by Victor Stinner in branch 'main': bpo-45474: Fix the limited C API of marshal.h (GH-28956) https://github.com/python/cpython/commit/af1083e975b9627a5c97013d3a2b9aef0e4b333c -- ___

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -23644 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue since there is new activity on it :-) -- resolution: fixed -> status: closed -> open ___ Python tracker ___ _

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27247 pull_request: https://github.com/python/cpython/pull/28958 ___ Python tracker ___ __

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > These macros can be abused to be used as l-value You could simply document, "don't do that". Also if these is a need to make an assignment, you're now going to have to create a new setter function to fill the need. We really don't have to go on thin i

[issue29595] Expose max_queue_size in ThreadPoolExecutor

2021-10-14 Thread Jack Wong
Change by Jack Wong : -- nosy: +iforapsy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0a883a76cda8205023c52211968bcf87bd47fd6e by Victor Stinner in branch 'main': bpo-35134: Add Include/cpython/floatobject.h (GH-28957) https://github.com/python/cpython/commit/0a883a76cda8205023c52211968bcf87bd47fd6e --

[issue21736] Add __file__ attribute to frozen modules

2021-10-14 Thread Eric Snow
Eric Snow added the comment: I've merged the change to add __file__ for frozen stdlib modules (when possible) and to set __path__ appropriately. There are still a number of things to address though: * set co_filename (for tracebacks) * implement FrozenImporter.get_filename() * implement Fro

[issue21736] Add __file__ attribute to frozen modules

2021-10-14 Thread Eric Snow
Eric Snow added the comment: New changeset 79cf20e48d0b5d69d9fac2a0204b5ac2c366066a by Eric Snow in branch 'main': bpo-21736: Set __file__ on frozen stdlib modules. (gh-28656) https://github.com/python/cpython/commit/79cf20e48d0b5d69d9fac2a0204b5ac2c366066a -- _

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread Eric Snow
Eric Snow added the comment: Thanks, Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue45477] configure script cannot detect float word ordering on linux

2021-10-14 Thread Sourish Basu
New submission from Sourish Basu : I am trying to compile Python 3.10.0 on a Red Hat linux system with intel C/C++ compilers. This is my configure command: ``` ./configure --with-computed-gotos --without-gcc --with-ensurepip=install --enable-optimizations --with-libm=-limf --with-cxx-main=icp

[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-14 Thread STINNER Victor
New submission from STINNER Victor : The Python C API provides "AS" functions to convert an object to another type, like PyFloat_AS_DOUBLE(). These macros can be abused to be used as l-value: "PyFloat_AS_DOUBLE(obj) = new_value;". It prevents to change the PyFloat implementation and makes lif

[issue45473] Enum add "from_name" and "from_value" class methods

2021-10-14 Thread Ethan Furman
Ethan Furman added the comment: The problem with adding methods is that those names are then unavailable for member names -- at least not without possible confusion. Also, unlike the `name` and `value` instance attributes which do not hide class attributes (aka members) of the same name, `fr

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-14 Thread minstrelofc
New submission from minstrelofc : Attempting to iterate over an opened gzip file raises a ValueError: readline of closed file Behavior in Python 3.9.7: Python 3.9.7 (default, Oct 13 2021, 09:08:19) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27246 pull_request: https://github.com/python/cpython/pull/28957 ___ Python tracker ___ __

[issue45417] Enum creation non-linear in the number of values

2021-10-14 Thread Ethan Furman
Ethan Furman added the comment: New changeset b2af211e229df941d9b404f69547a264115156b5 by Carl Friedrich Bolz-Tereick in branch 'main': bpo-45417: [Enum] fix quadratic behavior during creation (GH-28907) https://github.com/python/cpython/commit/b2af211e229df941d9b404f69547a264115156b5 -

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-14 Thread Eric Snow
Eric Snow added the comment: @MAL, what's the best way to make sure Tools/freeze is still working? I don't see any tests for it in the test suite. I tried running the test in Tools/freeze/test, but I can't get that to work on main (or on the 3.10 branch). -- __

[issue45468] Add support for preloading a Python script

2021-10-14 Thread Gabriele N Tornetta
Gabriele N Tornetta added the comment: That's totally fine. My aim is to have something in place that would make preloading some code less clunky than what it is just now. -- ___ Python tracker

[issue45471] _Py_path_config.stdlib_dir should not be set in Py_SetPythonHome().

2021-10-14 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-10-14 Thread Eric Snow
Eric Snow added the comment: New changeset 0bbea0723ee07f9d7ad9745f0e1875718ef38715 by Eric Snow in branch 'main': bpo-45471: Do not set PyConfig.stdlib_dir in Py_SetPythonHome(). (gh-28954) https://github.com/python/cpython/commit/0bbea0723ee07f9d7ad9745f0e1875718ef38715 -- __

[issue45471] _Py_path_config.stdlib_dir should not be set in Py_SetPythonHome().

2021-10-14 Thread Eric Snow
Eric Snow added the comment: New changeset 0bbea0723ee07f9d7ad9745f0e1875718ef38715 by Eric Snow in branch 'main': bpo-45471: Do not set PyConfig.stdlib_dir in Py_SetPythonHome(). (gh-28954) https://github.com/python/cpython/commit/0bbea0723ee07f9d7ad9745f0e1875718ef38715 -- __

[issue45468] Add support for preloading a Python script

2021-10-14 Thread Christian Heimes
Christian Heimes added the comment: We generally prefer to have only way way to accomplish a goal. If PEP 648 gets accepted then your proposal won't be accepted. In case the PEP is rejected, then your proposal may still be rejected or may require a new PEP. Preloading has some complicated ed

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27245 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28956 ___ Python tracker ___ _

[issue45474] [C API] marshal.h must not use FILE* type in the limited C API

2021-10-14 Thread STINNER Victor
New submission from STINNER Victor : Include/marshal.h defines 2 functions with FILE* argument in the limited C API, whereas the PEP 384 disallows that: "In addition, functions expecting FILE* are not part of the ABI, to avoid depending on a specific version of the Microsoft C runtime DLL on

[issue45434] [C API] Clean-up the Python.h header file

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I tried to remove the include from Python.h: -#include// memcpy() ... but it required me to modify 100+ files. I don't know the exact number, I gave up after 100 files. I was near half of C extensions built by setup.py, so the number total

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: I decided to merge my PR to address https://bugs.python.org/issue45439 initial issue: "[C API] Move usage of **tp_vectorcall_offset** from public headers to the internal C API". Last years, I added `tstate` parameters to internal C functions. The agreement

[issue45468] Add support for preloading a Python script

2021-10-14 Thread Gabriele N Tornetta
Gabriele N Tornetta added the comment: @christian.heimes thanks for bringing PEP 648 to my attention. The solution proposed there would work for me, although it actually does a bit more with some extra complexity. Not a big issue though. @eric.smith I think that, as argued in PEP 648, pth fi

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3cc56c828d2d8f8659ea49447234bf0d2b87cd64 by Victor Stinner in branch 'main': bpo-45439: Move _PyObject_VectorcallTstate() to pycore_call.h (GH-28893) https://github.com/python/cpython/commit/3cc56c828d2d8f8659ea49447234bf0d2b87cd64 --

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue45473] Enum add "from_name" and "from_value" class methods

2021-10-14 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman nosy: +ethan.furman versions: +Python 3.11 ___ Python tracker ___ ___ Python-

[issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

2021-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45473] Enum add "from_name" and "from_value" class methods

2021-10-14 Thread Aaron Koch
New submission from Aaron Koch : Documentation: https://docs.python.org/3/library/enum.html#creating-an-enum Current behavior: SomeEnum[name] is used to construct an enum by name SomeEnum(value) is used to construct an enum by value Problem: As a user of enums, it is difficult to remember th

[issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

2021-10-14 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: I suppose that this issue can now be closed? -- ___ Python tracker ___ ___ Python-bugs-li

[issue45472] Add public C API for partial "unicode-escape" and "raw-unicode-escape" decoding

2021-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +27244 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28955 ___ Python tracker ___

[issue45468] Add support for preloading a Python script

2021-10-14 Thread Christian Heimes
Christian Heimes added the comment: There is also https://www.python.org/dev/peps/pep-0648/ -- nosy: +christian.heimes ___ Python tracker ___ _

[issue45404] Undefined I_* macros of stropts.h when building Python 3.10 on Ubuntu: fail to build the fcntl module

2021-10-14 Thread Christian Heimes
Christian Heimes added the comment: I'm glad you figured out the problem and fixed your system. Python uses autoconf (configure) to detect the presence of features. It's a standard approach. Since you had a stropts.h in your include directory, configure declared HAVE_STROPTS_H. The system ca

[issue45472] Add public C API for partial "unicode-escape" and "raw-unicode-escape" decoding

2021-10-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR adds C API functions PyUnicode_DecodeUnicodeEscapeStateful() and PyUnicode_DecodeRawUnicodeEscapeStateful() for partially decoding with "unicode-escape" and "raw-unicode-escape" encodings. It were the only multibyte text codecs which did

[issue45404] Undefined I_* macros of stropts.h when building Python 3.10 on Ubuntu: fail to build the fcntl module

2021-10-14 Thread Diego Alonso
Diego Alonso added the comment: I had an empty stropts.h lying around somewhere in /usr/* (can't remember where) because some programs don't compile if they don't see that file (even an empty one suffices). But Python doesn't compile if it sees it... So I deleted stropts.h and then ran ./con

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-14 Thread Gregory Beauregard
Gregory Beauregard added the comment: Hi Michael, Thanks for taking the time to look into this. I don't feel strongly enough about following the existing PEP wording to desire creating a situation where instance vars can't be marked Final if we can instead make a workaround with ClassVar[Fi

[issue45468] Add support for preloading a Python script

2021-10-14 Thread Eric V. Smith
Eric V. Smith added the comment: Can you accomplish what you want with .pth files? -- nosy: +eric.smith ___ Python tracker ___ ___

[issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 684860280687561f6312e206c4ccfbe4baa17e89 by Serhiy Storchaka in branch '3.9': bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28953) https://github.com/python/cpython/commit/684860280687561f

[issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4641afef661e6a22bc64194bd334b161c95edfe2 by Serhiy Storchaka in branch '3.10': [3.10] bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28952) https://github.com/python/cpython/commit/4641afef

[issue45211] Useful (expensive) information is discarded in getpath.c.

2021-10-14 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +27243 pull_request: https://github.com/python/cpython/pull/28954 ___ Python tracker ___ ___

[issue45471] _Py_path_config.stdlib_dir should not be set in Py_SetPythonHome().

2021-10-14 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +27242 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28954 ___ Python tracker ___

[issue45471] _Py_path_config.stdlib_dir should not be set in Py_SetPythonHome().

2021-10-14 Thread Eric Snow
New submission from Eric Snow : (This follows bpo-45211.) In gh-28586 I added the code in Py_SetPythonHome() to set _Py_path_config.stdlib_dir to the provided directory. However, this is the wrong value. Furthermore, the relationship between _Py_path_config.home and _Py_path_config.stdlib_

[issue45462] Speed up re.match with pre-compiled patterns

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Calling re.math() with a pre-compiled pattern is an uncommon case. Common cases are calling re.math() with a string pattern and calling the math() method of a pre-compiled pattern. Your change speeds up an uncommon case but slows down a common case. -

[issue45461] UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \ at end of string

2021-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Examples of using the new feature. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

2021-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27241 pull_request: https://github.com/python/cpython/pull/28953 ___ Python tracker ___

[issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

2021-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27240 pull_request: https://github.com/python/cpython/pull/28952 ___ Python tracker ___

[issue45448] PIP package installation failure for multiple packages

2021-10-14 Thread Zayden Micheal James
Zayden Micheal James added the comment: Oh so the problem will resolve itself when they, support Python 3.10 PIP 21.2.4. Sorry for the inconvenience. Can't wait for the libraries to be resolved and optimized -- ___ Python tracker

[issue45470] possible bug in datetime.timestamp()

2021-10-14 Thread Stefan
Stefan added the comment: sorry it's resolved. it was a timezone issue: In [2]: d0 = datet.datetime(2016,3,27,tzinfo=datet.timezone.utc) In [3]: d1 = datet.datetime(2016,3,28,tzinfo=datet.timezone.utc) In [4]: (d1-d0).total_seconds()/3600 Out[4]: 24.0 In [5]: (d1.timestamp()-d0.timestamp())

[issue45470] possible bug in datetime.timestamp()

2021-10-14 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 39aa98346d5dd8ac591a7cafb467af21c53f1e5d by Serhiy Storchaka in branch 'main': bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) https://github.com/python/cpython/commit/39aa98346d5dd8ac591a7cafb4

[issue45461] UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \ at end of string

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7c722e32bf582108680f49983cf01eaed710ddb9 by Serhiy Storchaka in branch '3.9': [3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28945) https://github.com/python/cpython/commit/7c722e32bf5821

[issue45461] UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \ at end of string

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0bff4ccbfd3297b0adf690655d3e9ddb0033bc69 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28943) https://github.com/python/cpython/commit/0bff4ccb

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, just to clarify something: there is no guarantee that multiple build-in, unrelated exceptions can be inherited and this is not supported. And this is not unique to this case. For example: >>> class A(StopIteration, OSError): ...... ... Trace

[issue45470] possible bug in datetime.timestamp()

2021-10-14 Thread Stefan
New submission from Stefan : I noticed that there is a difference between intervals when computed from timedeltas vs timestamps. Is this a bug? Thanks! In [2]: import datetime as datet In [3]: d0 = datet.datetime(2016,3,27) In [4]: d1 = datet.datetime(2016,3,28) In [5]: (d1-d0).total_seconds()

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Dong-hee Na
Dong-hee Na added the comment: > Please show examples. Sorry, I don't understand, do you mean caching example or recovery example? When we use rocksdb, we can get checkpoints files under local file system. And we can recover the database by using them. http://rocksdb.org/blog/2015/11/10/use-ch

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-14 Thread Alex Waygood
Alex Waygood added the comment: Have posted my PR. I've tested it manually and run the IDLE test suite on it with the `-u all` setting; it seems fine. The new tests I've written are a bit thin on the ground right now, though. I may need some guidance/help if more extensive tests are needed -

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately there isn't much we can do here other than document this :( -- ___ Python tracker ___ __

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please show examples. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-14 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +27239 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/28950 ___ Python tracker

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Dong-hee Na
Dong-hee Na added the comment: Yeah, I agree with gdbm_latest_snapshot(), this API might be too low-level. But as I am one of the rocksdb user who directly uses rocksdb API for the production platform as caching purposes. so when I think about my and my team's rocksdb usage, gdbm_failure_atomi

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am interesting how these gdbm_failure_atomic() and gdbm_latest_snapshot() can be used in user code. Some real world examples. They look very low-level and requiring an additional boilerplate code to be useful if I understand it correctly. -- __

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Dong-hee Na
Dong-hee Na added the comment: dbm.gdbm_failure_atomic('snapshot_path0', 'snapshot_path1') -> db.gdbm_failure_atomic('snapshot_path0', 'snapshot_path1') -- ___ Python tracker ___

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Dong-hee Na
Dong-hee Na added the comment: Sorry, I don't know my answer is enough. Or do you have any ideas or the opposite ideas? -- ___ Python tracker ___ _

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Dong-hee Na
Dong-hee Na added the comment: > And what's next? I may introduce following API which only available to use extension format. (I am PoC with this) > dbm.gdbm_failure_atomic('snapshot_path0', 'snapshot_path1') About gdbm_latest_snapshot(), I am still curious that Python module should provid

[issue45452] Support crash tolerance feature for gdbm module

2021-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And what's next? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

  1   2   >