[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looking over the comments so far, it looks like (x, y) would be best and (independent variable, dependent variable) would be second best. The (x, y) also has the advantage of matching correlation() and covariance(). For output order, it seems that

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-17 Thread Wayne Johnston
Change by Wayne Johnston : -- keywords: +patch pull_requests: +24822 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26205 ___ Python tracker ___

[issue44163] IDLE ValueError in HyperParser

2021-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the report. Which 3.9.? hyperparser has not changed in a year, but some of the calltip logic has. This occurred when you typed a '(' and IDLE tried to open a calltip but failed, and you did not notice its absence. Easy when not looking for

[issue44159] mimetypes - "strict" on Windows

2021-05-17 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2021-05-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 7.0 -> 8.0 pull_requests: +24821 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/26204 ___ Python tracker

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-17 Thread Zachary Kneupper
Zachary Kneupper added the comment: > The ML world has collapsed on the terms X and y. (With that > capitalization). The ML community will probably use 3rd party packages for their linear regressions in any case. In my estimation, the ML community would be comfortable with any of these

[issue44164] Document what are resources in importlib.resources

2021-05-17 Thread Filipe Laíns
New submission from Filipe Laíns : It would be good to explain what constitutes a resource in the importlib.resources documentation. As per the current implementation, they should be defined as arbitrary files contained in the package. Is this correct? -- assignee: docs@python

[issue44162] importlib.resources.path no longer supports directories

2021-05-17 Thread Filipe Laíns
Filipe Laíns added the comment: Yes, it would be good to properly define resources in the current docs. Though, I am left questioning if that definition is still correct, I assume so given the implementation. I will open a new bug regarding the documentation of what is considered a resource.

[issue44162] importlib.resources.path no longer supports directories

2021-05-17 Thread T M
T M added the comment: That's fine. I couldn't find anything official on it, but that change is working for me. Thank you! -- stage: -> resolved status: open -> closed ___ Python tracker

[issue44162] importlib.resources.path no longer supports directories

2021-05-17 Thread Filipe Laíns
Filipe Laíns added the comment: Directories are not resources, the reason it previously worked was purely accidental. I assume you already found a solution in https://github.com/python/importlib_resources/issues/85, which would be importlib.resources.files(__package__) / 'dir' Can this be

[issue44163] IDLE ValueError in HyperParser

2021-05-17 Thread Raymond Hettinger
New submission from Raymond Hettinger : Here's a new error that I hadn't seen before. I occurred at some point during a full day training session, so am not sure what triggered the failure: Exception in Tkinter callback Traceback (most recent call last): File

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: > The ML world has collapsed on the terms X and y. (With that > capitalization). I just googled for "ML linear regression" and there is no consistency in either the variable used or the parameters. But most seem to use lowercase x,y. Out of the top 6 links

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24820 pull_request: https://github.com/python/cpython/pull/26203 ___ Python tracker ___

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-17 Thread Wayne Johnston
Wayne Johnston added the comment: This a simple matter of adding the address to the _private_networks constant. I will add it and issue a pull request today/tomorrow. I could add some of the others too for completeness. However, these are really special use versus private. Private is

[issue11176] [doc] give more meaningful argument names in argparse documentation

2021-05-17 Thread Bonifacio
Bonifacio added the comment: I tried applying the latest patch version but it failed. Are the original authors still interested in moving forward with this patch? If not then I could give this issue a try. -- nosy: +Bonifacio2 ___ Python tracker

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-17 Thread STINNER Victor
STINNER Victor added the comment: Compilation failed on s390x RHEL7 LTO + PGO 3.x buildbot: https://buildbot.python.org/all/#/builders/244/builds/208 (...) rm -f libpython3.11.a ar rcs libpython3.11.a Modules/getbuildinfo.o (...) Python/frozen.o lto1: error: libpython3.11.a: file too short

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-17 Thread Eryk Sun
Eryk Sun added the comment: > There are a few ways to get multiple Python installs that > could lead to launching the wrong one through PATH. > --user is one of the least likely. As far as I was aware, a --user installation prior to Python 3.10 would be the common way to have the wrong

[issue27334] [sqlite3] context manager leaves db locked if commit fails in __exit__

2021-05-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > In fact the exception is in the `pass` line rather than in the `execute` line. I can reproduce this without the `pass` line. I've taken the liberty to create a PR based on your patch, Luca. Berker's comments have been addressed in the PR. --

[issue27334] pysqlite3 context manager not performing rollback when a database is locked elsewhere for non-DML statements

2021-05-17 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland nosy_count: 3.0 -> 4.0 pull_requests: +24819 pull_request: https://github.com/python/cpython/pull/26202 ___ Python tracker

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24818 pull_request: https://github.com/python/cpython/pull/26201 ___ Python tracker ___

[issue14965] super() and property inheritance behavior

2021-05-17 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: @daniel.urban I'm attempting to move this patch along, but since the contributing process has changed in the years since your patch, you'll need to sign the CLA. Are you interested in picking this back up at all? I haven't been given any

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-17 Thread Steve Dower
Steve Dower added the comment: I didn't mean to change it. Maybe bpo did it automatically? There are a few ways to get multiple Python installs that could lead to launching the wrong one through PATH. --user is one of the least likely. -- status: open -> pending

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-17 Thread STINNER Victor
STINNER Victor added the comment: commit eaede0ded72e67cee4a91c086847d54cb64ca74c Author: Victor Stinner Date: Mon May 17 23:48:35 2021 +0200 bpo-44131: Test Py_FrozenMain() (GH-26126) * Add test_frozenmain to test_embed * Add Programs/test_frozenmain.py * Add

[issue44161] free: invalid pointer on graph and photo.message imports

2021-05-17 Thread Christian Heimes
Christian Heimes added the comment: google.cloud, proto.message, and grpc are third party extensions. They are neither part of CPython and nor maintained by us. Please report the issue with authors and maintainers of the library. -- nosy: +christian.heimes resolution: -> third

[issue44162] importlib.resources.path no longer supports directories

2021-05-17 Thread T M
T M added the comment: importlib_resources 1.1.X also behaves this way: https://github.com/python/importlib_resources/issues/85 -- ___ Python tracker ___

[issue43858] Provide method to get list of logging level names

2021-05-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: I can add getLevelNamesDict() which would return a copy of _nameToLevel, which is currently _nameToLevel = { 'CRITICAL': CRITICAL, 'FATAL': FATAL, 'ERROR': ERROR, 'WARN': WARNING, 'WARNING': WARNING, 'INFO': INFO, 'DEBUG': DEBUG,

[issue35889] sqlite3.Row doesn't have useful repr

2021-05-17 Thread Catherine Devlin
Catherine Devlin added the comment: What about a __repr__ that includes the primary key value(s) (for tables where that is defined)? That would be useful and informative, and also generally short. -- nosy: +Catherine.Devlin ___ Python tracker

[issue44162] importlib.resources.path no longer supports directories

2021-05-17 Thread T M
New submission from T M : In Python 3.7 and 3.8, importlib.resources.path worked perfectly with a directory. For example: with importlib.resources.path(__package__, "dir") as dir: os.listdir(dir) In Python 3.9, this is raised: IsADirectoryError: [Errno 21] Is a directory: 'dir' I

[issue44161] free: invalid pointer on graph and photo.message imports

2021-05-17 Thread Niels Hofmans
New submission from Niels Hofmans : Ref https://github.com/googleapis/python-pubsub/issues/414#issuecomment-842446505 @hazcod observed a fault when importing google.cloud.pubsub_v1 as above; # strace python3 -c 'from google.cloud import pubsub_v1' ... writev(2, [{iov_base="free(): invalid

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-17 Thread Eryk Sun
Eryk Sun added the comment: > For this issue, the PATH conflict would be that "pip" and "python" > refer to different Python installs. I'm aware of the problem for a per-user installation prior to 3.10. However, none of the install commands use the "--user" option, else I would have

[issue44160] speed up searching for keywords by using a dictionary

2021-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +24817 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26200 ___ Python tracker ___

[issue44160] speed up searching for keywords by using a dictionary

2021-05-17 Thread Dennis Sweeney
New submission from Dennis Sweeney : This patch ensures keyword-passing happens in linear time, fulfilling the 26-year-old TODO comment in ceval.c: XXX speed up searching for keywords by using a dictionary from time import perf_counter from itertools import repeat def bench(N): reps

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-17 Thread Zachary Kneupper
Change by Zachary Kneupper : -- keywords: +patch nosy: +zkneupper nosy_count: 5.0 -> 6.0 pull_requests: +24816 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26199 ___ Python tracker

[issue4928] tempfile.NamedTemporaryFile: automatic cleanup by OS

2021-05-17 Thread Catherine Devlin
Change by Catherine Devlin : -- keywords: +patch nosy: +Catherine.Devlin nosy_count: 8.0 -> 9.0 pull_requests: +24815 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/26198 ___ Python tracker

[issue44159] mimetypes - "strict" on Windows

2021-05-17 Thread Norman Lorrain
Norman Lorrain added the comment: Possible solution is to read the Windows Registry entries, assigning those entries as "strict=False". Unit tests pass with this change: diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 018793c4f0..dd2bddf064 100644 --- a/Lib/mimetypes.py +++

[issue41963] ConfigParser: stripping of comments should be documented

2021-05-17 Thread Jürgen Gmach
Change by Jürgen Gmach : -- keywords: +patch pull_requests: +24814 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26197 ___ Python tracker ___

[issue44159] mimetypes - "strict" on Windows

2021-05-17 Thread Norman Lorrain
New submission from Norman Lorrain : On Windows 10 machine, unit tests show this error: 0:05:10 load avg: 3.24 [221/427/1] test_mimetypes failed test test_mimetypes failed -- Traceback (most recent call last): File "D:\github\cpython\lib\test\test_mimetypes.py", line 289, in

[issue44158] Clarify documentation for redirected stdout/stderr when using subprocess in Linux

2021-05-17 Thread Andres Gomez
New submission from Andres Gomez : 1. Redirect the stderr and stdout with contextlib's redirect_stderr, redirect_stdout or just by replacing the fd in sys.stderr and sys.stdout 2. We run a subprocess with subprocess.run() 3. The documentation for subprocess states:

[issue33433] ipaddress is_private misleading for IPv4 mapped IPv6 addresses

2021-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks! -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue33433] ipaddress is_private misleading for IPv4 mapped IPv6 addresses

2021-05-17 Thread miss-islington
miss-islington added the comment: New changeset a44bb6ddb17538b7b2096d13eb79a1208bd97f34 by Miss Islington (bot) in branch '3.10': bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172) https://github.com/python/cpython/commit/a44bb6ddb17538b7b2096d13eb79a1208bd97f34

