[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2021-10-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Special method lookup fails on uninitialized types ___ Python tracker

[issue34708] Odd crashes/freezes when sys.stdout.shell.console is typed

2021-10-18 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue32966] Python 3.7.2 - 0x80070643 - Fatal Error during installation

2021-10-18 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44372] Can't install Python3.8, 3.9, 3.10 various errors including 0x80070643

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Closing as it's not clear what the issue is and there was no reply to follow-up questions. Please create a new issue if you can provide more information. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2021-10-18 Thread Steve Dower
Steve Dower added the comment: Affects distutils, which is deprecated and won't be getting any more fixes. I've migrated it to https://github.com/pypa/distutils/issues/63 -- resolution: -> out of date stage: -> resolved status: open -> closed

[issue34290] _ctypes PyCField_new doesn't do anything

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: What is the bug you are reporting? -- nosy: +iritkatriel type: crash -> ___ Python tracker ___

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This doesn't seem right, given that PEP 663 has not been approved by the SC yet: 3.9.7 (default, Oct 13 2021, 06:45:31) [Clang 13.0.0 (clang-1300.0.29.3)] ABC.a ABC.b ABC.c ABC.a |main=|@presto[~/projects/python/cpython:1058]% python3.10 /tmp/foo.py

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-18 Thread Ethan Furman
Ethan Furman added the comment: Enum was reverted at the last minute for 3.10. I would like to keep the changes in 3.11 so they get more exposure. I have asked the SC a few times for thoughts about PEP 663, including whether an information PEP needs formal approval, but still haven't heard

[issue45520] Frozen dataclass deep copy doesn't work with __slots__

2021-10-18 Thread Christina Gorbenko
New submission from Christina Gorbenko : If you define a frozen dataclass with slots and deep copy it, an error will occur. If you run the same code and remove the slots, the error will not occur. I assume this behavior is not intentional? Apologies if I'm submitting this wrong, this is the

[issue38354] Fix for bug 30378 regressed SysLogHandler by making it resolve addresses at initialization instead of in `.emit()`

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. Changing type because crash typically refers to segfault or hang in the interpreter rather than a valid exception. -- nosy: +iritkatriel type: crash -> behavior versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8

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

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27315 pull_request: https://github.com/python/cpython/pull/29044 ___ Python tracker ___

[issue45336] Issue with xml.tree.ElementTree.write

2021-10-18 Thread Andrei Kulakov
Andrei Kulakov added the comment: Ed: something looks a bit odd with the call to `write()` that you used: > rte_ecu_tree.write(rtexmlFile, encoding="UTF-8", xml_declaration="True", > default_namespace="None" method="xml",short_empty_elements="True" ) Note that default val for

[issue45521] obmalloc radix tree typo in code

2021-10-18 Thread Neil Schemenauer
Change by Neil Schemenauer : -- keywords: +patch pull_requests: +27322 pull_request: https://github.com/python/cpython/pull/29051 ___ Python tracker ___

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
New submission from Gregory P. Smith : The behavior is odd, I don't really know how to characterize it other than something serious has gone wrong. Memory corruption thus differing failures perhaps? it seems like maybe a race condition? on the main branch (i cannot reproduce this on 3.10

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: for easy pasting: git clone https://github.com/python/cpython.git upstream && \ mkdir b-u && cd b-u && \ ../upstream/configure --with-pydebug && make -j3 && \ ./python -m test.regrtest test_importlib [change python to python.exe for macos, adjust -j as

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-10-18 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 1.0 -> 2.0 pull_requests: +27295 pull_request: https://github.com/python/cpython/pull/29015 ___ Python tracker ___

[issue45507] Small oversight in 3.11 gzip.decompress implementation with regards to backwards compatibility

2021-10-18 Thread Ruben Vorderman
New submission from Ruben Vorderman : A 'struct.error: unpack requires a buffer of 8 bytes' is thrown when a gzip trailer is truncated instead of an EOFError such as in the 3.10 and prior releases. -- components: Library (Lib) messages: 404165 nosy: rhpvorderman priority: normal

