[issue43471] Fails to import bz2 on Ubuntu

2021-03-10 Thread Eric V. Smith
Eric V. Smith added the comment: You're probably missing needed dependencies. For example, see https://stackoverflow.com/questions/12806122/missing-python-bz2-module If you look at the output of make, you should be able to see that _bz2 wasn't built. -- nosy: +eric.smith __

[issue43471] Fails to import bz2 on Ubuntu

2021-03-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : Module bz2 fails to be imported on Ubuntu due to lack of '_bz2'. We try "import bz2" on Mac, it can work well. Errors on Ubuntu == >>import bz2 Traceback (most recent call last): File "/home/xxm/Desktop/apifuzz/do

[issue43470] Installation of Python 3.6.13 fails on MacOS Big Sur 11.2.3

2021-03-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : Installation of latest Python 3.6.13 fails on MacOS Big Sur 11.2.3. The source code is downloaded from python.org. Then we try to install it by commands "./configure;sudo make;sudo make install". However the installation crashes. The installation succeeds on

[issue43469] Python 3.6 fails to run on MacOS (Big Sur 11.2.3)

2021-03-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : Python 3.6 can work well on old version of MacOS. When I upgrade MacOS to the latest version Big Sur 11.2.3. Python 3.6 fails to start and crashes. Python 3.7, 3.8, 3.9 can perform well on the new version MacOS Big Sur 11.2.3. The crash information attached a

[issue43468] functools.cached_property locking is plain wrong.

2021-03-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43468] functools.cached_property locking is plain wrong.