[issue42516] Add function to get caller's name

2021-05-17 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-17 Thread Catherine Devlin
Catherine Devlin added the comment: @ZackerySpytz - I made https://github.com/python/cpython/pull/26196 with a test for the desired behavior; hopefully it helps. I could try to adapt Barry's old patch myself, but it's probably better if somebody C-competent does so... --

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-17 Thread Catherine Devlin
Change by Catherine Devlin : -- nosy: +Catherine.Devlin nosy_count: 11.0 -> 12.0 pull_requests: +24813 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/26196 ___ Python tracker

[issue30274] Rename 'name' to 'fullname' argument to ExtensionFileLoader

2021-05-17 Thread Zachary Kneupper
Change by Zachary Kneupper : -- keywords: +patch nosy: +zkneupper nosy_count: 4.0 -> 5.0 pull_requests: +24812 pull_request: https://github.com/python/cpython/pull/26195 ___ Python tracker

[issue14965] super() and property inheritance behavior

2021-05-17 Thread Aaron Gallagher
Change by Aaron Gallagher : -- nosy: +Aaron Gallagher nosy_count: 20.0 -> 21.0 pull_requests: +24811 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26194 ___ Python tracker

[issue43650] MemoryError on zip.read in shutil._unpack_zipfile

2021-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks for the patch! -- resolution: remind -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue43650] MemoryError on zip.read in shutil._unpack_zipfile

