[issue25934] ICC compiler: ICC treats denormal floating point numbers as 0.0

2021-10-18 Thread Zachary Ware
Zachary Ware added the comment: I no longer have access to ICC, and the ICC buildbots have been mothballed some years ago. Closing this as out of date; the issue might not be, but the information about it here probably is :) -- resolution: -> out of date stage: -> resolved status:

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

2021-10-18 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +27311 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29040 ___ 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: The PR I put up should fix the problem. If it doesn't then I'll probably drop the checks in the second half of FrozenImporter._fix_module(). -- ___ Python tracker _

[issue26906] Special method lookup fails on uninitialized types

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: All of the examples for python 3 are working now: >>> import array >>> it = iter(array.array('i')) >>> format(it) '' >>> format(iter([])) '' >>> import operator >>> operator.length_hint(iter("abc")) 03 -- nosy: +iritkatriel resolution: -> fixed stage:

[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 Terry J. Reedy
Terry J. Reedy added the comment: Unfortunately, no. The standard stream replacements were renamed to StdOutputFile, etc, and slightly revised, but the buggy behavior remains. The worst is that shell restart does not completely restart the shell. It has to be closed instead. I would like

[issue41560] pathlib.Path.glob fails on empty string

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: path.glob() returns a generator now, but the contents are still this exception: >>> from pathlib import Path >>> path = Path('./myfile.txt') >>> >>> path.glob('') >>> list(path.glob('')) Traceback (most recent call last): File "", line 1, in File "/Users/

[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 ___ ___ Pytho

[issue29941] Confusion between asserts and Py_DEBUG

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

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

2021-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: FWIW, Greg's test case does not fail for me with 6a533a4238 -- nosy: +barry ___ 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 Unsu

[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 __

[issue37722] imaplib crashes when trying to read a letter from an imap server imaps.почта.рус

2021-10-18 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: -barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21736] Add __file__ attribute to frozen modules

2021-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Weird. PR 28655 is merged on GH, but still shows open on this bpo ticket. -- ___ Python tracker ___ ___

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2021-10-18 Thread Tom Karzes
Tom Karzes added the comment: Is there *still* no fix for this? I keep running into this bug. People sometimes say "oh, it's no problem, just use = to associate the option value with the option name". That is so sad. It's basically saying "it can't be made to work the way it should, so i

[issue40720] accessing mmap of file that is overwritten causes bus error

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

[issue43264] ListProxy with EventProxy in caused FileNotFoundError: [Errno 2] No such file or directory problem

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Changing type as crash typically refers to segfault or hang and not exception. -- nosy: +iritkatriel type: crash -> behavior ___ Python tracker ___

[issue45518] Invalid example for typing

2021-10-18 Thread Bozhi You
New submission from Bozhi You : The first example snippet under https://docs.python.org/3/library/typing.html#type-aliases is invalid to run. ``` Traceback (most recent call last): File "main.py", line 1, in Vector = list[float] TypeError: 'type' object is not subscriptable ``` A solut

[issue35883] Python startup fails with a fatal error if a command line argument contains an invalid Unicode character

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

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

2021-10-18 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower nosy_count: 5.0 -> 6.0 pull_requests: +27312 pull_request: https://github.com/python/cpython/pull/29041 ___ Python tracker ___ ___

[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 _

[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: +27313 pull_request: https://github.com/python/cpython/pull/29042 ___ 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 ___

[issue31442] assertion failures on Windows in Python/traceback.c in case of a bad io.open

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 3.7 ___ Python tracker ___ __

[issue45519] Minor docstring improvement in __contains__

2021-10-18 Thread Ivan Savov
New submission from Ivan Savov : Currently, ``` >>> help(list.__contains__) ``` returns ``` Help on wrapper_descriptor: __contains__(self, key, /) Return key in self. ``` Which is a conceptual circular reference, since `in` is implemented by `__contains__`. Changing the help string to "R

[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 3.10.0

[issue15727] PyType_FromSpecWithBases tp_new bugfix

2021-10-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> The danger of PyType_FromSpec() ___ Python tracker ___

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-18 Thread Jason R. Coombs
New submission from Jason R. Coombs : New changeset 4d03de3329ed8daa9c1107b1aedbb0fa280bddb6 by Filipe Laíns in branch 'main': bpo-45516: add protocol description to the Traversable documentation (#29039) https://github.com/python/cpython/commit/4d03de3329ed8daa9c1107b1aedbb0fa280bddb6 --

[issue31885] Cygwin: socket test suites hang indefinitely due to bug in Cygwin

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Erik, is this still relevant, given the Cygwin bug was fixed 4 years ago? -- nosy: +iritkatriel ___ Python tracker ___

[issue45519] Minor docstring improvement in __contains__

2021-10-18 Thread Ivan Savov
Change by Ivan Savov : -- keywords: +patch pull_requests: +27314 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29043 ___ Python tracker ___ _

[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

[issue39098] OSError: handle closed, ProcessPoolExecutor shutdown(wait=False)

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: 3.7 and 3.8 are no longer receiving bugfixes. Changing type because crash typically refers to segfaults and hangs, not exceptions. -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed type: crash -> behavior versions:

[issue31573] PyStructSequence_New() doesn't validate its input type (crashes in os.wait3() and os.wait4() in case of a bad resource.struct_rusage)

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 3.7 ___ Python tracker ___ __

[issue31165] list_slice() crashes if the list is mutated indirectly by PyList_New()

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel title: list_slice() does crash if the list is mutated indirectly by PyList_New() -> list_slice() crashes if the list is mutated indirectly by PyList_New() versions: +Python 3.10, Python 3.11, Python 3.9 -Python

[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 f

[issue38031] FileIO.__init__ aborts when opener returns bad fd

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.7, Python 3.8 ___ Python tracker ___ __

[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
STINNER Victor added the comment: New changeset aad88d33d9db0a93e480f0234292b948890dfc2a by Victor Stinner in branch 'main': bpo-35134: Split warnings.h and weakrefobject.h (GH-29042) https://github.com/python/cpython/commit/aad88d33d9db0a93e480f0234292b948890dfc2a -- _

[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 ___ __

[issue35673] Loader for namespace packages

2021-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm going to take a look at this during the Python core sprint. -- assignee: -> barry ___ Python tracker ___ __

[issue19459] Python does not support the GEORGIAN-PS charset

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: Python uses UTF-8 if the locale is not supported: $ LANG=xxx python3.9 -c "import sys; print(sys.flags.utf8_mode)" 1 On Fedora 34, the locale is still supported, and Python 3.11 still fails: vstinner@apu$ LANG=ka_GE.georgianps locale LANG=ka_GE.georgianps LC

[issue35673] Loader for namespace packages

2021-10-18 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___ 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 `default_namesp

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

2021-10-18 Thread Andrei Kulakov
Change by Andrei Kulakov : -- type: performance -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2021-10-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d by Victor Stinner in branch 'main': bpo-35134: Add Include/cpython/longobject.h (GH-29044) https://github.com/python/cpython/commit/5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d -- _

[issue10071] Should not release GIL while running RegEnumValue

2021-10-18 Thread Zachary Ware
Zachary Ware added the comment: With Steve's opposition and the fact that we've gotten along for 11 years since this issue was opened without it (and also without further reports of issues), I'm going to go ahead and close the issue. -- resolution: -> rejected stage: patch review ->

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-18 Thread Filipe Laíns
Filipe Laíns added the comment: Actually, since TraversableResources is simply implementing ResourceReader, the protocol is documented. We could reference ResourceReader in the docstring though. -- ___ Python tracker

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-18 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27316 pull_request: https://github.com/python/cpython/pull/29045 ___ Python tracker ___ _

[issue42174] shutil.get_terminal_size() returns 0 when run in a pty

2021-10-18 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +27317 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29046 ___ Python tracker ___

[issue45518] Invalid example for typing

2021-10-18 Thread Logan Jones
Logan Jones added the comment: Hi Bozhi. The syntax that you're referencing was added in 3.9. So if you're trying the syntax in earlier versions of Python, it won't work. The standard collections were added in PEP 585 (https://www.python.org/dev/peps/pep-0585/) I think the reason the example

[issue45449] Document that collections.abc types are subscriptable

2021-10-18 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +27318 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29047 ___ Python tracker ___

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

2021-10-18 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset c0295675305f6896e4ba7496441cc470d7edca89 by Filipe Laíns in branch 'main': bpo-45516: use documentation links in TraversableResources' description (GH-29045) https://github.com/python/cpython/commit/c0295675305f6896e4ba7496441cc470d7edca89 --

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-18 Thread Filipe Laíns
Change by Filipe Laíns : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ ___

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-18 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +27319 pull_request: https://github.com/python/cpython/pull/29048 ___ Python tracker ___ __

[issue45020] Freeze all modules imported during startup.

2021-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Is gh-28940 only for UNIX? I built on Windows with default options (PCbuild\build.bat) and it looks like the frozen modules are used by default even though I am running in the source directory. (I put a printf() call in unmarshal_frozen_code().) I also pu

[issue35673] Loader for namespace packages

2021-10-18 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- keywords: +patch pull_requests: +27320 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29049 ___ Python tracker ___

[issue35673] Loader for namespace packages

2021-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: First crack at a PR for this issue. -- keywords: +needs review -patch ___ Python tracker ___ ___

[issue35673] Loader for namespace packages

2021-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Since the documentation problem reported here has since been fixed, and really all that's left is to expose NamespaceLoader publicly and register it with the abc, this is technically a new feature so it can't be backported. Thus, targeting only 3.11.

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

2021-10-18 Thread Josh Rosenberg
Josh Rosenberg added the comment: When I define this with the new-in-3.10 slots=True argument to dataclass rather than manually defining __slots__ it works just fine. Looks like the pickle format changes rather dramatically to accommodate it. >>> @dataclass(frozen=True, slots=True) ... class

[issue33277] Deprecate __loader__, __package__, __file__, and __cached__ on modules

2021-10-18 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-18 Thread swgmma
swgmma added the comment: I implemented your first suggestion for `force_hide`. Should we add your `force_no_window` suggestion as well? -- ___ Python tracker ___ ___

[issue45452] Support crash tolerance feature for gdbm module

2021-10-18 Thread Dong-hee Na
Dong-hee Na added the comment: Wow, long discussion than I expected, I wish that you don't feel uncomfortable with my opinion first :) > The main concern is that it is not clear how to use this feature, and if it > is not clear IMHO, this feature is similar usage level with gdbm.reorganize(

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

2021-10-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27321 pull_request: https://github.com/python/cpython/pull/29050 ___ Python tracker _

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

2021-10-18 Thread Inada Naoki
Inada Naoki added the comment: New changeset 0a4c82ddd34a3578684b45b76f49cd289a08740b by Inada Naoki in branch 'main': bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016) https://github.com/python/cpython/commit/0a4c82ddd34a3578684b45b76f49cd289a08740b

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-18 Thread Eryk Sun
Eryk Sun added the comment: I was intending force_no_window as an alternative to adding force_hide, since CREATE_NO_WINDOW only affects console applications. Maybe a better name is force_hide_console. -- ___ Python tracker

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

2021-10-18 Thread miss-islington
miss-islington added the comment: New changeset 97ce855ca8ce437070424b43f5b41158685ac140 by Miss Islington (bot) in branch '3.10': bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016) https://github.com/python/cpython/commit/97ce855ca8ce437070424b43f5b411

[issue45427] importlib.readers.MultiplexedPath

2021-10-18 Thread David Rajaratnam
David Rajaratnam added the comment: Hi Jason, Thanks for the extra pointers. My initial intention in explaining my use-case was to find out whether treating an externally embedded interpreter's files as `importlib.resources` is the correct use of this library. However, you're right that m

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

2021-10-18 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue45501] [idea] Successfully creating a venv could print a message.

2021-10-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: This may be an example of the problem: https://discuss.python.org/t/why-does-venv-not-work-on-my-windows-system/11167 The poster there hasn't responded yet, so it isn't clear what is the actual issue is. But it looks suspiciously like a failure to realise t

[issue45521] obmalloc radix tree typo in code

2021-10-18 Thread Neil Schemenauer
New submission from Neil Schemenauer : There is a typo in the radix tree obmalloc code, spotted by Inada Naoki. -#define MAP_TOP_MASK (MAP_BOT_LENGTH - 1) +#define MAP_TOP_MASK (MAP_TOP_LENGTH - 1) This should be fixed both in the main branch and in 3.10.x. -- assignee: methane compo

[issue45521] obmalloc radix tree typo in code

2021-10-18 Thread Inada Naoki
Inada Naoki added the comment: When I am trying to understand this issue, I see this segfault. https://gist.github.com/methane/1b83e2abc6739017e0490c5f70a27b52 I am not sure this segfault is caused by this issue or not. If this is unrelated, I will create another issue. --

[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 ___ ___

<    1   2