2021-03-10 Thread Antti Haapala
New submission from Antti Haapala : The locking on functools.cached_property (https://github.com/python/cpython/blob/87f649a409da9d99682e78a55a83fc43225a8729/Lib/functools.py#L934) as it was written is completely undesirable for I/O bound values, parallel processing. Instead of protecting the

[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-10 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue1207613] Idle Editor: Bottom Scroll Bar

2021-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Request in #43467 closed as duplicate of this. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue43467] IDLE: horizontal scrollbar

2021-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: This has been debated for 15 years see #1207613. The current patch, which only displays a scrollbar when needed, 'works', but in a way that is not visually acceptable. -- resolution: -> duplicate stage: -> resolved status: open -> closed supersede

[issue43420] Optimize rational arithmetics

2021-03-10 Thread Tim Peters
Tim Peters added the comment: Issue 21922 lists several concerns, and best I know they all still apply. As a practical matter, I expect the vast bulk of core Python developers would reject a change that sped large int basic arithmetic by a factor of a billion if it slowed down basic arithmet

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-10 Thread Saiyang Gou
Saiyang Gou added the comment: We understand that audit hooks should not be used to build a sandbox with Python. It is natural for audit hooks to appear in CTF challenges though, as many CTF challenges intentionally try to use a wrong way to secure a system (and let players prove it wrong).

[issue43467] IDLE: horizontal scrollbar

2021-03-10 Thread David E. Franco G.
David E. Franco G. added the comment: How is that clutter? Even the most basic text editor (window notepad) have it, and knowing that yours or whoever code you are looking at extend horizontally beyond the size of your current windows size is a relevant information. -- Added file: ht

[issue43467] IDLE: horizontal scrollbar

2021-03-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I think IDLE is better-off without a horizontal scroll bar. For teaching purposes, it's valuable to a screen that focuses on content and is devoid of clutter. -- nosy: +rhettinger ___ Python tracker

[issue43454] [sqlite3] Add support for R*Tree callbacks

2021-03-10 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Test run output (see attached test file): $ ./python.exe test_rtree.py ARGS: ((-80.77490234375, -80.77469635009766, 35.377593994140625, 35.377803802490234), (45.3, 22.9, 5.0)) KWARGS: {'num_queued': [0, 1], 'context': None, 'level': 0, 'max_level': 1,

[issue43454] [sqlite3] Add support for R*Tree callbacks

2021-03-10 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI, PoC patch attached. Lacks tests and some #ifdefs. Let me know if I should create a PR out of it. -- keywords: +patch Added file: https://bugs.python.org/file49866/patch.diff ___ Python tracker

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The problem is that some features are not baked into the .a files. Oh, I see. So when using modern versions of openssl what shared objects do we expect to be in the NEEDED section? Right now, I see this in python3.8 in Ubuntu with OpenSSL 1.1.1: ❯

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Christian Heimes
Christian Heimes added the comment: > Not sure I follow. What's the problem here? The advantage of static linking > here will be to not have a dependency on the shared object, which can be > quite beneficial. The problem is that some features are not baked into the .a files. They are always

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Note that I am not proposing to statically link the extensions into the core, I am proposing to statically link openssl into the extensions, so the symbols are in the text segment of the extension. -- ___ P

[issue43467] IDLE: horizontal scrollbar

2021-03-10 Thread David E. Franco G.
New submission from David E. Franco G. : I noticed that the horizontal scroll bar is missing, I think it was present in previous version, regardless it would be nice if its be present. Thanks. -- assignee: terry.reedy components: IDLE files: no scroll bar.PNG messages: 388469 nosy: Da

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > OpenSSL uses dynamic linking by default. As long as OpenSSL provide a .a file (they do) you can always static link. That is a decision of how you integrate the library. > Static linking is problematic for dynamic engine support. Not sure I follow.

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Christian Heimes
Christian Heimes added the comment: I would rather not support static linking. OpenSSL uses dynamic linking by default. Static linking is problematic for dynamic engine support. This is going to become an even bigger issue with OSSL providers in OpenSSL 3.0.0. I don't know yet how well OpenS

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Christian Heimes
Christian Heimes added the comment: $ tar -xzf openssl-1.1.1j.tar.gz $ pushd openssl-1.1.1j $ ./config \ --prefix=/home/heimes/dev/python/custom-openssl \ --openssldir=\ $(find /etc/ -name openssl.cnf -quit -printf "%h" 2>/dev/null) $ make $ make install_sw $ popd $ pushd cpyth

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have a suggestion (I am ok with also doing both). We should add also a flag that allows to statically compile openssl into the extension modules (if the .a are available) so there will be no shared object dependency. This allows us to have artifacts

[issue38671] pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist

2021-03-10 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware type: -> behavior versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +23586 pull_request: https://github.com/python/cpython/pull/24820 ___ Python tracker ___ ___

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-10 Thread Christian Heimes
New submission from Christian Heimes : Python's configure script has the option --with-openssl. It sets a path to a custom OpenSSL installation. Internally it provides OPENSSL_INCLUDES, OPENSSL_LIBS, and OPENSSL_LDFLAGS. The setup.py script turns the variables into include_dirs, library_dirs,

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-10 Thread Frank
Frank added the comment: PEP 551 is confusing. It looked suggesting that it's a "security tool" that "detects, identifies and analyzes misuse of Python" to me (and apparently many others). examples shown in the PEP includes WannaCrypt, APTs, all of which involves the good old remote code ex

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-10 Thread Christian Heimes
Christian Heimes added the comment: Don't feel bad about it. Nintendo made a very similar mistake. The trucha bug made it trivial to bypass DRM of Wii games. -- ___ Python tracker __

[issue43456] Remove _xxsubinterpreters from sys.stdlib_module_names

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: > Thanks, Victor! And I will independently say that my use of > sys.stdlib_module_names suggests the list seems accurate(and is useful)! Well, it helps to define "what is the stdlib?" ;-) -- ___ Python tracker

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-10 Thread David Wood
David Wood added the comment: Christian/Eric - Thank you both so much for taking time on this. Christian had pointed out the use of memcpy vs strncpy. It turns out that while strncpy is designed to copy a specific number of chars, it turns out that it stops on null. I did make the change

[issue43456] Remove _xxsubinterpreters from sys.stdlib_module_names

2021-03-10 Thread Brett Cannon
Brett Cannon added the comment: Thanks, Victor! And I will independently say that my use of sys.stdlib_module_names suggests the list seems accurate(and is useful)! -- ___ Python tracker ___

[issue43292] xml.ElementTree iterparse filehandle left open

2021-03-10 Thread Martin Panter
Change by Martin Panter : -- type: security -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43292] xml.ElementTree iterparse filehandle left open

2021-03-10 Thread Martin Panter
Martin Panter added the comment: Perhaps this can be handled with Issue 25707, which is open for adding an API to close the file, similar to how "os.scandir" iterator implements a context manager and "close" method. -- nosy: +martin.panter superseder: -> Add the close method for Ele

[issue43465] ./configure --help describes what --with-ensurepip does poorly

2021-03-10 Thread David Tucker
Change by David Tucker : -- nosy: +tucked ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue43465] ./configure --help describes what --with-ensurepip does poorly

2021-03-10 Thread Enji Cooper
New submission from Enji Cooper : Many users are used to --without-* flags in autoconf disabling features (and optionally not installing them). --without-ensurepip (at face value to me) suggests it shouldn't be built/installed. This comment in https://bugs.python.org/issue20417 by dstufft imp