2021-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 7a588621c2854bcef6ce9eeb54349b84ac078c45 by Miss Islington (bot) in branch '3.10': bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large files (GH-25058) (GH-26190)

[issue43650] MemoryError on zip.read in shutil._unpack_zipfile

2021-05-17 Thread miss-islington
miss-islington added the comment: New changeset 049c4125f8a2b482c6129db68463f58e20c31526 by Miss Islington (bot) in branch '3.9': bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large files (GH-25058)

[issue44135] issubclass documentation doesn't explain tuple semantic

2021-05-17 Thread Zachary Kneupper
Change by Zachary Kneupper : -- keywords: +patch nosy: +zkneupper nosy_count: 3.0 -> 4.0 pull_requests: +24810 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26193 ___ Python tracker

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Guido van Rossum
Guido van Rossum added the comment: I don't recall anything about that, sorry. -- ___ Python tracker ___ ___ Python-bugs-list

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread E. Paine
E. Paine added the comment: > I don't think this worked if the Tcl interpreter had been garbage collected Turns out I was wrong, it appears it *does* work. The only thing we need to change is ensuring the GIL is held when calling finalise (because, as Guido's comment says, this process can

[issue44137] importlib.resources.path raises RuntimeError when FileNotFoundError is raise in context manager

2021-05-17 Thread Filipe Laíns
Filipe Laíns added the comment: The supress(FileNotFoundError) context manager now is only active when fetching the file, not during importlib.resources.path. _path_from_resource_path is not longer a generator, so supress(FileNotFoundError) is promptly closed after the return, preventing its