[issue45020] Freeze all modules imported during startup.

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: could changes related to this be the cause of https://bugs.python.org/issue45506 ? out of tree builds in main usually cannot pass key tests today. they often hang or blow up with strange exceptions. -- nosy: +gregory.p.smith

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-18 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: PyPy raises a RecursionError here, which sounds like an ok outcome. So simply checking for the recursion would also be a way of fixing this... -- nosy: +Carl.Friedrich.Bolz ___ Python tracker

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: Oh yeah -- Py_EnterRecursiveCall/Py_LeaveRecursiveCall in abstract_get_bases would be simpler. Also, the set approach also probably still c-stack overflows on class C: def __getattr__(self, attr): class A: pass class B: pass

[issue44926] [DOC] typing.get_type_hints() raises for type aliases with forward references

2021-10-18 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation nosy: +docs@python resolution: -> fixed stage: patch review -> resolved status: open -> closed title: typing.get_type_hints() raises for type aliases with forward references -> [DOC]

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: further down in the tracebacks in that situation: ``` File "/Users/greg/oss/python/upstream/Lib/importlib/_bootstrap.py", line 887, in _fix_up_module assert module.__file__ == __file__, (module.__file__, __file__)

[issue42222] Modernize integer test/conversion in randrange()

2021-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27294 pull_request: https://github.com/python/cpython/pull/29021 ___ Python tracker ___

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

2021-10-18 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset fd03917786a9036ee87b7df604dfb260cc2420c9 by Dong-hee Na in branch 'main': bpo-45434: Include stdlib.h for specialize stat (GH-29015) https://github.com/python/cpython/commit/fd03917786a9036ee87b7df604dfb260cc2420c9 --

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

2021-10-18 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35799] fix or remove smtpd.PureProxy

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: The whole smtpd is now deprecated for removal in 3.12. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue45507] Small oversight in 3.11 gzip.decompress implementation with regards to backwards compatibility

2021-10-18 Thread Ruben Vorderman
Change by Ruben Vorderman : -- keywords: +patch pull_requests: +27296 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29023 ___ Python tracker ___

[issue37295] Possible optimizations for math.comb()

2021-10-18 Thread Marco Cognetta
Change by Marco Cognetta : -- keywords: +patch nosy: +mcognetta nosy_count: 6.0 -> 7.0 pull_requests: +27293 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29020 ___ Python tracker

[issue45507] Small oversight in 3.11 gzip.decompress implementation with regards to backwards compatibility

2021-10-18 Thread Ruben Vorderman
Change by Ruben Vorderman : -- pull_requests: +27301 pull_request: https://github.com/python/cpython/pull/29029 ___ Python tracker ___

[issue26387] Crash calling sqlite3_close with invalid pointer

2021-10-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI: We've been using sqlite3_close_v2(), when available, since 2017 (see 86a670543ff97d52fd9b8ca0477f8b6d27ee946d), but we now call it with GIL held. I'm leaning towards closing this as out-of-date. There is no reproducer, there has been no more similar

[issue26387] Crash calling sqlite3_close with invalid pointer

2021-10-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: >From https://sqlite.org/c3ref/close.html: If sqlite3_close_v2() is called with unfinalized prepared statements, unclosed BLOB handlers, and/or unfinished sqlite3_backups, it returns SQLITE_OK regardless, but instead of deallocating the database

[issue45509] Gzip header corruption not properly checked.

2021-10-18 Thread Ruben Vorderman
Change by Ruben Vorderman : -- keywords: +patch pull_requests: +27300 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29028 ___ Python tracker ___

[issue45511] input() method limited to 4095 characters on *NIX

2021-10-18 Thread Romuald Brunet
New submission from Romuald Brunet : When run in non-interactive mode and with a TTY stdin, the input() method will not read more than 4095 characters Simple example: >>> foo = input() # paste a 5000 character pasteboard (one line) >>> print(len(foo)) 4095 Note that this will **not**

[issue26143] Ensure that IDLE's stdlib imports are from the stdlib

2021-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was CC-ed on a response to a user who reported module shadowing as a security issue. If it is disabled by default, we could add an option to enable for intentional experiments. See idle.py. -- ___ Python

[issue26143] Ensure that IDLE's stdlib imports are from the stdlib

2021-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe standard interpreter only adds '' to path after its startup. But it might be vulnerable to shadowing of delayed imports. -- ___ Python tracker

[issue45508] Specialize INPLACE_ADD

2021-10-18 Thread Dennis Sweeney
New submission from Dennis Sweeney : I ran on WSL with PGO and got "1.00x faster": https://gist.github.com/sweeneyde/41a76356e875e2a98d16ce5410ab41c0 My benchmarking doesn't seem particularly reliable, so someone else should probably verify. Great specialization stats, except for telco,

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

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___

[issue30774] list_repr not safe against concurrent mutation

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45460] distutils.sysconfig.get_python_lib() does not respect sysconfig/distutils install schemes

2021-10-18 Thread Lumír Balhar
Change by Lumír Balhar : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: > * Cython: https://github.com/cython/cython/pull/4411 Merged: * 0.29.x: https://github.com/cython/cython/commit/cbddad23e30ea6d31e0178a4c623f1f6d75452c3 * master: https://github.com/cython/cython/commit/4df1103bd30143ce022b07f98a2f62678d417e92 --

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

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

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: git bisect on Linux yielded this culprit change: ``` 79cf20e48d0b5d69d9fac2a0204b5ac2c366066a is the first bad commit commit 79cf20e48d0b5d69d9fac2a0204b5ac2c366066a Author: Eric Snow Date: Thu Oct 14 15:32:18 2021 -0600 bpo-21736: Set __file__ on

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