[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: Fedora downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=1937476 -- ___ Python tracker ___ __

[issue43311] bpo-43311: PyInterpreterState_New use thread-specific data tstate before key create .

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your bug report junyixie, it should now be fixed. See bpo-40522 for the follow up. -- ___ Python tracker ___

[issue43311] bpo-43311: PyInterpreterState_New use thread-specific data tstate before key create .

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 87f649a409da9d99682e78a55a83fc43225a8729 by Victor Stinner in branch 'master': bpo-43311: Create GIL autoTSSkey ealier (GH-24819) https://github.com/python/cpython/commit/87f649a409da9d99682e78a55a83fc43225a8729 -- ___

[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: I created https://python-security.readthedocs.io/vuln/pydoc-getfile.html to track this vulnerability. The is no CVE section yet since the CVE is currently only *RESERVED*. -- ___ Python tracker

[issue42988] [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-03-10 Thread Miro Hrončok
Miro Hrončok added the comment: This is now CVE-2021-3426. -- title: [security] Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem -> [security] CVE-2021-3426: Information disclosure via pydoc -p: /getfile?key=path allows to read arb

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-10 Thread Vincent
Vincent added the comment: No, not hang. It returns a NoneType. See this example: >>> x = canvas.bbox('tunnel') >>> type(x) >>> -- ___ Python tracker ___ __

[issue43311] bpo-43311: PyInterpreterState_New use thread-specific data tstate before key create .

2021-03-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23585 pull_request: https://github.com/python/cpython/pull/24819 ___ Python tracker ___ __

[issue43353] Document that logging.getLevelName() can return a numeric value.

2021-03-10 Thread Fred Drake
Fred Drake added the comment: Mariusz: Good point. IMO, an insane API behavior, but a legacy we must live with. No further objections from me. -- ___ Python tracker ___ ___

[issue43353] Document that logging.getLevelName() can return a numeric value.

2021-03-10 Thread Mariusz Felisiak
Mariusz Felisiak added the comment: "numeric" doesn't refer to the "Level #" representation but to the fact that `getLevelName()` returns a numeric value when the corresponding name is passed, e.g. >>> getLevelName('CRITICAL') 50 -- ___ Python t

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-03-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Riccardo - FWIW I agree, the wrong part of the stack was blamed and a CVE was wrongly sought for against CPython on this one. It's sewage under the bridge at this point. The API change has shipped in several different stable releases and thus is something

[issue43353] Document that logging.getLevelName() can return a numeric value.

2021-03-10 Thread Fred Drake
Fred Drake added the comment: Just noticed this fly by in the stream of emails... sorry for not commenting earlier. The patch seems to describe "Level #" as "numeric", which I would not be inclined to do. It includes the numeric value since there's no available name for it, but as a value,

[issue43353] Document that logging.getLevelName() can return a numeric value.

2021-03-10 Thread Mariusz Felisiak
Mariusz Felisiak added the comment: Do we want to backport this patch? If yes, I can prepare backports. If not, we can close the ticket. -- ___ Python tracker ___ ___

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-10 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe return the original string? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue43464] set intersections should short-circuit

2021-03-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43287] Use PEP 590 vectorcall to speed up calls to filter()

2021-03-10 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue43287] Use PEP 590 vectorcall to speed up calls to filter()

2021-03-10 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 9a9c11ad41d7887f3d6440e0f0e8966156d959b5 by Dong-hee Na in branch 'master': bpo-43287: Use PEP 590 vectorcall to speed up filter() (GH-24611) https://github.com/python/cpython/commit/9a9c11ad41d7887f3d6440e0f0e8966156d959b5 -- __

[issue43464] set intersections should short-circuit

2021-03-10 Thread Josh Rosenberg
New submission from Josh Rosenberg : At present, set_intersection (the C name for set.intersection) optimizes for pairs of sets by iterating the smallest set and only adding entries found in the larger, meaning work is proportionate to the smallest input. But when the other input isn't a set,

[issue43311] bpo-43311: PyInterpreterState_New use thread-specific data tstate before key create .

