[issue27547] Crash or freeze trying to execute b'a' * 0xFFFFFFFFFFFFFFF

2021-06-21 Thread Irit Katriel
Irit Katriel added the comment: I get a MemoryError on Windows 10: >>> float(array.array("L",b"a"*0xFFF+10**80)) Traceback (most recent call last): File "", line 1, in MemoryError >>> -- nosy: +iritkatriel ___ Python trac

[issue44476] "subprocess not supported for isolated subinterpreters" when running venv

2021-06-21 Thread Brian Curtin
Brian Curtin added the comment: I think there was either something stale that got linked wrong or some other kind of build failure, as I just built v3.10.0b3 tag again from a properly cleaned environment and this is no longer occurring. Sorry for the noise. -- stage: -> resolved sta

[issue44478] I can't

2021-06-21 Thread Zachary Ware
Zachary Ware added the comment: This site is not a help forum, it is for tracking bugs in the implementation of the CPython reference interpreter. You'll have better luck somewhere like https://discuss.python.org/c/users/7, the python-l...@python.org mailing list, or the #python IRC channel

[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Irit Katriel
Change by Irit Katriel : -- keywords: -patch versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-

[issue44477] Remove ma_version_tag in dict?

2021-06-21 Thread Ken Jin
Ken Jin added the comment: Closing this for now as it seems PEP 509 may need to be repealed: https://github.com/faster-cpython/ideas/issues/30#issuecomment-858615678 Sorry for the noise everyone :(. -- resolution: -> postponed stage: patch review -> resolved status: open -> closed _

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue27547] Crash or freeze trying to execute b'a' * 0xFFFFFFFFFFFFFFF

2021-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concur with Martin. Most likely it is an OS bug, the same as issue5614. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Malloc errors in test_io ___

[issue22472] OSErrors should use str and not repr on paths

2021-06-21 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue22472] OSErrors should use str and not repr on paths

2021-06-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'll close as rejected. Unfortunately, we have to make an exclusive choice here :-( -- ___ Python tracker ___ __

[issue44468] Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?

2021-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: I agree with the OP, we can do better here. Ken, if you feel like it, a fix should not be too complicated, right? -- ___ Python tracker ___

[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Irit, it is unclear why you unchecked 'patch'. Because no PR? The keyword includes a patch file attached to an issue. Someone can convert it to a PR. From the tracker doc: "patch There is a patch or pull request attached to the issue." Because the 2nd pa

[issue44466] faulthandler should indicate if the fault happened in garbage collection

2021-06-21 Thread Maxwell Ballenger
Maxwell Ballenger added the comment: Thank you Victor, sounds great! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue42588] Improvements to graphlib.TopologicalSorter.static_order() documentation

2021-06-21 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 5.0 -> 6.0 pull_requests: +25415 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26834 ___ Python tracker

[issue42588] Improvements to graphlib.TopologicalSorter.static_order() documentation

2021-06-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: I'm not sure it's worth it to complicate the logic by raising the error before iteration since iteration is normally done soon after method call. I agree the doc change is helpful, since the ticket was dormant for a ~month, I've put up a PR with this change

[issue22167] iglob() has misleading documentation (does indeed store names internally)

2021-06-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: I have put up a PR here: https://github.com/python/cpython/pull/25767 -- ___ Python tracker ___ _

[issue43905] dataclasses.astuple does deepcopy on all fields

2021-06-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've added a PR here: https://github.com/python/cpython/pull/26154 -- ___ Python tracker ___ ___

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +25416 pull_request: https://github.com/python/cpython/pull/26835 ___ Python tracker ___ _

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added a simplified answer after a similar question about assignment and CMs. -- keywords: -easy ___ Python tracker ___ ___

[issue43749] venv module does not copy the correct python exe

2021-06-21 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: I just encountered the same behavior. Steps to reproduce: * Install Python 3 (I used 3.9.5) on Windows * Use the Admin console to create a python3.exe link, e.g. cd "c:/Users/niklas/AppData/Local/Programs/Python/Python39" mklink python3.exe python.