2021-10-18 Thread Thomas Wouters
Thomas Wouters added the comment: Victor, what's the benefit of doing this work? Are there real problems this fixes? I'm worried about the churn in third-party extensions, examples, tutorials, etc, especially for audiences that upon seeing a compiler error won't immediately realise they

[issue32291] Value error for string shared memory in multiprocessing

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32291] Value error for string shared memory in multiprocessing

2021-10-18 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45510] Specialize BINARY_SUBTRACT

2021-10-18 Thread Dong-hee Na
New submission from Dong-hee Na : https://github.com/faster-cpython/ideas/issues/100 -- messages: 404176 nosy: corona10 priority: normal severity: normal status: open title: Specialize BINARY_SUBTRACT type: performance versions: Python 3.11 ___

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-18 Thread Mark Shannon
Mark Shannon added the comment: New changeset 70945d57e775b335eb58b734d82e68484063e835 by Mark Shannon in branch 'main': bpo-45256: Avoid C calls for most Python to Python calls. (GH-28937) https://github.com/python/cpython/commit/70945d57e775b335eb58b734d82e68484063e835 --

[issue21736] Add __file__ attribute to frozen modules

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: That appears to have caused https://bugs.python.org/issue45506 -- nosy: +gregory.p.smith ___ Python tracker ___

[issue45507] Small oversight in 3.11 gzip.decompress implementation with regards to backwards compatibility

2021-10-18 Thread Ruben Vorderman
Ruben Vorderman added the comment: It turns out there is a bug where FNAME and/or FCOMMENT flags are set in the header, but no error is thrown when NAME and COMMENT fields are missing. -- ___ Python tracker

[issue45508] Specialize INPLACE_ADD

2021-10-18 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +27297 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29024 ___ Python tracker ___

[issue45413] Add install scheme for virtual environments

2021-10-18 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45509] Gzip header corruption not properly checked.

2021-10-18 Thread Ruben Vorderman
New submission from Ruben Vorderman : The following headers are currently allowed while being wrong: - Headers with FCOMMENT flag set, but with incomplete or missing COMMENT bytes. - Headers with FNAME flag set, but with incomplete or missing NAME bytes - Headers with FHCRC set, the crc is

[issue45420] Python 3.10 final installation failure

