[issue45258] sysroot_paths in setup.py does not consider -isysroot for macOS

2021-09-21 Thread Isuru Fernando
Change by Isuru Fernando : -- keywords: +patch pull_requests: +26896 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28501 ___ Python tracker ___

[issue43976] Allow Python distributors to add custom site install schemes

2021-09-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: > In the short term, and possible for the long term, Debian can continue to > patch the install routine... The problem with this approach is Setuptools is attempting to adopt distutils by exposing its own vendored copy of distutils as `distutils`

[issue45246] the sorted() documentation should refer to operator

2021-09-21 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 5.0 -> 6.0 pull_requests: +26897 pull_request: https://github.com/python/cpython/pull/28502 ___ Python tracker ___

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 86f28372b17c8c56539e9543bea9f125ab11b8aa by Victor Stinner in branch 'main': bpo-45061: Detect refcount bug on empty string singleton (GH-28504) https://github.com/python/cpython/commit/86f28372b17c8c56539e9543bea9f125ab11b8aa --

[issue42260] [C API] Add _PyInterpreterState_SetConfig(): reconfigure an interpreter

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: The initial issue, adding an API to reconfigure an interepreter, is implemented: I added _PyInterpreterState_SetConfig(). But I failed finding time to finish the larger project "rewrite getpath.c in Python" (PR 23169). It requires changing the C API of the

[issue42641] Deprecate os.popen() function

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: It seems like they are legit use cases for os.popen(), so I abandon my idea of deprecating it. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45215] Add docs for Mock name and parent args and deprecation warning when wrong args are passed

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: Have you encountered misuse of Mock's `name` and `parent` in the wild? As you're saying, since `str()` and `repr()` will error out anyway, it's unlikely users were doing this in the first place. I'm a little hesitant to accept the deprecation since there are

[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: The PEP 620 is still a draft. I prefer to work on other C API changes before coming back to this change which may break many C extensions. I failed finding time to design an API to expose a PyObject** array "view" with a function to release/destroy the

[issue28977] Document PyObject_CallFunction() special case more explicitly

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: I don't know what to do with this old issue, so I prefer to simply close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue29312] Use FASTCALL in dict.update()

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: It seems like using FASTCALL would make the code slower, not faster. I close this old issue. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: ResourceWarning is no longer emitted. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36437] method_descriptor surprising error message when self is passed a keyword argument

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44416] test_threading: test_print_exception() hangs and killed after 3h15 on AMD64 Windows8.1 Refleaks 3.9

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently. I close the issue as out of date. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue44358] AMD64 RHEL8 LTO + PGO 3.x build failed with: /usr/bin/ld: Dwarf Error: Offset (2487097600) greater than or equal to .debug_str size (571933).

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: > I reported the compiler bug to RHEL: > https://bugzilla.redhat.com/show_bug.cgi?id=1969775 I close the issue. It's now tracked at https://bugzilla.redhat.com/show_bug.cgi?id=1969775 -- resolution: -> third party stage: -> resolved status: open

[issue45259] No _heappush_max()

2021-09-21 Thread Thomas
Change by Thomas : -- versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue44531] Add _PyType_AllocNoTrack() function: allocate without tracking in the GC

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

[issue45020] Freeze all modules imported during startup.

2021-09-21 Thread Guido van Rossum
Guido van Rossum added the comment: I'm still torn about the need for a __file__ attribute. Assuming it's more likely that people write code that *reads* stdlib source for some reason (maybe printing more context for error messages) than *writing* it (which would be truly strange), the

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +26905 pull_request: https://github.com/python/cpython/pull/28508 ___ Python tracker ___

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b7eac52b466f697d3e89f47508e0df0196a98970 by andrei kulakov in branch 'main': bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421)

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b7eac52b466f697d3e89f47508e0df0196a98970 by andrei kulakov in branch 'main': bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421)

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +26903 pull_request: https://github.com/python/cpython/pull/28507 ___ Python tracker ___

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26902 pull_request: https://github.com/python/cpython/pull/28507 ___ Python tracker

