[issue43725] Create a release branch ABI stability regression test

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: I cannot merge my PR 25685 because the mandatory ABI CI job fails: --- abidiff "libpython3.9.so" ./Doc/data/python3.9.abi --drop-private-types --no-architecture --no-added-syms Functions changes summary: 0 Removed, 1 Changed, 0 Added function

[issue43851] Optimise SQLite builds on macOS and Windows

2021-04-28 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: As noted in https://github.com/python/cpython/pull/25414#issuecomment-828501078, SQLITE_OMIT_DEPRECATED also leaves out PRAGMA's, which can break applications. I'll update the PR's to leave it out. --

[issue11975] Fix referencing of built-in types (list, int, ...)

2021-04-28 Thread Kieran Siek
Kieran Siek added the comment: 7 years later I'd like to bring up essentially point #2 in this issue, which is the fact that additional list methods are :noindex: resulting in it being unlinked in the documentation. Current state of affairs: 1. Common Sequence methods are documented at

[issue43960] test_pdb fails when only some tests are run

2021-04-28 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +24381 pull_request: https://github.com/python/cpython/pull/25691 ___ Python tracker ___

[issue43959] Improve documentation of PyContextVar C-API

2021-04-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +24380 pull_request: https://github.com/python/cpython/pull/25690 ___ Python tracker ___

[issue43959] Improve documentation of PyContextVar C-API

2021-04-28 Thread miss-islington
miss-islington added the comment: New changeset 4c49be766897968e509c41397e0e624c25b1675d by scoder in branch 'master': bpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) https://github.com/python/cpython/commit/4c49be766897968e509c41397e0e624c25b1675d --

[issue43960] test_pdb fails when only some tests are run

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: > We didn't backport PR21989 because it was changing the way breakpoints hare > maintained, so reset_Breakpoint is not there before 3.10. I can add that to > the test file manually. Ah yes, it sounds reasonable to me to add reset_Breakpoint() to test_pdb

[issue43851] Optimise SQLite builds on macOS and Windows

2021-04-28 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I suggest applying the following safe options for the installers: # SQLITE_DEFAULT_MEMSTATUS Memory status is currently not available in the sqlite3 API, so there's no need for SQLite to keep track of this. If we add such an API (not likely, IMO),

[issue43959] Improve documentation of PyContextVar C-API

2021-04-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +24379 pull_request: https://github.com/python/cpython/pull/25689 ___ Python tracker ___

[issue43967] Valgrind memcheck on Py_Initialize

2021-04-28 Thread Simon Aldrich
New submission from Simon Aldrich : Running a Valgrind memcheck of Py_Initialize still produces issues even when using the suggested suppressions file. Am I doing something wrong or is this expected? I've attached a simple reproducer which can be run as follows: 1. Extract tarball 2. cmake

[issue43961] [Windows] test_logging.test_namer_rotator_inheritance() logs a logging error

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset fe52eb62191e640e720d184a9a1a04e965b8a062 by Victor Stinner in branch 'master': bpo-43961: Fix test_logging.test_namer_rotator_inheritance() (GH-25684) https://github.com/python/cpython/commit/fe52eb62191e640e720d184a9a1a04e965b8a062

[issue43962] test_interpreters: when TestInterpreterAttrs.test_id_type() is run alone, it fails with an assertion error

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 77db337f1e69213e62ba79a797540cc4ac23492e by Victor Stinner in branch '3.8': bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) (GH-25686) https://github.com/python/cpython/commit/77db337f1e69213e62ba79a797540cc4ac23492e --

[issue43961] [Windows] test_logging.test_namer_rotator_inheritance() logs a logging error

2021-04-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24378 pull_request: https://github.com/python/cpython/pull/25688 ___ Python tracker

