[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2021-04-29 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 14fc2bdfab857718429029e53ceffca456178827 by Petr Viktorin in branch 'master': bpo-28254: Add PyGC_ functions to the stable ABI manifest (GH-25720) https://github.com/python/cpython/commit/14fc2bdfab857718429029e53ceffca456178827 -- ___

[issue32824] Docs: Using Python on a Macintosh has bad info per Apple site

2021-04-29 Thread Glenn Travis
Glenn Travis added the comment: Here is a copy of the Apple Python call as of April 29, 2021. To my way of thinking it seems that Apple is saying that someday they will indeed eliminate all the included “scripting” software from macOS and they further imply that one should install an. Up-to-

[issue40222] "Zero cost" exception handling

2021-04-29 Thread Mark Shannon
Mark Shannon added the comment: Responding to Serhiy's suggestions: 1 Add another column: Adding another column makes for lots of repetition in larger try blocks, and pushes useful information further to the right. 2 Add pseudo-instructions I find those misleading, as they aren't really t

[issue40222] "Zero cost" exception handling

2021-04-29 Thread Mark Shannon
Mark Shannon added the comment: > BTW, what are the three POP_TOP op codes in a row popping? When exceptions are pushed to the stack, they are pushed as a triple: (exc, type, traceback) so when we pop them, we need three pops. -- ___ Python tracke

[issue43817] Add inspect.get_annotations()

2021-04-29 Thread Larry Hastings
Larry Hastings added the comment: Ie debated about this with myself (and with a friend!) over the last few days, and I've concluded that evaluating strings by default is too opinionated for the standard library. I've changed both inspect.signature() and inspect.get_annotations() so eval_str

[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2021-04-29 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin nosy_count: 5.0 -> 6.0 pull_requests: +24411 pull_request: https://github.com/python/cpython/pull/25720 ___ Python tracker ___

[issue42739] Crash when try to disassemble bogus code object

2021-04-29 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-04-29 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +24410 pull_request: https://github.com/python/cpython/pull/25719 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-04-29 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +24409 pull_request: https://github.com/python/cpython/pull/25718 ___ Python tracker ___ _

[issue43973] Use Py_TPFLAGS_IMMUTABLETYPE in __class__ assignments check

2021-04-29 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- nosy: +shreyanavigyan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-04-29 Thread Mark Shannon
Mark Shannon added the comment: I'm going to set the line number for executing the `__exit__()` function as that of the `with` keyword. This should give a sensible traceback, and not break coverage, as the with statement is already executed. It will impact traces and profiles, which is why t

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-04-29 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +24408 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25717 ___ Python tracker ___ ___

[issue42739] Crash when try to disassemble bogus code object

2021-04-29 Thread Mark Shannon
Mark Shannon added the comment: New changeset c76da79b37d2bcbe575cc927ba0a9b7a9ce465db by Mark Shannon in branch 'master': bpo-42739: Don't use sentinels to mark end of line table. (GH-25657) https://github.com/python/cpython/commit/c76da79b37d2bcbe575cc927ba0a9b7a9ce465db -- _

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-29 Thread Senthil Kumaran
Change by Senthil Kumaran : -- nosy: +orsenthil nosy_count: 3.0 -> 4.0 pull_requests: +24407 pull_request: https://github.com/python/cpython/pull/25716 ___ Python tracker ___ _

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-29 Thread Inada Naoki
Inada Naoki added the comment: New changeset 53dd6c99b39d90935c00bc1558582e494641248e by Inada Naoki in branch 'master': bpo-43651: Fix test_logging (GH-25715) https://github.com/python/cpython/commit/53dd6c99b39d90935c00bc1558582e494641248e -- _

[issue43892] Make match patterns explicit in the AST

2021-04-29 Thread Nick Coghlan
Nick Coghlan added the comment: After the next docs build, the documentation for the explicit AST nodes should be available https://docs.python.org/dev/library/ast.html#pattern-matching -- resolution: -> fixed stage: commit review -> resolved status: open -> closed _

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-29 Thread Senthil Kumaran
Change by Senthil Kumaran : -- nosy: +orsenthil nosy_count: 5.0 -> 6.0 pull_requests: +24406 pull_request: https://github.com/python/cpython/pull/25716 ___ Python tracker ___ _

[issue1227748] doc: subprocess: inheritance of std descriptors inconsistent

2021-04-29 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset abfd6388cdba376a72686df52a9a98b2d558271b by Victor Stinner in branch 'master': bpo-43774: Enhance debug build documentation (GH-25712) https://github.com/python/cpython/commit/abfd6388cdba376a72686df52a9a98b2d558271b -- __

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-29 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24405 pull_request: https://github.com/python/cpython/pull/25715 ___ Python tracker ___ _

[issue37892] IDLE Shell: isolate user code input

2021-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8ec2f0dc0cd096b7a851b1a41e458daa23bf1ffc by Terry Jan Reedy in branch 'master': bpo-37892: Use space indents in IDLE Shell (GH-25678) https://github.com/python/cpython/commit/8ec2f0dc0cd096b7a851b1a41e458daa23bf1ffc -- ___

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-29 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Serhiy, would you mind reviewing the PR? bpo-43974 will clean up the changes introduced to setup.py. -- ___ Python tracker ___ _

[issue43908] array.array should remain immutable

2021-04-29 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +24404 pull_request: https://github.com/python/cpython/pull/25714 ___ Python tracker ___ __

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-29 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset f6ee4dad589c0953283dacb577a2d808fda7aae9 by Petr Viktorin in branch 'master': bpo-43795: Generate python3dll.c and doc data from manifest (PEP 652) (GH-25315) https://github.com/python/cpython/commit/f6ee4dad589c0953283dacb577a2d808fda7aae9 ---

[issue43973] Use Py_TPFLAGS_IMMUTABLETYPE in __class__ assignments check

2021-04-29 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +24403 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25714 ___ Python tracker _

[issue43974] setup.py should set Py_BUILD_CORE_MODULE as defined macro

2021-04-29 Thread Christian Heimes
Christian Heimes added the comment: Related to the change: It looks like we can also cleanup Modules/Setup and remove -DPy_BUILD_CORE_BUILTIN and -DPy_BUILD_CORE_MODULE. Modules/makesetup adds $PY_BUILTIN_MODULE_CFLAGS in the compile step. The variable is defined as PY_BUILTIN_MODULE_CF

[issue43975] Incorrect MIME type returned for .js files Windows 10.

2021-04-29 Thread Scott Means
New submission from Scott Means : This isn't *technically* a bug in Python, but it really presents like one. I like to run the http.server for quick-and-dirty web development, but today Chrome refused to load any of my .js files because the server is returning a MIME type of 'text/plain'. I d

[issue43974] setup.py should set Py_BUILD_CORE_MODULE as defined macro

2021-04-29 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +24402 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25713 ___ Python tracker ___

[issue43974] setup.py should set Py_BUILD_CORE_MODULE as defined macro

2021-04-29 Thread Christian Heimes
New submission from Christian Heimes : CPython's setup.py contains lots of extra_compile_args = ['-DPy_BUILD_CORE_MODULE'] to mark modules as core module. Extra compiler args is the wrong option. It's also tedious and err-prone to define the macro in each and every Extension() class instan

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 645ed62fb4c09b7e23887fcca0767b0f2d7d3fd6 by Victor Stinner in branch 'master': bpo-43774: Remove unused PYMALLOC_DEBUG macro (GH-25711) https://github.com/python/cpython/commit/645ed62fb4c09b7e23887fcca0767b0f2d7d3fd6 -- _

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24401 pull_request: https://github.com/python/cpython/pull/25712 ___ Python tracker ___ __

[issue43973] Use Py_TPFLAGS_IMMUTABLETYPE in __class__ assignments check

2021-04-29 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: IMO, we can drop most (all?) of the huge comment before the check in object_set_class(). History is preserved in the git log. Contrary to Py_TPFLAGS_HEAPTYPE, using Py_TPFLAGS_IMMUTABLETYPE speaks for itself. We might reduce it to just refer to to bp

[issue43973] Use Py_TPFLAGS_IMMUTABLETYPE in __class__ assignments check

2021-04-29 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Use Py_TPFLAGS_IMMUTABLETYPE iso. Py_TPFLAGS_HEAPTYPE in object_set_class(). See also: - bpo-43908 (particularly msg392286) - bpo-24912 - https://github.com/python/cpython/blob/e047239eafefe8b19725efffe7756443495cf78b/Objects/typeobject.c#L4620-L4668

[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2021-04-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset b1f413e6cf63a1c5704fcb47f2095ef5db8970bb by Victor Stinner in branch 'master': bpo-28254: Cleanup test_subprocess.test_preexec_gc_module_failure() (GH-25709) https://github.com/python/cpython/commit/b1f413e6cf63a1c5704fcb47f2095ef5db8970bb ---

[issue43908] array.array should remain immutable

2021-04-29 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5bd0619533ed6587ce76402e9b0b118eb4d4dd09 by Victor Stinner in branch 'master': bpo-43908: Document Static Types in the C API (GH-25710) https://github.com/python/cpython/commit/5bd0619533ed6587ce76402e9b0b118eb4d4dd09 -- _

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24400 pull_request: https://github.com/python/cpython/pull/25711 ___ Python tracker ___ __

[issue43908] array.array should remain immutable

2021-04-29 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Erlend: Do you want to write such change? Sure, I'll have a go at it. Thanks. -- ___ Python tracker ___ __

[issue43908] array.array should remain immutable

2021-04-29 Thread STINNER Victor
STINNER Victor added the comment: > BTW, slightly related, AFAICT: > - > https://github.com/python/cpython/blob/e047239eafefe8b19725efffe7756443495cf78b/Objects/typeobject.c#L4620-L4668 > - bpo-24912 object_set_class() must be changed to check for Py_TPFLAGS_IMMUTABLETYPE flag, rather than P

[issue43908] array.array should remain immutable

2021-04-29 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24399 pull_request: https://github.com/python/cpython/pull/25710 ___ Python tracker ___ __

[issue43908] array.array should remain immutable

2021-04-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The types converted to heap types in 3.10 are different from 3.9 therefore just backporting wouldn't help. Should we now try to apply the flags on other types? If yes then I'd like to volunteer to apply the flags on the types converted in 3.9. --

<    1   2