[issue45216] Remove redundant information from difflib docstrings

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e6b6c1d23b3702052637f70551451d12695403a1 by Miss Islington (bot) in branch '3.10': bpo-45216: Remove extraneous method docs from `difflib` (GH-28445) (GH-28505) https://github.com/python/cpython/commit/e6b6c1d23b3702052637f70551451d12695403a1

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +26904 pull_request: https://github.com/python/cpython/pull/28508 ___ Python tracker ___

[issue44807] typing.Protocol silently overrides __init__ method of delivered class

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: Marking issue as "pending" until we figure out how PEP 544 should be amended. -- status: open -> pending ___ Python tracker ___

[issue27069] webbrowser creates zombi processes in the background mode

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: Python 3.6 was released 5 years ago. Nobody complained about ResourceWarning. While it would be nice to fix the issue, nobody managed to write a fix in 5 years and this issue has no activity for 3 years. I close the issue. -- resolution: -> out of

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 41d48bc038b254cc4a78a2d840097196b9545a84 by Miss Islington (bot) in branch '3.10': bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28508)

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 41d48bc038b254cc4a78a2d840097196b9545a84 by Miss Islington (bot) in branch '3.10': bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28508)

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: Pablo, this regression was fixed in GH-28508 which should go into 3.10.0. -- nosy: +pablogsal priority: normal -> release blocker ___ Python tracker

[issue44807] typing.Protocol silently overrides __init__ method of delivered class

2021-09-21 Thread Guido van Rossum
Guido van Rossum added the comment: I wonder if part of the problem here isn't that protocols are primarily focused on instances, where the __init__ method is explicitly *not* considered part of the type. IIRC supporting protocols for classes was an afterthought. That said you have made a

[issue40503] PEP 615: Add zoneinfo module

2021-09-21 Thread Steve Dower
Steve Dower added the comment: I meant I don't think we want that path upstream, and you should keep it as your own patch. We don't have a "share" directory as part of CPython, but this would codify it. That would then conflict with your use of it in conda-forge. It also makes sysconfig

[issue40503] PEP 615: Add zoneinfo module

2021-09-21 Thread Steve Dower
Steve Dower added the comment: We'd need to implement some form of data store for values on Windows, which currently are not compiled in anywhere, and it would need a substitution syntax to be updated at runtime. We're talking a big feature now, and you'd end up having just as much code on

[issue39947] [C API] Make the PyThreadState structure opaque (move it to the internal C API)

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: See bpo-43760 and PR 28498 for a discussion about the PyThreadState.use_tracing member. -- ___ Python tracker ___

[issue40989] [C API] Remove _Py_NewReference() and _Py_ForgetReference() from the public C API

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: I still consider that these functions must be moved to the internal C API. But I failed to find time to design a *public* C API for that, or help projects using these functions to avoid it. I prefer to close the isseu for now. -- resolution: ->

[issue45216] Remove redundant information from difflib docstrings

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset df1006b561f9dca5a15af98d54f0337a75b69445 by Miss Islington (bot) in branch '3.9': bpo-45216: Remove extraneous method docs from `difflib` (GH-28445) (GH-28506) https://github.com/python/cpython/commit/df1006b561f9dca5a15af98d54f0337a75b69445

[issue35276] Document thread safety

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: It would be nice to document thread safety, but it's a large project. Maybe the Documentation Working Group could look into this issue. But nobody managed to write the doc in 3 years, I prefer to close the issue. -- resolution: -> rejected stage:

[issue45257] Compiling 3.8 branch on Windows attempts to use incompatible libffi version

2021-09-21 Thread William Proffitt
William Proffitt added the comment: Ah yes, thank you Steve. I see the commit you're referencing is the cherry pick from upstream onto the 3.8 branch, but it's newer than the tag 3.8.12 I was using. Looks like I won't have to do anything if I wait until 3.8.13 before doing this again. This

[issue45209] multiprocessing tests log: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown

2021-09-21 Thread miss-islington
miss-islington added the comment: New changeset 09e5016f8bb07beb7d780df221febac2d2867ad0 by Miss Islington (bot) in branch '3.10': bpo-45209: fix `UserWarning: resource_tracker` in test_multiprocessing (GH-28377)

[issue45026] More compact range iterator

