[issue43422] Revert _decimal C API changes
Antoine Pitrou added the comment: FWIW, I have the roles "User,Developer,Coordinator" according to my user page. You (Terry) have the roles "User,Developer". Perhaps the "Coordinator" role explains I see things you don't see (it's a better explanation than believing I am a psychic :-D). -- ___ Python tracker <https://bugs.python.org/issue43422> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43422] Revert _decimal C API changes
Antoine Pitrou added the comment: Terry, the list of roles in https://bugs.python.org/user11089 is empty, which I take it to mean that Stefan doesn't have any access rights on this issue tracker (except to read issues). Other users all seem to have the "User" role. -- ___ Python tracker <https://bugs.python.org/issue43422> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43356] PyErr_SetInterrupt should have an equivalent that takes a signal number
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43356> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43356] PyErr_SetInterrupt should have an equivalent that takes a signal number
Antoine Pitrou added the comment: New changeset ba251c2ae6654bfc8abd9d886b219698ad34ac3c by Antoine Pitrou in branch 'master': bpo-43356: Allow passing a signal number to interrupt_main() (GH-24755) https://github.com/python/cpython/commit/ba251c2ae6654bfc8abd9d886b219698ad34ac3c -- ___ Python tracker <https://bugs.python.org/issue43356> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43422] Revert _decimal C API changes
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +23559 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24792 ___ Python tracker <https://bugs.python.org/issue43422> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43406] Possible race condition between signal catching and signal.signal
Change by Antoine Pitrou : -- pull_requests: +23546 pull_request: https://github.com/python/cpython/pull/24755 ___ Python tracker <https://bugs.python.org/issue43406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41324] Add a minimal decimal capsule API
Antoine Pitrou added the comment: @mattip, see issue43422 -- assignee: skrah -> ___ Python tracker <https://bugs.python.org/issue41324> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41369] Update to libmpdec-2.5.1
Antoine Pitrou added the comment: Stefan wrote me that the changes which complete this update are here: https://github.com/python/cpython/compare/master...skrah:libmpdec-2.5.1 I can turn this diff into a PR but first I want to gather feedback here. Mark, Serhiy, Raymond, what do you say? -- assignee: skrah -> nosy: +facundobatista, mark.dickinson, pitrou, rhettinger, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue41369> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43422] Revert _decimal C API changes
New submission from Antoine Pitrou : Stefan Krah (who doesn't have access rights here, and is the author of the C _decimal module) asked me to transmit me this request: """ The capsule API does not meet my testing standards, since I've focused on the upstream mpdecimal in the last couple of months. Additionally, I'd like to refine the API, perhaps together with the Arrow community. """ The relevant diff is here: https://github.com/python/cpython/compare/master...skrah:revert_decimal_capsule_api I can turn it into a PR but first I'd like to gather reactions here. -- components: Extension Modules messages: 388205 nosy: facundobatista, mark.dickinson, pitrou, rhettinger, serhiy.storchaka priority: normal severity: normal status: open title: Revert _decimal C API changes type: behavior versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue43422> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43406] Possible race condition between signal catching and signal.signal
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43406] Possible race condition between signal catching and signal.signal
Change by Antoine Pitrou : -- pull_requests: +23534 pull_request: https://github.com/python/cpython/pull/24762 ___ Python tracker <https://bugs.python.org/issue43406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43406] Possible race condition between signal catching and signal.signal
Antoine Pitrou added the comment: New changeset 68245b7a1030287294c65c298975ab9026543fd2 by Antoine Pitrou in branch 'master': bpo-43406: Fix possible race condition where ``PyErr_CheckSignals`` tries to execute a non-Python signal handler (GH-24756) https://github.com/python/cpython/commit/68245b7a1030287294c65c298975ab9026543fd2 -- ___ Python tracker <https://bugs.python.org/issue43406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN
Antoine Pitrou added the comment: Turns out this didn't fix all possible situations. See bpo-43406 for an updated patch. -- ___ Python tracker <https://bugs.python.org/issue23395> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39169] TypeError: 'int' object is not callable if the signal handler is SIG_IGN
Change by Antoine Pitrou : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> Possible race condition between signal catching and signal.signal ___ Python tracker <https://bugs.python.org/issue39169> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43406] Possible race condition between signal catching and signal.signal
Change by Antoine Pitrou : -- nosy: +neologix ___ Python tracker <https://bugs.python.org/issue43406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43406] Possible race condition between signal catching and signal.signal
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +23527 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24756 ___ Python tracker <https://bugs.python.org/issue43406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43406] Possible race condition between signal catching and signal.signal
Antoine Pitrou added the comment: Here is a reproducer: https://gist.github.com/pitrou/e5a566e644730516b51de71145c5ea06 If you execute it, it will fail after a few iterations: sig 2 sig 2 sig 2 Traceback (most recent call last): File "/home/antoine/cpython/default/setinterrupt.py", line 30, in main() File "/home/antoine/cpython/default/setinterrupt.py", line 27, in main cycle_handlers(signum) File "/home/antoine/cpython/default/setinterrupt.py", line 19, in cycle_handlers signal.signal(signum, handler) File "/home/antoine/cpython/default/Lib/signal.py", line 48, in signal return _int_to_enum(handler, Handlers) File "/home/antoine/cpython/default/Lib/signal.py", line 30, in _int_to_enum return enum_klass(value) File "/home/antoine/cpython/default/Lib/enum.py", line 606, in __call__ return cls.__new__(cls, value) File "/home/antoine/cpython/default/Lib/enum.py", line 927, in __new__ ve_exc = ValueError("%r is not a valid %s" % (value, cls.__qualname__)) TypeError: 'int' object is not callable -- ___ Python tracker <https://bugs.python.org/issue43406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43406] Possible race condition between signal catching and signal.signal
New submission from Antoine Pitrou : We can receive signals (at the C level, in trip_signal() in signalmodule.c) while signal.signal is being called to modify the corresponding handler. Later when PyErr_CheckSignals() is called to handle the given signal, the handler may be a non-callable object and will raise a cryptic asynchronous exception. -- components: Interpreter Core, Library (Lib) messages: 388131 nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: Possible race condition between signal catching and signal.signal type: behavior versions: Python 3.10, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue43406> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43356] PyErr_SetInterrupt should have an equivalent that takes a signal number
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +23526 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24755 ___ Python tracker <https://bugs.python.org/issue43356> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43356] PyErr_SetInterrupt should have an equivalent that takes a signal number
Change by Antoine Pitrou : -- nosy: +neologix, vstinner ___ Python tracker <https://bugs.python.org/issue43356> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43060] Convert _decimal C API from pointer array to struct
Antoine Pitrou added the comment: I have no opinion about *adding* a struct, but we shouldn't remove the existing array of pointers, or this will needlessly break compatibility for existing users of the C API. -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue43060> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43356] PyErr_SetInterrupt should have an equivalent that takes a signal number
New submission from Antoine Pitrou : PyErr_SetInterrupt() is useful if you want to simulate the effect of a SIGINT. It would be helpful to provide a similar primitive for other signal numbers, e.g. `PyErr_SetInterruptEx(int signum)`. -- components: C API messages: 387877 nosy: pitrou priority: normal severity: normal status: open title: PyErr_SetInterrupt should have an equivalent that takes a signal number type: enhancement versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue43356> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack
Change by Antoine Pitrou : -- resolution: -> later stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue1152248> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack
Antoine Pitrou added the comment: I don't think so. -- ___ Python tracker <https://bugs.python.org/issue1152248> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43256] Document that PyErr_SetInterrupt is async-signal-safe
New submission from Antoine Pitrou : While this makes sense given the exposed functionality, the reader may be wary of calling PyErr_SetInterrupt from a C signal handler if it's not explicitly documented as signal-safe. -- assignee: docs@python components: C API, Documentation messages: 387234 nosy: docs@python, pablogsal, pitrou, vstinner priority: low severity: normal status: open title: Document that PyErr_SetInterrupt is async-signal-safe type: behavior versions: Python 3.10, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue43256> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1
Change by Antoine Pitrou : -- nosy: +aeros ___ Python tracker <https://bugs.python.org/issue41567> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40077] Convert static types to heap types: use PyType_FromSpec()
Antoine Pitrou added the comment: Thank you @erlendaasland ! -- components: +Extension Modules -C API, Subinterpreters nosy: +pitrou resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python.org/issue40077> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40077] Convert static types to heap types: use PyType_FromSpec()
Antoine Pitrou added the comment: Oops, sorry, I hadn't noticed this was a catch-all issue. Reopening. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker <https://bugs.python.org/issue40077> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42097] Python 3.7.9 logging/threading/fork hang
Change by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue42097> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41052] Opt out serialization/deserialization for heap type
Antoine Pitrou added the comment: At some point, pickle protocols 0 and 1 should be deprecated and slated for removal. Protocol 2 is 17 years ago already, and protocol 3 has become the default in Python 3. That would probably be a better use of contributor time than trying to make heap types compatible with those obsolete protocols. -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue41052> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41310] micro-optimization: increase our float parsing speed by Nx
Antoine Pitrou added the comment: FTR, no formal description of the algorithm seems to have been published, but the source code is amply commented: https://github.com/lemire/fast_double_parser/blob/master/include/fast_double_parser.h -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue41310> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41310] micro-optimization: increase our float parsing speed by Nx
Change by Antoine Pitrou : -- priority: normal -> low ___ Python tracker <https://bugs.python.org/issue41310> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42081] Consider fast_double_parser for faster str->double
Change by Antoine Pitrou : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> micro-optimization: increase our float parsing speed by Nx ___ Python tracker <https://bugs.python.org/issue42081> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42081] Consider fast_double_parser for faster str->double
Antoine Pitrou added the comment: Oh, thank you. -- ___ Python tracker <https://bugs.python.org/issue42081> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42081] Consider fast_double_parser for faster str->double
New submission from Antoine Pitrou : This is more of a "could be nice" entry if there are any interested core developers. A new algorithm and library was recently published for faster parsing of double numbers. It claims rigorous accuracy and the performance is impressive. The implementation is in C++ but it's really decorated C. It also seems simple enough that it can be reimplemented independently. https://github.com/lemire/fast_double_parser/ -- components: Interpreter Core messages: 378960 nosy: mark.dickinson, pitrou, tim.peters priority: low severity: normal status: open title: Consider fast_double_parser for faster str->double type: enhancement versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue42081> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37209] Add what's new entries for pickle enhancements
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37209> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37881] __text_signature__ parser doesn't handle globals in extension module
Change by Antoine Pitrou : -- nosy: +eric.snow ___ Python tracker <https://bugs.python.org/issue37881> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41066] Update documentation for Pathlib
Change by Antoine Pitrou : -- versions: -Python 3.7 ___ Python tracker <https://bugs.python.org/issue41066> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41066] Update documentation for Pathlib
Change by Antoine Pitrou : -- pull_requests: +20991 pull_request: https://github.com/python/cpython/pull/21864 ___ Python tracker <https://bugs.python.org/issue41066> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41066] Update documentation for Pathlib
Antoine Pitrou added the comment: New changeset 0eb9deb4a62e6d9daa82bc2f67d1075864ca8ece by Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) in branch 'master': bpo-41066: Update the comparison section for os vs pathlib (GH-21261) https://github.com/python/cpython/commit/0eb9deb4a62e6d9daa82bc2f67d1075864ca8ece -- ___ Python tracker <https://bugs.python.org/issue41066> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30155] Add ability to get tzinfo from a datetime instance in C API
Antoine Pitrou added the comment: > I'm going to rename this bug to focus only on issue #1. I think we can accept > a PR adding two new macros. I would suggest calling them: > - PyDateTime_DATE_GET_TZINFO > - PyDateTime_TIME_GET_TZINFO +1 for this. -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue30155> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39604] Document PyDateTimeAPI / PyDateTime_CAPI struct
Change by Antoine Pitrou : -- stage: -> needs patch type: -> behavior versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue39604> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41324] Add a minimal decimal capsule API
Antoine Pitrou added the comment: I probably won't try it out explicitly (it's basically cumbersome for us to test with non-release Pythons, because of our dependencies to Numpy and Cython), but reviewing the API should be enough anyway. -- ___ Python tracker <https://bugs.python.org/issue41324> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41208] An exploitable segmentation fault in marshal module
Change by Antoine Pitrou : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker <https://bugs.python.org/issue41208> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40874] Update to libmpdec-2.5.0
Antoine Pitrou added the comment: Thanks for the clarification. I agree this does not seem to be a very big deal, if slightly annoying for the packager who will have to deal with it. -- ___ Python tracker <https://bugs.python.org/issue40874> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40874] Update to libmpdec-2.5.0
Antoine Pitrou added the comment: Hmm, I'm only taking notice of this comment thread now. (sorry, but due to spam filtering issues I only receive bpo e-mail notifications intermittently... and that's despite having tried two separate e-mail providers which otherwise give me no problems :-/) In any case, I would have had a hard time giving a competent opinion on this issue. But I'm a bit saddened by how heated the discussion went. Hopefully this is all over. -- ___ Python tracker <https://bugs.python.org/issue40874> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41195] Interface to OpenSSL's security level
Antoine Pitrou added the comment: No strong feelings on this, but the OpenSSL runtime is not always packaged by a Linux distribution. (macOS, Windows and Anaconda come to mind) If one wants to retain the setter facility, one could raise a RuntimeWarning if the user *lowers* the actual security level. -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue41195> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29753] Ctypes Packing Bitfields Incorrectly - Linux
Change by Antoine Pitrou : -- versions: +Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue29753> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41115] Codecs should raise precise UnicodeDecodeError or UnicodeEncodeError
New submission from Antoine Pitrou : A number of codecs raise bare UnicodeError, rather than Unicode{Decode,Encode}Error. Example: File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/encodings/utf_16.py", line 67, in _buffer_decode raise UnicodeError("UTF-16 stream does not start with BOM") A more complete list can be found here: https://gist.github.com/pitrou/60594b28d8e47edcdb97d9b15d5f9866 -- components: Library (Lib) keywords: easy messages: 372367 nosy: benjamin.peterson, ezio.melotti, lemburg, pitrou, serhiy.storchaka, vstinner priority: normal severity: normal stage: needs patch status: open title: Codecs should raise precise UnicodeDecodeError or UnicodeEncodeError type: behavior versions: Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue41115> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15655] PEP 384 Refactoring applied to json module
Change by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker <https://bugs.python.org/issue15655> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40895] weakref documentation contains cautions about dictionary mutation problems that have been solved in the implementation
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue40895> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40895] weakref documentation contains cautions about dictionary mutation problems that have been solved in the implementation
Change by Antoine Pitrou : -- pull_requests: +19989 pull_request: https://github.com/python/cpython/pull/20793 ___ Python tracker <https://bugs.python.org/issue40895> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40895] weakref documentation contains cautions about dictionary mutation problems that have been solved in the implementation
Change by Antoine Pitrou : -- nosy: +pitrou nosy_count: 3.0 -> 4.0 pull_requests: +19988 pull_request: https://github.com/python/cpython/pull/20792 ___ Python tracker <https://bugs.python.org/issue40895> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22079] Ensure in PyType_Ready() that base class of static type is static
Antoine Pitrou added the comment: The workaround that Cython had to added for this (temporarily enable Py_TPFLAGS_HEAPTYPE when calling PyType_Ready()) is fragile. It would be nice to rethink the approach here, or disable the check altogether. (or perhaps, expose another C API function - such as PyType_ReadyEx() - that allows disabling the check) -- ___ Python tracker <https://bugs.python.org/issue22079> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue39435> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs
Change by Antoine Pitrou : -- pull_requests: +19162 pull_request: https://github.com/python/cpython/pull/19844 ___ Python tracker <https://bugs.python.org/issue39435> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs
Change by Antoine Pitrou : -- pull_requests: +19161 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19843 ___ Python tracker <https://bugs.python.org/issue39435> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32494] Use gdbm_count if possible
Antoine Pitrou added the comment: New changeset 8727664557cd44dcd00612ccba816942e8f885ab by Dong-hee Na in branch 'master': bpo-32494: Use gdbm_count for dbm_length if possible (GH-19814) https://github.com/python/cpython/commit/8727664557cd44dcd00612ccba816942e8f885ab -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue32494> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32494] Use gdbm_count if possible
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32494> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40399] IO streams locking can be broken after fork() with threads
Antoine Pitrou added the comment: The TextIOWrapper uses an underlying BufferedWriter, which is thread-safe (and therefore has an internal lock). -- ___ Python tracker <https://bugs.python.org/issue40399> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor
Antoine Pitrou added the comment: I looked at the change and it seemed ok to me. Perhaps Thomas can give it a look too. -- assignee: aeros -> vstinner ___ Python tracker <https://bugs.python.org/issue39995> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor
Antoine Pitrou added the comment: With the same traceback and error message? -- ___ Python tracker <https://bugs.python.org/issue39995> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6721] Locks in the standard library should be sanitized on fork
Antoine Pitrou added the comment: Related issue: https://bugs.python.org/issue40399 """ IO streams locking can be broken after fork() with threads """ -- ___ Python tracker <https://bugs.python.org/issue6721> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40399] IO streams locking can be broken after fork() with threads
Antoine Pitrou added the comment: Well, as the documentation states, `QueueListener.start` """starts up a background thread to monitor the queue for LogRecords to process""" :-) -- ___ Python tracker <https://bugs.python.org/issue40399> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40399] IO streams locking can be broken after fork() with threads
Antoine Pitrou added the comment: I can reproduce on Ubuntu 18.04 with git master. Here is a better example which clearly shows the issue: https://gist.github.com/pitrou/d9784d5ec679059cd02fce4b38ea2fa6 After a few runs, you'll see that the child Process hangs when trying to flush the standard streams: Timeout (0:00:01)! Thread 0x7efbff6c0080 (most recent call first): File "/home/antoine/cpython/default/Lib/multiprocessing/util.py", line 435 in _flush_std_streams File "/home/antoine/cpython/default/Lib/multiprocessing/process.py", line 335 in _bootstrap File "/home/antoine/cpython/default/Lib/multiprocessing/popen_fork.py", line 71 in _launch File "/home/antoine/cpython/default/Lib/multiprocessing/popen_fork.py", line 19 in __init__ File "/home/antoine/cpython/default/Lib/multiprocessing/context.py", line 276 in _Popen File "/home/antoine/cpython/default/Lib/multiprocessing/context.py", line 224 in _Popen File "/home/antoine/cpython/default/Lib/multiprocessing/process.py", line 121 in start File "/home/antoine/cpython/default/bpo40399.py", line 25 in Child process failed! @Delgan, mixing processes and threads is problematic with the default settings. See here: https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods """Note that safely forking a multithreaded process is problematic.""" If you call `multiprocessing.set_start_method("forkserver")` at the start of your program, the problem will disappear. -- nosy: +pitrou, vstinner title: Program hangs if process created right after adding object to a Queue -> IO streams locking can be broken after fork() with threads versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue40399> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor
Antoine Pitrou added the comment: How about the following (untested): diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py index 8e9b69a8f0..c0c2eb3032 100644 --- a/Lib/concurrent/futures/process.py +++ b/Lib/concurrent/futures/process.py @@ -66,23 +66,29 @@ _global_shutdown = False class _ThreadWakeup: def __init__(self): -self._closed = False self._reader, self._writer = mp.Pipe(duplex=False) def close(self): -if not self._closed: -self._closed = True -self._writer.close() -self._reader.close() +r, w = self._reader, self._writer +self._reader = self._writer = None +if r is not None: +r.close() +w.close() def wakeup(self): -if not self._closed: +try: self._writer.send_bytes(b"") +except AttributeError: +# Closed +pass def clear(self): -if not self._closed: +try: while self._reader.poll(): self._reader.recv_bytes() +except AttributeError: +# Closed +pass def _python_exit(): -- ___ Python tracker <https://bugs.python.org/issue39995> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40061] Possible refleak in _asynciomodule.c future_add_done_callback()
Antoine Pitrou added the comment: You're right that a Py_DECREF is missing there. However, it seems unlikely that this is triggering the test failure, because `PyList_New(1)` will practically never fail in normal conditions (and even making it deliberately fail would be quite difficult). -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue40061> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40402] Race condition in multiprocessing/connection.py: broken handle
Antoine Pitrou added the comment: I don't know if a try..except block is the best solution, but feel free to submit a PR and we can iterate on that :-) -- stage: -> needs patch ___ Python tracker <https://bugs.python.org/issue40402> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37790] subprocess.Popen() is extremely slow (with close_fds=True which is the default) on Illumos
Antoine Pitrou added the comment: I think we would accept a PR since it would probably be trivial, but someone has to submit it :-) -- ___ Python tracker <https://bugs.python.org/issue37790> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40346] Add random.BaseRandom to ease implementation of subclasses
Antoine Pitrou added the comment: If I believe what Victor wrote about: """ The implementation of random.Random, random.SystemRandom and random.Random subclasses are not affected by this change. """ then I don't understand how the API is changed. IIUC, users subclassing random.Random won't see a difference. However, users now can subclass BaseRandom which makes it easier to obtain a full-featured random generator class. However, if we want to think about a new subclassing API, it may be worth looking at the recent Numpy changes. Numpy added a new random generator API recently, with a design based on composition rather than inheritance (and also they switched from Mersenne Twister to another underlying PRNG!): https://numpy.org/doc/stable/reference/random/index.html -- ___ Python tracker <https://bugs.python.org/issue40346> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40358] pathlib's relative_to should behave like os.path.relpath
Antoine Pitrou added the comment: The current behaviour is by design. I would not mind adding an option to control it, though. If you are new to Python development and want to submit a patch or PR, I recommend reading the Developer's Guide: https://devguide.python.org/ -- ___ Python tracker <https://bugs.python.org/issue40358> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40346] Redesign random.Random class inheritance
Change by Antoine Pitrou : -- keywords: +patch nosy: +pitrou nosy_count: 1.0 -> 2.0 pull_requests: +18957 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19539 ___ Python tracker <https://bugs.python.org/issue40346> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40120] Undefined C behavior going beyond end of struct via a [1] arrays.
Antoine Pitrou added the comment: Another possibility yet would be: typedef struct { PyObject_VAR_HEAD Py_hash_t ob_shash; char ob_sval; } PyBytesObject; #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \ &(((PyBytesObject *)(op))->ob_sval)) Not sure whether that would be UB... -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue40120> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40330] ShareableList size guard incorrect for str data
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker <https://bugs.python.org/issue40330> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40330] ShareableList size guard incorrect for str data
Antoine Pitrou added the comment: New changeset 887ff8e37e238fbce18c647e588283904f38ab24 by Antoine Pitrou in branch '3.8': [3.8] bpo-40330: Fix utf-8 size check in ShareableList (GH-19606) (GH-19625) https://github.com/python/cpython/commit/887ff8e37e238fbce18c647e588283904f38ab24 -- ___ Python tracker <https://bugs.python.org/issue40330> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40330] ShareableList size guard incorrect for str data
Change by Antoine Pitrou : -- pull_requests: +18953 pull_request: https://github.com/python/cpython/pull/19625 ___ Python tracker <https://bugs.python.org/issue40330> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40255] Fixing Copy on Writes from reference counting
Antoine Pitrou added the comment: Wow. I see, thank you. -- ___ Python tracker <https://bugs.python.org/issue40255> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40255] Fixing Copy on Writes from reference counting
Antoine Pitrou added the comment: > We also have the real world app that is Instagram. I don't think Instagram is a single app. What is Python used for at Instagram? -- ___ Python tracker <https://bugs.python.org/issue40255> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40255] Fixing Copy on Writes from reference counting
Antoine Pitrou added the comment: > Benchmarking already showed that the branching version is faster. But micro-benchmarks may tell you things which are not true in the real-world (for example an easily-predicted branch). -- ___ Python tracker <https://bugs.python.org/issue40255> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40148] Add PurePath.with_stem()
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue40148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40148] Add PurePath.with_stem()
Antoine Pitrou added the comment: New changeset 8aea4b3605059e243f1827d9328d6fc8d698c0a7 by Tim Hoffmann in branch 'master': bpo-40148: Add PurePath.with_stem() (GH-19295) https://github.com/python/cpython/commit/8aea4b3605059e243f1827d9328d6fc8d698c0a7 -- ___ Python tracker <https://bugs.python.org/issue40148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40330] ShareableList size guard incorrect for str data
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +18940 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19606 ___ Python tracker <https://bugs.python.org/issue40330> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38891] ShareableList read and write access is O(N), should be O(1)
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue38891> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38891] ShareableList read and write access is O(N), should be O(1)
Antoine Pitrou added the comment: New changeset c8f1715283ec51822fb37a702bf253cbac1af276 by Thomas Krennwallner in branch 'master': bpo-38891: avoid quadratic item access performance of ShareableList (GH-18996) https://github.com/python/cpython/commit/c8f1715283ec51822fb37a702bf253cbac1af276 -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue38891> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40330] ShareableList size guard incorrect for str data
New submission from Antoine Pitrou : The size check is done before encoding to utf-8... -- ___ Python tracker <https://bugs.python.org/issue40330> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40330] ShareableList size guard incorrect for str data
Change by Antoine Pitrou : -- assignee: pitrou components: Library (Lib) nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: ShareableList size guard incorrect for str data type: behavior versions: Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue40330> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39207] concurrent.futures.ProcessPoolExecutor does not properly reap jobs and spawns too many workers
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39207> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39285> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38891] ShareableList read and write access is O(N), should be O(1)
Change by Antoine Pitrou : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue38891> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35306] OSError [WinError 123] when testing if pathlib.Path('*') (asterisks) exists
Change by Antoine Pitrou : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue35306> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33898] pathlib issues with Windows device paths
Change by Antoine Pitrou : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue33898> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39894] `pathlib.Path.samefile()` calls `os.stat()` without using accessor
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python.org/issue39894> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39894] `pathlib.Path.samefile()` calls `os.stat()` without using accessor
Antoine Pitrou added the comment: New changeset 5b1d9184bb0e34391637c06bc7651fb6de8a6240 by Barney Gale in branch 'master': bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accessor (GH-18836) https://github.com/python/cpython/commit/5b1d9184bb0e34391637c06bc7651fb6de8a6240 -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue39894> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39897] `pathlib.Path.is_mount()` calls `Path(self.parent)` and therefore misbehaves in `Path` subclasses
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python.org/issue39897> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39897] `pathlib.Path.is_mount()` calls `Path(self.parent)` and therefore misbehaves in `Path` subclasses
Antoine Pitrou added the comment: New changeset c746c4f353510a17683a49ed7f90ffaae664ff7b by Barney Gale in branch 'master': bpo-39897: Remove needless `Path(self.parent)` call, which makes `is_mount()` misbehave in `Path` subclasses. (GH-18839) https://github.com/python/cpython/commit/c746c4f353510a17683a49ed7f90ffaae664ff7b -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue39897> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40282] random.getrandbits(0) should succeed
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue40282> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40282] random.getrandbits(0) should succeed
Antoine Pitrou added the comment: New changeset 75a3378810bab03949ad9f653f78d933bdf3879c by Antoine Pitrou in branch 'master': bpo-40282: Allow random.getrandbits(0) (GH-19539) https://github.com/python/cpython/commit/75a3378810bab03949ad9f653f78d933bdf3879c -- ___ Python tracker <https://bugs.python.org/issue40282> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39901] `pathlib.Path.owner()` and `group()` use `pwd` and `grp` modules directly
Change by Antoine Pitrou : -- nosy: -pitrou resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python.org/issue39901> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39901] `pathlib.Path.owner()` and `group()` use `pwd` and `grp` modules directly
Antoine Pitrou added the comment: New changeset 22386bb4ef740ee92d34c87b8cb90d681423a853 by Barney Gale in branch 'master': bpo-39901: Move `pathlib.Path.owner()` and `group()` implementations into the path accessor. (GH-18844) https://github.com/python/cpython/commit/22386bb4ef740ee92d34c87b8cb90d681423a853 -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue39901> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40281] Add pathlib.PurePath.as_uri()
Antoine Pitrou added the comment: Hmm, it looks like I lost my head from 10 years ago :-S Sorry for the noise, everyone. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue40281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com