[issue44137] importlib.resources.path raises RuntimeError when FileNotFoundError is raise in context manager

2021-05-17 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: Yes I understand that the function handles this specially to not raise an exception if the file is not found in the package (even though the intention behind this is not clear to me). However if a user causes a FileNotFoundException itself inside of the

[issue43643] importlib.readers.MultiplexedPath.name is not a property

2021-05-17 Thread Filipe Laíns
Filipe Laíns added the comment: For references, this was fixed in https://github.com/python/importlib_resources/commit/9822338e8de57e99aa3c26275ebdbf8925af7bc8#diff-811ea42dba2528e9a6cbedc91e993dc2a9d4b65626ad364c6ded7b03e0d0a1fa and should go into CPython in the next code sync. --

[issue44137] importlib.resources.path raises RuntimeError when FileNotFoundError is raise in context manager

2021-05-17 Thread Filipe Laíns
Filipe Laíns added the comment: This was fixed in https://github.com/python/cpython/pull/22915. It can be closed now. -- nosy: +FFY00 ___ Python tracker ___

[issue44109] missing dataclass decorator in match-statement example

2021-05-17 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Raymond: a more useful example would use dataclasses or typing.NamedTuple. The use of class variables is unusual, and it took me a while to understand how it would work. -- nosy: +eric.smith ___

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-17 Thread Steve Dower
Steve Dower added the comment: >> Usually this error occurs due to PATH conflicts. > > Python 3.8 and above does not use PATH when importing extension modules For this issue, the PATH conflict would be that "pip" and "python" refer to different Python installs. However, this one is more

[issue44157] redirect_* should also redirect C-level streams

2021-05-17 Thread Xavier Morel
New submission from Xavier Morel : In 3.4 (resp. 3.5), `redirect_stdout` and `redirect_stderr` were added to provide easy and reentrant stream redirection. Although that is documented, it seems like a waste that they only redirect the high-level `sys.std*` streams: those are already pretty

[issue36153] Freeze support documentation is misleading.

2021-05-17 Thread Sam Schott
Sam Schott added the comment: I think freeze_support becomes relevant always when the start method is spawn since `sys.executable` will point to the frozen app bundle instead of the Python interpreter. Spawn was historically only used on Windows (therefore the note in the docs) but now also

[issue43420] Optimize rational arithmetics

2021-05-17 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: > I'll have to see if the slowdown can be mitigated somehow. Yes, for small components this is a known slowdown. I'm trying to mitigate that case in https://github.com/python/cpython/pull/25518. Except for the mixed mode (Fraction's+int) - this match