2021-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: length_hint(), not len(). Its cost is included in microbenchmark for list(), where it is followed by iterating 2000 items. Calling operator.length_hint() in Python: $ ./python -m pyperf timeit -s 'it = iter(range(1000)); from operator import length_hint'

[issue45026] More compact range iterator

2021-09-21 Thread Guido van Rossum
Guido van Rossum added the comment: May the best PR win. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45255] sqlite3.connect() should check if the sqlite file exists and throw a FileNotFoundError if it doesn't

2021-09-21 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45255] sqlite3.connect() should check if the sqlite file exists and throw a FileNotFoundError if it doesn't

2021-09-21 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Could it instead throw a FileNotFoundError if the db simply doesn't exist at > the specified path? We pass the database path pretty much straight to sqlite3_open_v2(), via the os.PathLike interface, so any errors we get come straight from SQLite (apart

[issue15373] copy.copy() does not properly copy os.environment

2021-09-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: I guess the easy way to test it would be to modify the copy and check os.environ, but still there would be some uncertainty if it's consistent across platforms and python versions, if it's expected to still work in future python versions, etc. asdict()

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: I don't want to add a deallocator to bytes and int types to detect when their singleton is destroyed, since it would slow down C extensions which have no refcount bug. Maybe it could be added only if Py_DEBUG macro is defined. But I don't think that

[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: There is no consensus on changing things, so I just close my issue. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37475] What is urllib.request.urlcleanup() function?

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34090] Python function call optimization: avoid temporary tuple to pass **kwargs

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: No activity for 2 years, I close the issue. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38199] python3.8-config --ldflags must not generate -L/usr/lib64

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45258] sysroot_paths in setup.py does not consider -isysroot for macOS

2021-09-21 Thread Isuru Fernando
New submission from Isuru Fernando : It only looks at --sysroot which is Linux specific -- components: Build messages: 402338 nosy: FFY00, isuruf priority: normal severity: normal status: open title: sysroot_paths in setup.py does not consider -isysroot for macOS versions: Python 3.11

[issue45259] No _heappush_max()

2021-09-21 Thread Thomas
New submission from Thomas : There is no heappush function for a max heap when the other supporting helper functions are already implemented (_siftdown_max()) -- components: Library (Lib) messages: 402351 nosy: ThomasLee94 priority: normal severity: normal status: open title: No

[issue40503] PEP 615: Add zoneinfo module

2021-09-21 Thread Isuru Fernando
Isuru Fernando added the comment: Do you have a suggestion for how to make it configurable at compile time? In POSIX platforms, we can set `--with-tzpath` to make it configurable at compile time. -- ___ Python tracker

[issue40453] [subinterpreters] Add PyConfig._isolated_interpreter: isolated subinterpreters

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

[issue44807] typing.Protocol silently overrides __init__ method of delivered class

2021-09-21 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: Łukasz this issue is my original finding. I have found this case when I was working on another issue that was related to `typing.Protocol`. I agree that we can leave it as it is for now because I didn't find any information from python

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-09-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, just to clarify, I also opened PR 28498 to discuss the possibility of going ahead, I still don't want to move on without consensus. -- ___ Python tracker

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26898 pull_request: https://github.com/python/cpython/pull/28503 ___ Python tracker ___

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-09-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, I personally thing there is absolutely no guarantee that Cython code generated for 3.9 should work for 3.10 and the thread state is a private structure that has undocumented fields and is not part of the stable API nor the limited API so,

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 79a31480992c3fa5890fc7a6c5d9af6d337d5844 by Victor Stinner in branch 'main': bpo-45061: Detect refcount bug on empty tuple singleton (GH-28503) https://github.com/python/cpython/commit/79a31480992c3fa5890fc7a6c5d9af6d337d5844 --

[issue45061] [C API] Detect refcount bugs on True/False in C extensions

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26899 pull_request: https://github.com/python/cpython/pull/28504 ___ Python tracker ___

[issue45041] [sqlite3] simplify executescript()

2021-09-21 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26906 pull_request: https://github.com/python/cpython/pull/28509 ___ Python tracker ___