[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: All the test failures are side effects of other tests because when they are ran individually they do not trigger errors. Running sequentially causes the error. -- ___ Python tracker

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

2021-04-28 Thread Stefan Behnel
Stefan Behnel added the comment: I just remembered that it's usually helpful to return the previous state, so that callers know whether they need to re-enable or disable the GC when they're done. I'll add that. Also, returning an "int" may allow us to add a "-1" error code at some point,

[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I ran the test again and test_signal still modifies sys.gettrace() -- ___ Python tracker ___

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

2021-04-28 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder nosy_count: 3.0 -> 4.0 pull_requests: +24377 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25687 ___ Python tracker

[issue43966] F String bugs with numpy.float32

2021-04-28 Thread Mark Dickinson
Mark Dickinson added the comment: See https://github.com/numpy/numpy/issues/10645. I'll close here (this tracker is for core Python, and NumPy isn't part of core Python). -- nosy: +mark.dickinson resolution: -> third party stage: -> resolved status: open -> closed

[issue43966] F String bugs with numpy.float32

2021-04-28 Thread GPH
New submission from GPH : When using F String with numpy.float32 variable, the output is wrong! Example code: ```python import numpy as np floatNumber = 0.00123 print(f"num:{floatNumber}") npFloatNumber = np.float32(0.00123) print(f"num:{npFloatNumber}") ``` The output is: ``` num:0.00123

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-04-28 Thread Amir
Amir added the comment: Hi everyone! I'm going to work on it. I have a plan to submit my pull request in the upcoming weeks. Thanks. -- components: -Interpreter Core nosy: +Amir.Rastkhadiv20 versions: +Python 3.9 -Python 3.10 ___ Python

[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: FYI test_signal is no longer modifying sys.gettrace thanks to your fix. But test_threading still does. Do you have a fix for that? -- ___ Python tracker

[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Same errors. (Recompilation was done 1 or 2 hours ago against the then updated master branch. It may not include the latest commit) -- ___ Python tracker

[issue43960] test_pdb fails when only some tests are run

2021-04-28 Thread Irit Katriel
Irit Katriel added the comment: We didn't backport PR21989 because it was changing the way breakpoints hare maintained, so reset_Breakpoint is not there before 3.10. I can add that to the test file manually. -- ___ Python tracker

[issue43962] test_interpreters: when TestInterpreterAttrs.test_id_type() is run alone, it fails with an assertion error

2021-04-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24376 pull_request: https://github.com/python/cpython/pull/25686 ___ Python tracker ___

[issue43962] test_interpreters: when TestInterpreterAttrs.test_id_type() is run alone, it fails with an assertion error

2021-04-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24375 pull_request: https://github.com/python/cpython/pull/25685 ___ Python tracker

[issue43962] test_interpreters: when TestInterpreterAttrs.test_id_type() is run alone, it fails with an assertion error

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 32c5a174445ec93747240cd8472012276ed27acf by Victor Stinner in branch 'master': bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) https://github.com/python/cpython/commit/32c5a174445ec93747240cd8472012276ed27acf --

[issue43960] test_pdb fails when only some tests are run

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: Irit: the automated backported failed, test_pdb fails with: NameError: name 'reset_Breakpoint' is not defined Do you want to try to backport manually the change to Python 3.9 (and then I can automate the backport to 3.8). test_pdb on Python 3.8 and 3.9

[issue43961] [Windows] test_logging.test_namer_rotator_inheritance() logs a logging error

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 25684 to fix this issue. > What does os.rename do on Linux? Does it just overwrite existing files by > default? os.rename() calls rename(): https://man7.org/linux/man-pages/man2/rename.2.html rename() renames a file, moving it between

[issue43961] [Windows] test_logging.test_namer_rotator_inheritance() logs a logging error

2021-04-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24374 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25684 ___ Python tracker ___

[issue37892] IDLE Shell: isolate user code input

2021-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had a similar reaction, "weird", when I tried the isolated prompt a year or whatever ago. I don't remember if I also changed the indent for that. But when testing this patch, with space indents, a longer time, most of the weird feeling dissipated and I

[issue43962] test_interpreters: when TestInterpreterAttrs.test_id_type() is run alone, it fails with an assertion error

2021-04-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +24373 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25683 ___ Python tracker ___

[issue43962] test_interpreters: when TestInterpreterAttrs.test_id_type() is run alone, it fails with an assertion error

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: Creating an _interpreters.InterpreterID object calls newinterpid() which calls _PyInterpreterState_IDIncref(interp). _PyInterpreterState_IDIncref(interp) does nothing if interp->id_mutex is NULL. Calling _interpreters.get_current() calls

[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: Shreyan Avigyan: please try an up to date version of the master branch, I fixed the Pdb issue with commit a09766deab5aff549f40f27080895e148af922ed. -- ___ Python tracker

[issue43960] test_pdb fails when only some tests are run

2021-04-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +24372 pull_request: https://github.com/python/cpython/pull/25682 ___ Python tracker ___

[issue43960] test_pdb fails when only some tests are run

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 21b02b5f4018474620676be04310f7d230a464ea by Irit Katriel in branch 'master': bpo-43960: test_pdb resets breakpoints (GH-25673) https://github.com/python/cpython/commit/21b02b5f4018474620676be04310f7d230a464ea --

[issue43960] test_pdb fails when only some tests are run

2021-04-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +24371 pull_request: https://github.com/python/cpython/pull/25681 ___ Python tracker

[issue43965] dataclasses.replace breaks when __init__ is overrriden in subclass

2021-04-28 Thread Sebastian Speitel
Sebastian Speitel added the comment: Or maybe a cls argument which defaults to obj.__class__? -- ___ Python tracker ___ ___

[issue37892] IDLE Shell: isolate user code input

2021-04-28 Thread E. Paine
E. Paine added the comment: Personally, I find the change quite weird and will take some getting used to. I hope people read the help at the top of the shell, but if not I can imagine numerous bug reports about the change. I have not used any shell that has the prompt above where you type,

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: Thanks Inada-san for documenting the change in codecs.register() doc! -- ___ Python tracker ___

[issue42238] Deprecate suspicious.py?

2021-04-28 Thread STINNER Victor
STINNER Victor added the comment: At least, I would suggest to remove it from the release process. If some people working on the documentation want to keep the tool, maybe it can be an optional CI job? IMO the problem is that currently, it's part of a single "Documentation" job. I don't

[issue43965] dataclasses.replace breaks when __init__ is overrriden in subclass

2021-04-28 Thread Sebastian Speitel
Sebastian Speitel added the comment: One solution I thought of was to return not an object of the same instance, but one of the same dataclass, which would allow the implementation to traverse the class hierachy of the object and create an instance of the first dataclass-class (or class

[issue43965] dataclasses.replace breaks when __init__ is overrriden in subclass

2021-04-28 Thread Eric V. Smith
Eric V. Smith added the comment: I'm open to suggestions on how this could be fixed, but I don't see how it's possible. I guess the best thing to do would be to fail if __init__() isn't the one that was generated by @dataclass. But that might be too pessimistic: the user could have provided

[issue43965] dataclasses.replace breaks when __init__ is overrriden in subclass

2021-04-28 Thread Sebastian Speitel
New submission from Sebastian Speitel : from dataclasses import dataclass, replace @dataclass() class A: a: int class B(A): def __init__(self): super().__init__(a=1) obj1 = B() obj2 = replace(obj1, a=2) File "/usr/lib/python3.9/dataclasses.py", line 1284, in replace

[issue43964] ctypes CDLL search path issue on MacOS

2021-04-28 Thread Victor Lazzarini
New submission from Victor Lazzarini : With Python 3.9.4 ctypes.CDLL does not appear to find framework libraries installed in /Library/Frameworks. --- With Python 3.6.5: victor@MacBook-Pro ~ % python3 Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018,

[issue43954] Possible missing word on unittest doc

2021-04-28 Thread Inada Naoki
Inada Naoki added the comment: I propose to remove the namespace package support entirely. * No user (since it has been broken from Python 3.7) * Hard to maintain (we haven't noted it) * Hard to explain (need to specify the top directory. don't search recursively. See bpo-23882) --

[issue43776] Popen with shell=True yield mangled repr output

2021-04-28 Thread miss-islington
miss-islington added the comment: New changeset db0c5b786df961785ae8c803f5572ae0c8dadcc7 by M. Kocher in branch 'master': bpo-43776: Remove list call from args in Popen repr (GH-25338) https://github.com/python/cpython/commit/db0c5b786df961785ae8c803f5572ae0c8dadcc7 -- nosy:

[issue43776] Popen with shell=True yield mangled repr output

2021-04-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +3.9regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-04-28 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Thanks, Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-04-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it ok to skip tests if it is too hard to write them. Tests should be decorated with @cpython_only because other Python implementations can have working constructors for these types. It is an implementation detail that these types are implemented in C

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-28 Thread Ma Lin
Ma Lin added the comment: Thanks for reviewing this big patch. Your review makes the code better. -- ___ Python tracker ___ ___

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks, this is great work! Especially when living within the constraints of C and the existing code. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset f9bedb630e8a0b7d94e1c7e609b20dfaa2b22231 by Ma Lin in branch 'master': bpo-41486: Faster bz2/lzma/zlib via new output buffering (GH-21740) https://github.com/python/cpython/commit/f9bedb630e8a0b7d94e1c7e609b20dfaa2b22231 --

[issue42238] Deprecate suspicious.py?

2021-04-28 Thread Julien Palard
Julien Palard added the comment: I should have monitored this more closely, I started monitoring it weekly, then life got over until today when I'm even surprised to see activity on the issue, sry! (Surprise leading me to investigate why I had not received notifications from bpo, leading

[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Another issue with the tests is that it has become terribly slow. It's taking about 45 minutes to complete 1 run of the test suite. A few days ago, it took only 10 - 15 minutes. And moreover I think test_threading is also modifying sys.gettrace. The logs

[issue37903] IDLE Shell sidebar.

2021-04-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37903] IDLE Shell sidebar.

2021-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The base issue #37892 is about moving the IDLE Shell prompt away from the first line of user code input, so that code starts at the margin where continuation lines start and we can use space indents. I said the prompt could either go left, into a sidebar,

<    1   2