[issue43420] Optimize rational arithmetics

2021-05-17 Thread Stefan Behnel
Stefan Behnel added the comment: Just FYI, I applied the same changes to the quicktions [1] module, a Cython compiled (and optimised) version of fractions.Fraction. [1] https://github.com/scoder/quicktions/ The loss in performance for small values is much higher there, almost 2x for the

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Tal Einat
Tal Einat added the comment: After thinking about this a bit more, it seems to me that using an atexit handler is definitely worth pursuing, but not for 3.10.0. I'm in favor of merging the existing PR as an immediate fix for IDLE, and following up with a general solution for tkinter using

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Tal Einat
Tal Einat added the comment: > Tcl_Finalize can be called more than once, says the tcl doc. I take that to mean that when calling Tcl_Finalize more than once, the second and following calls will do nothing rather than crash the process, corrupt memory etc. The Tcl docs are quite clear that

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tcl_Finalize can be called more than once, says the tcl doc. It also says it, or T_FThread should be called when unloading. If the tcl implementation on some system does not match the doc, then there is a bug that should be reported. If the registration is

[issue39394] re: DeprecationWarning for `flag not at the start of expression` is cutoff too early

2021-05-17 Thread Mark Shannon
Mark Shannon added the comment: I have to admit that I find the truncated version more readable. Some sort of truncation is useful, as a regex could be thousands of character long. Adding the offset to the warning message seems like a useful addition. -- nosy: +Mark.Shannon

[issue44154] Optimize Fraction pickling

2021-05-17 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: Not sure why this wasn't closed after pr merging. If this was intentional - let me know and reopen. I'm less sure if something like this will work for a Decimal(). Perhaps, if the constructor will accept an integer as the value[1], not just a tuple of

[issue44156] [subinterpreters] Replace static string caches with subinterpreter-compatible alternatives

2021-05-17 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +24809 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26161 ___ Python tracker ___

[issue42834] [subinterpreters] Convert "global" static variable caches in _json to heap variables

2021-05-17 Thread Ken Jin
Ken Jin added the comment: Hi Christian and Victor, thanks for the advice! Points taken. I'll keep in mind to create a new issue for similar things in the future so things are less confusing for everyone. The new issue for this is Issue44156. --

[issue44156] [subinterpreters] Replace static string caches with subinterpreter-compatible alternatives

2021-05-17 Thread Ken Jin
New submission from Ken Jin : Hello, this is a meta issue for replacing cached string constants in various places with alternatives compatible with subinterpreters such as _Py_IDENTIFIER. Ideally the replacements should not cause any performance regression. But to be safe I would recommend

[issue44086] py.svg not found on search result page

2021-05-17 Thread Jürgen Gmach
Jürgen Gmach added the comment: I was not aware there is a dedicated project for the sphinx theme. I created an issue at https://github.com/python/python-docs-theme/issues/80 Let's close this here. -- stage: -> resolved status: open -> closed ___

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread E. Paine
E. Paine added the comment: > Simply uncommenting that works perfectly on Ubuntu 20.04 and Windows 10. I can't remember the details, but I don't think this worked if the Tcl interpreter had been garbage collected before the Python interpreter shutdown. Therefore, Tcl_Finalize (or similar)

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was commented out in commit 43ff8683fe68424b9c179ee4970bb865e11036d6 Author: Guido van Rossum Date: Tue Jul 14 18:02:13 1998 + Temporarily get rid of the registration of Tcl_Finalize() as a low-level Python exit handler. This can attempt

[issue44155] Race condition when using multiprocessing BaseManager and Pool in Python3