[issue42671] Make the Python finalization more deterministic

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: I'm not really excited about breaking applications. While there is maybe a way to make the Python finalization more determistic, sorry, I'm not the one who will be brave enough to do it today. I abandon my idea for now. -- resolution: -> rejected

[issue43770] Rework C types initialization

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: The code is way more complicated than what I expected. I hope that my work on this issue will help future developers who will try to understand the code. But I prefer to stop the refactoring at this point. I pushed enough changes ;-) -- resolution:

[issue29502] Should PyObject_Call() call the profiler on C functions, use C_TRACE() macro?

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: This issue has no activity for 3 years and was created 4 years ago. I close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue38620] Shell python-config --includes returns the same path twice

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44203] test__xxsubinterpreters: heap-buffer-overflow in interp_is_running() on AMD64 Arch Linux Asan 3.x

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: On the latest build 564, there is no more error: 0:17:51 load avg: 2.50 [169/421] test__xxsubinterpreters passed -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue45246] the sorted() documentation should refer to operator

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0d41bf15702832540afc1b1c078bc4fde5baebd6 by Łukasz Langa in branch '3.10': [3.10] bpo-45246: Document that sorted() only uses "<" comparisons (GH-28494) (GH-28502) https://github.com/python/cpython/commit/0d41bf15702832540afc1b1c078bc4fde5baebd6

[issue15373] copy.copy() does not properly copy os.environment

2021-09-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: I think the advantage of asdict() method is it's more discoverable and it doesn't leave any uncertainty of whether returned value will update environment or not. If a user sees `dict(os.environ)` in code, they may wonder if it does or does not; and there's

[issue45216] Remove redundant information from difflib docstrings

2021-09-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26900 pull_request: https://github.com/python/cpython/pull/28505 ___ Python tracker

[issue45216] Remove redundant information from difflib docstrings

2021-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +26901 pull_request: https://github.com/python/cpython/pull/28506 ___ Python tracker ___

[issue45259] No _heappush_max()

2021-09-21 Thread Thomas
Change by Thomas : -- nosy: +rhettinger, stutzbach -ThomasLee94 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44807] typing.Protocol silently overrides __init__ method of delivered class

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: Yurri, is the issue you reported your original finding? If you haven't found this issue in the wild, we might want to let this be as-is until we specify exactly whether `__init__()` should be considered part of a protocol. --

[issue42648] subprocess: add a helper/parameter to catch exec() OSError exception

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: I failed finding time to finish to design this feature. I'm not convinced that it's really needed. I abandoned my idea of deprecating os.popen(): bpo-42641. I close the issue. -- resolution: -> rejected stage: patch review -> resolved status: open

[issue45216] Remove redundant information from difflib docstrings

2021-09-21 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker ___

[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: While it would be great to also emit ResourceWarning, in the last 8 years, nobody managed to implement the feature. Also, this issue has no activity. I prefer to close the issue. -- resolution: -> out of date stage: needs patch -> resolved status:

[issue35478] multiprocessing: ApplyResult.get() hangs if the pool is terminated

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35333] [C API] Rename private structs to use names closer to types

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35479] multiprocessing.Pool.join() always takes at least 100 ms

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: Nobody managed to find a solution in 3 years. I close the issue. -- dependencies: -multiprocessing.Pool._worker_handler(): use SIGCHLD to be notified on worker exit, multiprocessing: ApplyResult.get() hangs if the pool is terminated resolution: ->

[issue36136] Windows: python._pth sets isolated mode late during Python initialization

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44958] [sqlite3] only reset statements when needed

2021-09-21 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Now that pysqlite_statement_reset() is only used in cursor.c, I suggest to > move it to cursor.c and make it a static function. I'll wait until PR 25984 is merged before opening a PR for relocating pysqlite_statement_reset(). --

[issue45209] multiprocessing tests log: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks Nikita Sobolev for the fix. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue44480] test_compile killed by signal 9 on AMD64 FreeBSD Non-Debug 3.x

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue45209] multiprocessing tests log: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 65268ab849173e9849b7fc94c3d73900b5410444 by Miss Islington (bot) in branch '3.9': bpo-45209: fix `UserWarning: resource_tracker` in test_multiprocessing (GH-28377) (GH-28500)

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-09-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >From PR 28498: @vstinner @ambv The ABI is not broken, the only thing that this PR change is the size of the struct. All the offsets to the members are the same and therefore will be valid in any compiled code. Any compiled wheels will still work.

[issue15373] copy.copy() does not properly copy os.environment

2021-09-21 Thread Anton Barkovsky
Change by Anton Barkovsky : -- nosy: -anton.barkovsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45216] Remove redundant information from difflib docstrings

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 06e1773c8d8fe375423bb7fcf5922b49bc737b75 by Nikita Sobolev in branch 'main': bpo-45216: Remove extraneous method docs from `difflib` (GH-28445) https://github.com/python/cpython/commit/06e1773c8d8fe375423bb7fcf5922b49bc737b75 -- nosy:

[issue45035] sysconfig's posix_home scheme has different platlib value to distutils's unix_home

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: Should we simply close the issue and leave distutils as it is? -- ___ Python tracker ___ ___

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 09390c837a0bf73e213db2fbde34d756fa77a837 by Miss Islington (bot) in branch '3.9': bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28507)

[issue32085] [Security] A New Era of SSRF - Exploiting URL Parser in Trending Programming Languages!

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: No activity for 3 years, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33793] asyncio: _ProactorReadPipeTransport reads by chunk of 32 KiB: chunk size should be configurable

2021-09-21 Thread STINNER Victor
STINNER Victor added the comment: Nobody implemented the feature. I prefer to abandon my idea. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue45234] copy_file raises FileNotFoundError when src is a directory

2021-09-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 09390c837a0bf73e213db2fbde34d756fa77a837 by Miss Islington (bot) in branch '3.9': bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28507)

[issue29811] Avoid temporary method object in PyObject_CallMethod() and PyObject_CallMethodObjArgs()

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38564] test_asyncio: test_run_coroutine_threadsafe_with_timeout() has a race condition

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45259] No _heappush_max()

2021-09-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: The underscore functions are private and for internal use. There is no _heappush_max() because we didn't need it internally and it would just be dead code. Thanks for the report. -- resolution: -> not a bug stage: -> resolved status: open ->

[issue45215] Add docs for Mock name and parent args and deprecation warning when wrong args are passed

2021-09-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: Łukasz: For parent, there's this issue: #39222 (which is why I started looking into this). For name, I couldn't find anything here or on SO, but it's hard to search for this because keywords 'mock argument name' on SO finds over 700 results but they're

[issue45258] sysroot_paths in setup.py does not consider -isysroot for macOS

2021-09-21 Thread Ned Deily
Ned Deily added the comment: See my comment on the PR. -- components: +macOS -Build nosy: +ned.deily, ronaldoussoren ___ Python tracker ___

[issue41266] IDLE call hints and completions confused by ints and floats

2021-09-21 Thread wyz23x2
wyz23x2 added the comment: Ping. >>> from datetime import datetime as d >>> d(2021, 9, 22)-d(2020, 7, 10) datetime.timedelta(days=439) -- ___ Python tracker ___

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-21 Thread Ma Lin
Ma Lin added the comment: PR28475: 64-bit build is 1.03x slower than 28d28e0~1 32-bit build is 1.04x slower than 28d28e0~1 28d28e0~1 is the last good commit. -- ___ Python tracker

[issue45254] HAS_SHMEM detection logic is duplicated in implementation and tests

2021-09-21 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +26883 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28487 ___ Python tracker ___

[issue45251] signal.SIGCLD alias is not available on OSX

2021-09-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The documentation for the SIG* constants also mentions: SIG* All the signal numbers are defined symbolically. For example, the hangup signal is defined as signal.SIGHUP; the variable names are identical to the names used in C programs, as found in .

[issue45176] Many regtest failures on Windows with non-ASCII account name

2021-09-21 Thread Ming Hua
Ming Hua added the comment: Steve Dower (steve.dower) posted: > I'd guess that these tests are assuming that sys.executable contains only > ASCII characters. All the tests run in a non-ASCII working directory, so it's > only the runtime that is not tested propersy here. > > The easiest way

  1   2   >