2021-10-18 Thread Steve Dower
Steve Dower added the comment: It's not really complicated, it's just a little difficult to find the right files you need. > Running from the Add Remove Programs entry prompts for admin access. Which clearly shows it was previously installed by an admin, and so you'll need that to

[issue45510] Specialize BINARY_SUBTRACT

2021-10-18 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +27299 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29010 ___ Python tracker ___

[issue44191] Getting an ImportError DLL load failed while importing _ssl

2021-10-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Eric Snow
Eric Snow added the comment: I'm looking into it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45221] Linker flags starting with -h breaks setup.py (regression)

2021-10-18 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 1.0 -> 2.0 pull_requests: +27303 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29031 ___ Python tracker

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

2021-10-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27304 pull_request: https://github.com/python/cpython/pull/29032 ___ Python tracker ___

[issue45452] Support crash tolerance feature for gdbm module

2021-10-18 Thread Dong-hee Na
Dong-hee Na added the comment: @serhiy what is the main concern about this feature? -- ___ Python tracker ___ ___ Python-bugs-list

[issue45452] Support crash tolerance feature for gdbm module

2021-10-18 Thread Dong-hee Na
Dong-hee Na added the comment: if you think that this feature is not usable, I will let gdbms maintainers write the idea to the Python-dev mailing list if they want to enable this feature. -- ___ Python tracker

[issue45221] Linker flags starting with -h breaks setup.py (regression)

2021-10-18 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45512] [sqlite3] simplify "isolation level"

2021-10-18 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : While working on bpo-45126 / GH-28227 (and while working on the AC conversion, bpo-40956), I've been slightly frustrated on the implementation of sqlite3 "isolation level". The code is messy, and we've got two connection members that carry pretty much

[issue37295] Possible optimizations for math.comb()

2021-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27302 pull_request: https://github.com/python/cpython/pull/29030 ___ Python tracker ___

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

2021-10-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: +1! See also bpo-43502 -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list

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

2021-10-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Previous discussion on Discourse: https://discuss.python.org/t/what-to-do-with-unsafe-macros/7771 -- ___ Python tracker ___

[issue45330] dulwich_log performance regression in 3.10

2021-10-18 Thread Ken Jin
Ken Jin added the comment: Considering both Inada-san and I can't repro this on Linux and Windows respectively, I'm closing this and blaming code placement or some magic. Thanks everyone. -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue37295] Possible optimizations for math.comb()

2021-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is more optimized PR inspired by PR 29020. It would be too long to explain how PR 29020 can be improved, so I write a new PR. Basically it implements Raymond's idea #1, but supports n>62 for smaller k. How to calculate limits: import math n = m =

[issue45513] PIP error Cannot call rmtree on a symbolic link should report the lilnk

2021-10-18 Thread Timothe Litt
New submission from Timothe Litt : Debugging this would be a whole lot easier if the symlink in question was in the error message... (Not to mention that "successfully uninstalled the installer followed by why the new one can't be installed isn't a good thing) pip3 install --upgrade pip

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Eric Snow
Eric Snow added the comment: > Do our buildbots only do in-tree builds? >From what I understand, we do not have any (stable?) buildbots that check >out-of-tree builds. FWIW, in the last month I started testing my changes out-of-tree before merging, after Victor once pointed out that I had

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Ned Deily
Ned Deily added the comment: @gps, on macOS, you may need to bump the open file descriptors limit for the test process, i.e. ulimit -n 1000. I build and run out-of-tree builds all the time on macOS. -- nosy: +ned.deily ___ Python tracker

[issue45513] PIP error Cannot call rmtree on a symbolic link should report the lilnk

2021-10-18 Thread Ned Deily
Ned Deily added the comment: This appears to be an issue with pip. You should report the issue to the pip project: https://github.com/pypa/pip/issues/ -- nosy: +ned.deily resolution: -> third party stage: -> resolved status: open -> closed ___

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2021-10-18 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +27305 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29034 ___ Python tracker ___

[issue45221] Linker flags starting with -h breaks setup.py (regression)

2021-10-18 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2