2021-05-17 Thread David Chen
New submission from David Chen : could someone help me out? i spent a lot of time to debug a race condition i have encountered when using BaseManager, Pool within multiprocessing library. here is the simplified code: ``` import sys, time from multiprocessing.managers import BaseManager,

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Tal Einat
Tal Einat added the comment: Wow, I'm very surprised! Simply uncommenting that works perfectly on Ubuntu 20.04 and Windows 10. I'll make a new PR... -- ___ Python tracker

[issue44148] Raise a SystemError if frame is NULL in PyEval_GetGlobals

2021-05-17 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue43650] MemoryError on zip.read in shutil._unpack_zipfile

2021-05-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +24808 pull_request: https://github.com/python/cpython/pull/26191 ___ Python tracker ___

[issue43650] MemoryError on zip.read in shutil._unpack_zipfile

2021-05-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24807 pull_request: https://github.com/python/cpython/pull/26190 ___ Python tracker

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: That comment may be outdated. The atexit callbacks are called very early at the interpreter shutdown stage. The interpreter is still entirely intact at this point. -- ___ Python tracker

[issue44107] HTTPServer can't close http client completely

2021-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Python is calling close() after the HTTP/1.0 request. This isn't a bug on the CPython side. -- nosy: +gregory.p.smith resolution: remind -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue43650] MemoryError on zip.read in shutil._unpack_zipfile

2021-05-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith type: crash -> resource usage versions: +Python 3.10, Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue44145] hmac.update is not releasing the GIL when openssl's hmac is used

2021-05-17 Thread miss-islington
miss-islington added the comment: New changeset 2057ce87498fc30bcd358286175fe5ea34eac9da by Miss Islington (bot) in branch '3.9': [3.9] bpo-44145: Release the GIL around HMAC_Update. (GH-26157) (GH-26188) https://github.com/python/cpython/commit/2057ce87498fc30bcd358286175fe5ea34eac9da

[issue44145] hmac.update is not releasing the GIL when openssl's hmac is used

2021-05-17 Thread miss-islington
miss-islington added the comment: New changeset 60fa8b32dbfe452b81c44d2b8a96325fb19a206d by Miss Islington (bot) in branch '3.10': bpo-44145: Release the GIL around HMAC_Update. (GH-26157) https://github.com/python/cpython/commit/60fa8b32dbfe452b81c44d2b8a96325fb19a206d --

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Tal Einat
Tal Einat added the comment: > What if register Tcl_Finalize as an atexit callback? Precisely that was tried a long time ago (2002?) and decided against, as can be seen by the comment left behind at the end of _tkinter.c: #if 0 /* This was not a good idea; through bindings,

[issue33433] ipaddress is_private misleading for IPv4 mapped IPv6 addresses

2021-05-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24806 pull_request: https://github.com/python/cpython/pull/26189 ___ Python tracker

[issue44145] hmac.update is not releasing the GIL when openssl's hmac is used

2021-05-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +24804 pull_request: https://github.com/python/cpython/pull/26187 ___ Python tracker

[issue44145] hmac.update is not releasing the GIL when openssl's hmac is used

2021-05-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +24805 pull_request: https://github.com/python/cpython/pull/26188 ___ Python tracker ___

[issue33433] ipaddress is_private misleading for IPv4 mapped IPv6 addresses

2021-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Questionable as to if this counts as a bug or not, but I agree it is counter-intuitive given the purpose of actually checking the .is_private property of an address. So updating the behavior makes sense, but I'll be conservative w.r.t. behavior changes

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if register Tcl_Finalize as an atexit callback? -- ___ Python tracker ___ ___

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2021-05-17 Thread STINNER Victor
STINNER Victor added the comment: > I reopen the issue to remind me that collections.deque() freelist is shared > by all interpreters. Each deque instance now has its own free list. But dtoa.c still has a per-process cache, shared by all interpreters. --

[issue42834] [subinterpreters] Convert "global" static variable caches in _json to heap variables

2021-05-17 Thread Christian Heimes
Change by Christian Heimes : -- title: [subinterpreters] Make static caches in various places subinterpreter compatible -> [subinterpreters] Convert "global" static variable caches in _json to heap variables ___ Python tracker

[issue42834] [subinterpreters] Make static caches in various places subinterpreter compatible

2021-05-17 Thread Christian Heimes
Christian Heimes added the comment: KJ, please create a new bug for compile.c. bpo's are cheap to create. -- nosy: +christian.heimes resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker