[issue45459] Limited API support for Py_buffer

2021-10-18 Thread Christian Heimes
Christian Heimes added the comment: CC Antoine for his expertise of the buffer protocol Opaque Py_Buffer and PyObject structs will require a different approach and prevent some optimizations. The consumer will have to malloc() a Py_buffer struct on the heap. In non-trivial cases the

[issue45514] Deprecate legacy functions from importlib.resources (importlib_resources 5.3)

2021-10-18 Thread Jason R. Coombs
New submission from Jason R. Coombs : [importlib_resources 5.3](https://importlib-resources.readthedocs.io/en/latest/history.html#v5-3-0), deprecates the functions in _legacy. Let's introduce that deprecation in CPython also. In addition to merging the changes from importlib_resources, this

[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

2021-10-18 Thread wim glenn
Change by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11275] Linking to gcc's gomp causes crash later.

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Please create a new issue if you see the problem on a current python version. -- nosy: +iritkatriel resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

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

2021-10-18 Thread Andrei Kulakov
Andrei Kulakov added the comment: Inada: adding you as you merged the patch that made the switch optparse->argparse. -- nosy: +methane ___ Python tracker ___

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

2021-10-18 Thread Ken Jin
Ken Jin added the comment: @ux, could you please provide more information? What platform are you on, and what compiler version produces this error? -- nosy: +christian.heimes ___ Python tracker

[issue43537] interpreter crashes when handling long text in input()

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

[issue36281] OSError: handle is closed for ProcessPoolExecutor and run_in_executor

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: I don't get the error on 3.11, and I think it may have been fixed under Issue39104. -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> ProcessPoolExecutor hangs on shutdown nowait with pickling failure

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

2021-10-18 Thread Irit Katriel
New submission from Irit Katriel : Changing type because crash typically refers to segfault or hang and not an exception. It doesn't seem possible to connect to imaps.почта.руc anymore. Is there another way to reproduce this problem? -- nosy: +iritkatriel type: crash -> behavior

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

2021-10-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27308 pull_request: https://github.com/python/cpython/pull/29037 ___ Python tracker

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

2021-10-18 Thread Filipe Laíns
Change by Filipe Laíns : -- assignee: docs@python components: Documentation nosy: FFY00, docs@python priority: normal severity: normal status: open title: Add protocol description to the Traversable and TraversableResources documentation ___ Python

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

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Terry, I don't see any PseudoOutputFile in the current codebase. Is this out of date? -- nosy: +iritkatriel ___ Python tracker ___

[issue36581] __dir__ on unittest.mock not safe for all spec types

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: Changing type as crash typically refers to segfault or hang or the like, and not an exception. Reproduced on 3.11. -- nosy: +iritkatriel type: crash -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8

[issue24319] Crash during "make coverage-report"

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: 3.6 is no longer maintained. Is this still an issue on 3.9+? -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue45514] Deprecate legacy functions from importlib.resources (importlib_resources 5.3)

2021-10-18 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +27307 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29036 ___ Python tracker ___

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

2021-10-18 Thread Ned Deily
Ned Deily added the comment: New changeset 6a533a423869e28d9086cf4d79029f59e9eec916 by andrei kulakov in branch 'main': bpo-45221: Fix handling of LDFLAGS and CPPFLAGS options in setup.py (GH-29031) https://github.com/python/cpython/commit/6a533a423869e28d9086cf4d79029f59e9eec916

[issue45515] Add reference to zoneinfo in the datetime module documetnation

2021-10-18 Thread Paul Ganssle
New submission from Paul Ganssle : Right now the datetime documentation recommends using `dateutil.tz` for IANA time zones, but we should update this to point to `zoneinfo`. -- assignee: p-ganssle components: Documentation messages: 404207 nosy: p-ganssle priority: low severity:

[issue45515] Add reference to zoneinfo in the datetime module documetnation

2021-10-18 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +27309 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29038 ___ Python tracker ___

[issue44210] Make importlib.metadata._meta.PackageMetadata public

2021-10-18 Thread Filipe Laíns
Change by Filipe Laíns : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

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

2021-10-18 Thread Andrei Kulakov
Andrei Kulakov added the comment: I agree re: 3.9, thanks Ned! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43668] Segfault with for fresh ubuntu 20.04 install

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

[issue37295] Possible optimizations for math.comb()

2021-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Microbenchmarks: $ ./python -m pyperf timeit -s 'from math import comb' '[comb(n, k) for n in range(63) for k in range(n+1)]' Mean +- std dev: 1.57 ms +- 0.07 ms -> 209 us +- 11 us: 7.53x faster $ ./python -m pyperf timeit -s 'from math import comb'

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

2021-10-18 Thread miss-islington
miss-islington added the comment: New changeset b1949e0b58714724a3105cad3ad1b61384688da7 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45221: Fix handling of LDFLAGS and CPPFLAGS options in setup.py (GH-29031) (GH-29037)

[issue33713] memoryview can set an exception in tp_clear

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

[issue45459] Limited API support for Py_buffer

2021-10-18 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27306 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29035 ___ Python tracker

[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: New changeset 034f607906de6e375cc9a98cc3b09f6d56f8be10 by Victor Stinner in branch 'main': bpo-43760: Rename _PyThreadState_DisableTracing() (GH-29032) https://github.com/python/cpython/commit/034f607906de6e375cc9a98cc3b09f6d56f8be10 --

[issue45452] Support crash tolerance feature for gdbm module

2021-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The main concern is that it is not clear how to use this feature, and if it is not clear, it will not be used. I am not even sure that it is Pythonic, because I do not know how to use it. For example, can it be used to implement transactions? How it works

[issue35828] test_multiprocessing_fork: segmentation error in PyDict_GetItem on AIX

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: 3.8 is no longer being maintained. Is this an issue on 3.9+? -- nosy: +iritkatriel ___ Python tracker ___

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

2021-10-18 Thread Tal Einat
Tal Einat added the comment: With recent versions of Python (e.g. 3.9) this no longer causes a crash. Python apparently falls back to UTF-8, at least on my system: $ LANG=ka_GE.georgianps python3.9 Python 3.9.7 (default, Sep 9 2021, 23:20:13) [GCC 9.3.0] on linux Type "help", "copyright",

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

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

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

[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

[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

[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

[issue42935] Pickle can't import builtins at exit

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

[issue45427] importlib.readers.MultiplexedPath

2021-10-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Dave for closing. I would recommend in the future if you have packaging questions to bring them to packaging problems repo as indicated at https://packaging.python.org/support/#how-to-get-support. Glad to hear that `as_file` promised to do what you

[issue25066] Better repr for multiprocessing.synchronize objects

2021-10-18 Thread Andrei Kulakov
Andrei Kulakov added the comment: Nihir: in synchronize.py, only Barrier inherits from threading.Barrier, as far as I can see. Other classes inherit from `object`. -- nosy: +andrei.avk ___ Python tracker

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

2021-10-18 Thread Ned Deily
Ned Deily added the comment: Thanks for the report, @ux, and thanks for the PR, Andrei! I've backported the fix for release in 3.10.1 but I think it's pretty late in 3.9's release cycle and we've lived this long with the issue. -- resolution: -> fixed stage: patch review ->

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

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

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

[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

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

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

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

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

[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

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

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

[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

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

[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

[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
Change by Barry A. Warsaw : -- keywords: +patch pull_requests: +27320 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29049 ___ Python tracker ___

[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) ...

[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

[issue32629] PyImport_ImportModule occasionally cause access violation

2021-10-18 Thread Irit Katriel
Irit Katriel added the comment: This looks like you are accessing memory that has been corrupted, which can happen in any number of ways. I am closing this because there isn't enough information to do anything about it. If you can show us how to reproduce the crash, and it occurs on a

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

[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

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

[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

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

[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

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

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

[issue26626] test_dbm_gnu

2021-10-18 Thread Zachary Ware
Zachary Ware added the comment: Judging by the error message ("Device or resource busy:"), it seems likely to me that NFS was the culprit here. The fact that the tests passed when run alone may point to an issue with the way tests were run as a group, but this has changed significantly

[issue45517] TarFile.add skips files when tarfile name matches a directory

2021-10-18 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15251] new.code and new.function crashes Python iterpretter

2021-10-18 Thread Tal Einat
Tal Einat added the comment: I couldn't reproduce this on the latest main branch with an updated version of the code sample (see attached repro.py). I also couldn't get such a crash with some variations of this. I'm marking this as fixed for now. We can re-open this if anyone runs into an

[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

[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

[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

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

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

[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

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

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

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

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

[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

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

[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

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

[issue45517] TarFile.add skips files when tarfile name matches a directory

2021-10-18 Thread Jesse Kinkead
New submission from Jesse Kinkead : tarfile.open has a "name" parameter that can be used to open a file for reading or writing in the local filesystem. The documentation is unclear what the purpose is if providing a "fileobj" parameter as well, but it has very surprising behavior when the

[issue34192] FunctionType.__new__ can generate functions that immediately crash

2021-10-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: >From >https://github.com/python/cpython/blob/main/Lib/test/crashers/bogus_code_obj.py > : """ Broken bytecode objects can easily crash the interpreter. This is not going to be fixed. It is generally agreed that there is no point in writing a bytecode

[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

[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

  1   2   >