2021-03-10 Thread junyixie
junyixie added the comment: Yes, this is an issue under building Python with --with-experimental-isolated-subinterpreters -- ___ Python tracker ___ __

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-03-10 Thread Riccardo Schirone
Riccardo Schirone added the comment: > So far, we at openSUSE had to package at least SQLAlchemy, Twisted, yarl and > furl. The author of the first one acknowledged use of semicolon as a bug. I > don't think it was so bad. Did you upstream fixes for those packages? Asking because if this is

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What do you mean by "return nothing not even None"? Does it hang? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 531f2ebd60a662111c78107935d249d3d52f9a4f by Miss Islington (bot) in branch '3.9': bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815) (GH-24817) https://github.com/python/cpython/commit/531f2ebd60a662111c78107935d249d3d52f9a4

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-03-10 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +23584 pull_request: https://github.com/python/cpython/pull/24818 ___ Python tracker ___ ___ P

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-10 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread miss-islington
miss-islington added the comment: New changeset ac5e23c540f5ec20fc390c72e097e0fdaf8b7ac9 by Miss Islington (bot) in branch '3.8': bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815) https://github.com/python/cpython/commit/ac5e23c540f5ec20fc390c72e097e0fdaf8b7ac9

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-10 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-10 Thread Florian Bruhin
New submission from Florian Bruhin : Consider a file such as: # from __future__ import annotations from typing import TYPE_CHECKING, Union, get_type_hints if TYPE_CHECKING: import types def fun(a: 'types.SimpleNamespace', b: Union[int, str]): pass print(fu

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +23582 pull_request: https://github.com/python/cpython/pull/24816 ___ Python tracker ___ __

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +23583 pull_request: https://github.com/python/cpython/pull/24817 ___ Python tracker ___ __

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1fa17e8cc62775a2e34b158135ce8589f9394f03 by Victor Stinner in branch 'master': bpo-43406: Fix test_signal.test_stress_modifying_handlers() (GH-24815) https://github.com/python/cpython/commit/1fa17e8cc62775a2e34b158135ce8589f9394f03 --

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-03-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Petr, thank you. Let's treat it as a new issue linked to this. -- ___ Python tracker ___ ___ Pyt

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-10 Thread Vincent
Change by Vincent : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-03-10 Thread Petr Viktorin
Petr Viktorin added the comment: With the fix, parse_qs[l] doesn't handle bytes separators correctly. There is an explicit type check for str/bytes: if not separator or (not isinstance(separator, (str, bytes))): raise ValueError("Separator must be of type string or bytes.") but a

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-10 Thread Vincent
New submission from Vincent : canvas.bbox() should return a tuple containing values whether an item is hidden or not. canvax.coords() does return a tuple when an item is hidden. Steps to reproduce: ``` from tkinter import * root = Tk() canvas = Canvas(root) id1 = canvas.create_line(1

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: > The new functional test has two race conditions. I don't think that it's a bug in Python, but more race conditions in the test. -- ___ Python tracker

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23581 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/24815 ___ Python tracker ___ __

[issue43461] Tottime column for cprofile output does not add up

2021-03-10 Thread Jonathan Frawley
New submission from Jonathan Frawley : I am using cprofile and PStats to try and figure out where bottlenecks are in a program. When I sum up all of the times in the "tottime" column, it only comes to 57% of the total runtime. Is this due to rounding of times or some other issue? --

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: The change added a new functional test. As I expected, it failed on "AMD64 Debian root". I expected it because the previously added functional test failed failed on "AMD64 Debian root", I reported the race condition in 2017 and it's still not fixed: bpo-30849

[issue43460] Exception copy error

2021-03-10 Thread Douglas Raillard
Douglas Raillard added the comment: The solution based on the signature is something along those lines: class E(BaseException): def __new__(cls, *args, **kwargs): """ Fix exception copying. Turn all the keyword arguments into positional argument

[issue43460] Exception copy error

2021-03-10 Thread Douglas Raillard
New submission from Douglas Raillard : Instances of subclasses of BaseException created with keyword argument fail to copy properly as demonstrated by: import copy class E(BaseException): def __init__(self, x): self.x=x # works fine e = E(None) copy.co

[issue43456] Remove _xxsubinterpreters from sys.stdlib_module_names

2021-03-10 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue43456] Remove _xxsubinterpreters from sys.stdlib_module_names

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset a9c03d7fb78ab79710f79190f0584a09d9fd1a61 by Victor Stinner in branch 'master': bpo-43456: Remove _xxsubinterpreters from sys.stdlib_module_names (GH-24814) https://github.com/python/cpython/commit/a9c03d7fb78ab79710f79190f0584a09d9fd1a61 -

[issue43448] exec() ignores scope.

2021-03-10 Thread Mark Dickinson
Mark Dickinson added the comment: > At most I think this issue is a duplicate of bpo-24800 Agreed; closing here. -- nosy: +mark.dickinson resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> exec docs should note that the no argument form in a local sc

[issue37374] Minidom does not have to escape quote inside text segments

2021-03-10 Thread Viktor Plézer
Viktor Plézer added the comment: Sorry, to agree with @mitar -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37374] Minidom does not have to escape quote inside text segments

2021-03-10 Thread Viktor Plézer
Viktor Plézer added the comment: Almost 2 years later I only registered to agree with Daniel. This is extremely annoying. Use case: I am generating XMLs for Apigee, where my conditions contain quotes and there's no need to escape them. -- nosy: +viplezer

[issue43456] Remove _xxsubinterpreters from sys.stdlib_module_names

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: With PR 24814, sys.stdlib_module_names contains 301 names: __future__ _abc _aix_support _ast _asyncio _bisect _blake2 _bootsubprocess _bz2 _codecs _codecs_cn _codecs_hk _codecs_iso2022 _codecs_jp _codecs_kr _codecs_tw _collections _collections_abc _compat_pick

[issue43456] Remove _xxsubinterpreters from sys.stdlib_module_names

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: > I noticed that _xxsubinterpreters is in sys.stdlib_module_names but none of > the other `_xx` modules are included (nor is 'test'). Since > _xxsubinterpreters is only meant for testing (ATM) I think it should probably > be left out. Oh right, I agree that

[issue43456] Remove _xxsubinterpreters from sys.stdlib_module_names

2021-03-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +23580 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24814 ___ Python tracker ___ _

[issue43445] Add frozen modules to sys.stdlib_module_names

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: Neal: you may also read the thread on python-dev: https://mail.python.org/archives/list/python-...@python.org/thread/BTX7SH2CR66QCLER2EXAK2GOUAH2U4CL/ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue42955] Add sys.stdlib_module_names: list of stdlib module names (Python and extension modules)

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: I also created a thread on python-dev to discuss this new feature: https://mail.python.org/archives/list/python-...@python.org/thread/BTX7SH2CR66QCLER2EXAK2GOUAH2U4CL/ -- ___ Python tracker

[issue43445] Add frozen modules to sys.stdlib_module_names

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 307745aa42196ad3fd97fee4a1ae6496bb895596 by Victor Stinner in branch 'master': bpo-43445: Add frozen modules to sys.stdlib_module_names (GH-24798) https://github.com/python/cpython/commit/307745aa42196ad3fd97fee4a1ae6496bb895596 -- __

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2021-03-10 Thread STINNER Victor
STINNER Victor added the comment: > Actually, interp->none shared _Py_NoneStruct variable. My PR 18301 is a draft to check if we can solve the issue without breaking the C API compatibility. You're right that it doesn't solve the issue, it only checks the C API issue. IMO the PR 18301 proves

[issue43364] Windows: Make UTF-8 mode more accessible

2021-03-10 Thread Inada Naoki
Inada Naoki added the comment: > Maybe as a global setting, the better thing to copy is the button at the end > of installation that offers to change the long path policy? I tried it but there is no enough space. See GH-24813 and attached screenshot. -- Added file: https://bugs.pytho

[issue43364] Windows: Make UTF-8 mode more accessible

2021-03-10 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23579 pull_request: https://github.com/python/cpython/pull/24813 ___ Python tracker ___ _

[issue43420] Optimize rational arithmetics

2021-03-10 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: On Tue, Mar 09, 2021 at 05:11:09AM +, Tim Peters wrote: > those for + and - are much subtler In fact, these optimizations will payoff faster (wrt denominators size), esp. due to gcd==1 branch. Sorry for off-topic: > WRT which, I added Python's Karats

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-10 Thread Christian Heimes
Christian Heimes added the comment: Thanks, Pablo and Victor! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-10 Thread miss-islington
miss-islington added the comment: New changeset f814675376318e0bf9e14fc62826a113cb4ca652 by Pablo Galindo in branch '3.9': [3.9] bpo-43439: Add audit hooks for gc functions (GH-24794). (GH-24811) https://github.com/python/cpython/commit/f814675376318e0bf9e14fc62826a113cb4ca652 -- no

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-10 Thread miss-islington
miss-islington added the comment: New changeset a6d0182879d0bf275c4feb38b57f73236ab9c06c by Pablo Galindo in branch '3.8': [3.8] bpo-43439: Add audit hooks for gc functions (GH-24794). (GH-24810) https://github.com/python/cpython/commit/a6d0182879d0bf275c4feb38b57f73236ab9c06c -- no

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-10 Thread Christian Heimes
Christian Heimes added the comment: Could you please give us an example for an incorrect output and corresponding correct output as bytes representation? -- ___ Python tracker __