[issue43749] venv module does not copy the correct python exe

2021-06-21 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: To complete my previous comment, patching the function to see the command that is invoked, you can see it tries to invoke 'python3.exe' (seemingly derived from sys.executable) in the venv but the venv only contains 'python.exe'. ['C:\\Users\\niklas\\dotfi

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 355f5dd36a0f53175517f35798aa874564d1113a by Guido van Rossum in branch 'main': bpo-43693: Turn localspluskinds into an object (GH-26749) https://github.com/python/cpython/commit/355f5dd36a0f53175517f35798aa874564d1113a -- __

[issue30238] 2to3 doesn't detect or fix Exception indexing

2021-06-21 Thread Daniel Lenski
Daniel Lenski added the comment: > There is no way to know through static analysis that the subscript is on an > object of type exception. I think this should be closed as won't fix. In almost all cases, the variable in question will receive its value via `except ... as e:`. try:

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +25417 pull_request: https://github.com/python/cpython/pull/26836 ___ Python tracker _

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 51f45d085dad3b708f6fe166af517aba69e7e9f7 by Terry Jan Reedy in branch 'main': bpo-13814: Explain why generators are not context managers (GH-26835) https://github.com/python/cpython/commit/51f45d085dad3b708f6fe166af517aba69e7e9f7 -- _

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +25418 pull_request: https://github.com/python/cpython/pull/26837 ___ Python tracker ___ __

[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 2007 Aug 15, extending.rst was merged into master (early 2.6 alpha) and early 3.0 alpha. The only change to this paragraph since the initial 2.6 version was Serhiy changing "*NULL*" to "``NULL``" in 3.x on 2019 Oct 30. I will post a PR with what I thin

[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Irit Katriel
Irit Katriel added the comment: Yes, I thought since we need a PR the keyword was wrong. Thanks for the correction. -- ___ Python tracker ___

[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +25419 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26838 ___ Python tracker __

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d881002fbdf12ddbd93db3e182dc5cdeb1f90386 by Miss Islington (bot) in branch '3.9': bpo-13814: Explain why generators are not context managers (GH-26835) https://github.com/python/cpython/commit/d881002fbdf12ddbd93db3e182dc5cdeb1f90386 -

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1e16217204c0e8e595c4d1e869c81899bfe3376b by Miss Islington (bot) in branch '3.10': bpo-13814: Explain why generators are not context managers (GH-26835) https://github.com/python/cpython/commit/1e16217204c0e8e595c4d1e869c81899bfe3376b

[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-21 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +25420 pull_request: https://github.com/python/cpython/pull/26839 ___ Python tracker ___

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

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

[issue28533] Replace asyncore

2021-06-21 Thread Irit Katriel
Irit Katriel added the comment: If the tests are the only thing blocking removal, does it make sense to move asyncore and asynchat to test.support and get on with removing them from the stdlib? -- nosy: +iritkatriel ___ Python tracker

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: Note that this issue is now only a problem of you use `from __future__ import annotations` -- we rolled the default behavior for 3.10 back to what it was in 3.9. I am out of time to argue about why we chose this behavior, alas. -- ___

[issue44479] Windows build doesn't regenerate some files

2021-06-21 Thread Guido van Rossum
Change by Guido van Rossum : -- components: Windows nosy: gvanrossum, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Windows build doesn't regenerate some files ___ Python tracker

[issue28533] Replace asyncore

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: Irit: > If the tests are the only thing blocking removal, does it make sense to move > asyncore and asynchat to test.support and get on with removing them from the > stdlib? Yes, it makes sense and it can be done right now, since asynchat/asyncore is deprec

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

2021-06-21 Thread STINNER Victor
New submission from STINNER Victor : It looks like bpo-44360 which was a Linux OOM Killer issue since the Linux machine memory was too low. AMD64 FreeBSD Non-Debug 3.x: https://buildbot.python.org/all/#/builders/172/builds/387 ... test_single_statement (test.test_compile.TestSpecifics) ... ok

[issue44479] Windows build doesn't regenerate some files

2021-06-21 Thread Guido van Rossum
New submission from Guido van Rossum : The new PCbuild\build.bat script is much better at regenerating necessary files. However I just found out that there are some more files that need to be regenerated occasionally: - Programs/test_frozenmain.h - Python/frozen_hello.h Could you add rules f

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: inittab-bug.c uses the Python C API in 3 threads: * Thread A (init_proc) calls Py_InitializeFromConfig() * Thread B (run_proc) calls Py_RunMain() * The main thread (main) calls Py_FinalizeEx() Problem: the thread B (run_proc) doesn't hold the GIL and so I get

[issue44481] Tkinter config() minor documentation bug for shorthand options

2021-06-21 Thread Jeff S
New submission from Jeff S : The documentation page https://docs.python.org/3/library/tkinter.html states "Passing the config() method the name of a shorthand option will return a 2-tuple, not 5-tuple." While config() without argument does return a map that yields references like this, if co

[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset be1cb3214d09d4bf0288bc45f3c1f167f67e4514 by Victor Stinner in branch 'main': bpo-44287: asyncio test_popen() uses longer timeout (GH-26832) https://github.com/python/cpython/commit/be1cb3214d09d4bf0288bc45f3c1f167f67e4514 -- _

[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25422 pull_request: https://github.com/python/cpython/pull/26841 ___ Python tracker _

[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +25423 pull_request: https://github.com/python/cpython/pull/26842 ___ Python tracker ___ __

[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread miss-islington
miss-islington added the comment: New changeset c032a12cbb7d6e2d6a292b0e9220c33ef7349d28 by Miss Islington (bot) in branch '3.10': bpo-44287: asyncio test_popen() uses longer timeout (GH-26832) https://github.com/python/cpython/commit/c032a12cbb7d6e2d6a292b0e9220c33ef7349d28 -- ___

[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread miss-islington
miss-islington added the comment: New changeset 0ff487b8abe70f091285acf367b795861eed8049 by Miss Islington (bot) in branch '3.9': bpo-44287: asyncio test_popen() uses longer timeout (GH-26832) https://github.com/python/cpython/commit/0ff487b8abe70f091285acf367b795861eed8049 --

[issue25381] Update doc of three C exception values.

2021-06-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: patch review -> needs patch title: Doc: Use of old description of raise in Python3 -> Update doc of three C exception values. ___ Python tracker _

[issue25381] Update doc of three C exception values.

2021-06-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-21 Thread Ma Lin
Ma Lin added the comment: I am checking all the .py files in `Lib` folder. hmac.py has two len() bugs: https://github.com/python/cpython/blob/v3.10.0b3/Lib/hmac.py#L212 https://github.com/python/cpython/blob/v3.10.0b3/Lib/hmac.py#L214 I think PR 26764 is prepared, it fixes the len() bugs in bz

[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is possible resource leak in glob on alternate Python implementation witch do not use reference counting to immediate releasing resources. It is in the code names = list(_iterdir(dirname, dir_fd, dironly)) where _iterdir() is a generator funct

[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +25424 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26843 ___ Python tracker ___

[issue44483] Fatal error in type union

2021-06-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The following example crashes: class TypeVar: @property def __module__(self): 1/0 str | TypeVar() Output: Fatal Python error: _Py_CheckSlotResult: Slot | of type type succeeded with an exception set Python runtime state: initialized Tra

[issue44458] Duplicate symbol _BUFFER_BLOCK_SIZE when statically linking multiple modules

2021-06-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 92c2e91580521ba5c85aa3205a0211df5b48689b by Russell Keith-Magee in branch 'main': bpo-44458: Ensure BUFFER_BLOCK_SIZE symbol is statically allocated. (GH-26808) https://github.com/python/cpython/commit/92c2e91580521ba5c85aa3205a0211df5b48689b

[issue44458] Duplicate symbol _BUFFER_BLOCK_SIZE when statically linking multiple modules

2021-06-21 Thread Ma Lin
Change by Ma Lin : -- nosy: +malin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

<    1   2