[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-10-26 Thread Sonia
New submission from Sonia : The url of [The Perils of Floating Point](http://www.lahey.com/float.htm) seems a bit weird in the page https://docs.python.org/3/tutorial/floatingpoint.html. It redirects me to a webpage that sells dugs. Not sure if the resource was meant to find this:

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-26 Thread Ned Deily
Change by Ned Deily : -- assignee: terry.reedy -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-26 Thread Ned Deily
Ned Deily added the comment: Marc, thanks for providing the patch for Tk. There are some issues with it, though, at least when used with IDLE. I built a Python 3.10.0+ universal2 installer, like what we provide on python.org, with just the updated Tk and tested it on macOS 10.9, 10.13,

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-26 Thread Ned Deily
Change by Ned Deily : -- nosy: +lukasz.langa, mdk, pablogsal priority: normal -> release blocker versions: +Python 3.9 ___ Python tracker ___

[issue45619] Mentioning structural pattern matching in the list of binding

2021-10-26 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45617] sys.stdin does not iterate correctly on '\r' line separator

2021-10-26 Thread Eryk Sun
Eryk Sun added the comment: > '\r' is not handled, though it is documented that it > should be supported. Where is it documented that sys.stdin uses universal newlines mode? The newline behavior isn't documented in the sys module [1], though it should be. It's hard coded in create_stdio()

[issue45619] Mentioning structural pattern matching in the list of binding

2021-10-26 Thread Arthur Milchior
Change by Arthur Milchior : -- keywords: +patch pull_requests: +27495 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29232 ___ Python tracker ___

[issue45619] Mentioning structural pattern matching in the list of binding

2021-10-26 Thread Arthur Milchior
New submission from Arthur Milchior : https://docs.python.org/3/reference/executionmodel.html list all of the way a variable may be bound. However, it seems that it was not updated. Indeed, structural pattern matching in 3.10 also allows to bind a variable and is not mentionned. As a

[issue45616] Python Launcher Matches 3.10 instead of 3.1

2021-10-26 Thread Yu Liu
Yu Liu added the comment: Had a quick look at the launcher file. Maybe something like this? diff --git a/PC/launcher.c b/PC/launcher.c index fbfb49a..a965a9d 100644 --- a/PC/launcher.c +++ b/PC/launcher.c @@ -542,7 +542,7 @@ find_python_by_version(wchar_t const * wanted_ver) } for

[issue45616] Python Launcher Matches 3.10 instead of 3.1

2021-10-26 Thread Yu Liu
Yu Liu added the comment: Had a quick look in the launcher file. Maybe something like this? diff --git a/PC/launcher.c b/PC/launcher.c index fbfb49a..a965a9d 100644 --- a/PC/launcher.c +++ b/PC/launcher.c @@ -542,7 +542,7 @@ find_python_by_version(wchar_t const * wanted_ver) } for

[issue42738] subprocess: don't close all file descriptors by default (close_fds=False)

2021-10-26 Thread Richard Xia
Richard Xia added the comment: I'd like to provide another, non-performance-related use case for changing the default value of Popen's close_fds parameters back to False. In some scenarios, a (non-Python) parent process may want its descendant processes to inherit a particular file

[issue45586] Use starred expressions in subscripts

2021-10-26 Thread Dennis Sweeney
Dennis Sweeney added the comment: Yes, I don't believe the PEP is suggesting any changes to list.__getitem__. If you want to suggest such enhancements, I would suggest first sending a message to the python-ideas mailing list or on discuss.python.org. --

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-26 Thread Maciej Olko
Change by Maciej Olko : -- keywords: +patch pull_requests: +27493 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29230 ___ Python tracker ___

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-26 Thread Maciej Olko
Maciej Olko added the comment: The pin can be removed after bumping Sphinx to at least 3.5.4, which introduced upper limit for docutils version. https://github.com/sphinx-doc/sphinx/commit/9263eea38379822e053c67ad1d17036d724c5e41 -- ___ Python

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-26 Thread Maciej Olko
Change by Maciej Olko : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-26 Thread Maciej Olko
Change by Maciej Olko : -- versions: -Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-26 Thread Maciej Olko
New submission from Maciej Olko : Since the release of Docutils 0.18 today building Python documentation fails. In CPython repository we have Sphinx pinned to 3.2.1, which has too loose requirement for Docutils version in install_requires – docutils>=0.12. Example of failing build:

[issue40915] multiple problems with mmap.resize() in Windows

2021-10-26 Thread Tim Golden
Change by Tim Golden : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40915] multiple problems with mmap.resize() in Windows

2021-10-26 Thread Tim Golden
Tim Golden added the comment: New changeset aea5ecc458084e01534ea6a11f4181f369869082 by Tim Golden in branch 'main': bpo-40915: Fix mmap resize bugs on Windows (GH-29213) https://github.com/python/cpython/commit/aea5ecc458084e01534ea6a11f4181f369869082 --

[issue42260] [C API] Add _PyInterpreterState_SetConfig(): reconfigure an interpreter

2021-10-26 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -27312 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-26 Thread lance robotson
lance robotson added the comment: This issue is happening for me in with my installation of python 3.10 running the release version of mac os monterey 12.0.1 running on an intel mac, I noticed this behavior trying to open or save files in IDLE. -- nosy: +robotson

[issue45617] sys.stdin does not iterate correctly on '\r' line separator

2021-10-26 Thread Kelly Brazil
Change by Kelly Brazil : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45504] [argparse] Entering a partial config_parser flag works with subparsers

2021-10-26 Thread paul j3
Change by paul j3 : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45617] sys.stdin does not iterate correctly on '\r' line separator

2021-10-26 Thread Kelly Brazil
New submission from Kelly Brazil : When iterating on sys.stdin lines, '\r\n' and '\n' are handled correctly, but '\r' is not handled, though it is documented that it should be supported. Example code: import sys for line in sys.stdin: print(repr(line)) Results in Python 3.8.9: $ echo -e

[issue45548] Update Modules/Setup

2021-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 26.10.2021 20:47, Marc-Andre Lemburg wrote: >> Brett removed a lot of stuff in 01cf4fb9c1aa567484c2ffb1b11f9b3fe9949b05 to >> make the file more readable. I removed unnecessary -D, -I, and -L to make >> the file even more readable. You can pass custom

[issue45548] Update Modules/Setup

2021-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 26.10.2021 19:42, Christian Heimes wrote: > > Brett removed a lot of stuff in 01cf4fb9c1aa567484c2ffb1b11f9b3fe9949b05 to > make the file more readable. I removed unnecessary -D, -I, and -L to make the > file even more readable. You can pass custom

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-10-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45616] Python Launcher Matches 3.10 instead of 3.1

2021-10-26 Thread Gabe R.
New submission from Gabe R. : I have both Python 3.1-64 and 3.10-64 installed on the same Windows machine. If I attempt to launch Python 3.1 using the command `py -3.1-64`, the launcher incorrectly starts Python 3.10. -- components: Windows messages: 405054 nosy: Marsfan,

[issue45548] Update Modules/Setup

2021-10-26 Thread Christian Heimes
Christian Heimes added the comment: Brett removed a lot of stuff in 01cf4fb9c1aa567484c2ffb1b11f9b3fe9949b05 to make the file more readable. I removed unnecessary -D, -I, and -L to make the file even more readable. You can pass custom flags to ./configure. Setup should not be edited by

[issue45545] chdir __exit__ is not safe

2021-10-26 Thread Jeremy
Jeremy added the comment: > How common do you expect such errors to be though? Do you expect them to be > more or less common than with os.chdir()? Do you expect the mitigations to > be any different than with a failing os.chdir()? It has come up for me with some frequency. But I'm sure

[issue45591] PathFinder does not find namespace packages children

2021-10-26 Thread Filipe Laíns
Filipe Laíns added the comment: Thank you for clarifying, that does work. This is surprising behavior to me, do you recall what was the reasoning for this design? Or is there some discussion you can point me to? And sorry for bothering, I know I am asking too many questions, but I'd like to

[issue45615] Missing test for type of error when printing traceback for non-exception

2021-10-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45591] PathFinder does not find namespace packages children

2021-10-26 Thread Brett Cannon
Brett Cannon added the comment: > I am curious, what is `fullname` supposed to mean then? "full" in what sense? You can still specify the full name of the module you're trying to import, but you also need to pass in the location information for that module. So the code does

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-26 Thread Andrei Kulakov
Andrei Kulakov added the comment: Martin: It's true that exceptions raised in other methods called from __init__ would still have this issue, but I feel like ~90% of it would be solved by the proposed fix. It does introduce an inconsistency but it does so because it reflects the

[issue45235] argparse does not preserve namespace with subparser defaults

2021-10-26 Thread paul j3
Change by paul j3 : -- stage: resolved -> test needed status: closed -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-10-26 Thread Kartik Subbarao
Change by Kartik Subbarao : -- nosy: +kartiksubbarao ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45615] Missing test for type of error when printing traceback for non-exception

2021-10-26 Thread Irit Katriel
New submission from Irit Katriel : In C code, there is a check in print_exception that the value passed in is of type exception, and it raises TypeError otherwise. This check is not covered by tests, and indeed it is hard to reach it with tests because the _testcapi module has this check as

[issue45548] Update Modules/Setup

2021-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 26.10.2021 16:17, Christian Heimes wrote: > > Christian Heimes added the comment: > > Brett, we can use AM_CONDITIONAL() to conditionally enable/disable a feature > and AC_CONFIG_FILES() to create a Modules/Setup from a template: > > Example: > >

[issue16235] Add python-config.sh for use during cross compilation.

2021-10-26 Thread Éric Araujo
Change by Éric Araujo : -- Removed message: https://bugs.python.org/msg405026 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45548] Update Modules/Setup

2021-10-26 Thread Christian Heimes
Christian Heimes added the comment: Typo, the last line should read "@HAVE_SCPROXY_FALSE@_scproxy" -- ___ Python tracker ___ ___

[issue45548] Update Modules/Setup

2021-10-26 Thread Christian Heimes
Christian Heimes added the comment: Brett, we can use AM_CONDITIONAL() to conditionally enable/disable a feature and AC_CONFIG_FILES() to create a Modules/Setup from a template: Example: The conditional AM_CONDITIONAL([HAVE_SCPROXY], [test "$ac_sys_system" = "Darwin"]) sets

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 26.10.2021 16:02, Eric Snow wrote: > > FYI, I figured out the problem on my end. I wasn't using an installed > python. Once I did it worked fine. Oh, you mean you tried using it directly from the source tree ? I don't think I ever tried that direct

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-26 Thread Petr Viktorin
Petr Viktorin added the comment: PEP 630 has motivations and technical notes. What needs to be documented better is how both applies to stdlib. Specifically: - list the behavior changes when static types are converted to heap types (mutability, pickleability, any more?), and document how to

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-26 Thread Eric Snow
Eric Snow added the comment: FYI, I figured out the problem on my end. I wasn't using an installed python. Once I did it worked fine. -- ___ Python tracker ___

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2021-10-26 Thread Mark Shannon
Change by Mark Shannon : -- nosy: +Mark.Shannon nosy_count: 9.0 -> 10.0 pull_requests: +27492 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29228 ___ Python tracker

[issue45614] traceback of exception with non-unicode __module__

2021-10-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45613] [sqlite3] set threadsafety attribute based on default SQLite threaded mode

2021-10-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: BTW, I've verified that the overhead of adding this query is negligible. $ python -m pyperf compare_to --min-speed 1 main.json patched.json Benchmark hidden because not significant (1): sqlite_synth git switch - Switched to branch 'main' $ ./python.exe

[issue45613] [sqlite3] set threadsafety attribute based on default SQLite threaded mode

2021-10-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +27491 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29227 ___ Python tracker

[issue45613] [sqlite3] set threadsafety attribute based on default SQLite threaded mode

2021-10-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI, it is also possible to change the threaded mode using sqlite3_config(), however that API is not exposed to the sqlite3 module, and there is no plans for doing so in the near future :) -- ___ Python

[issue45613] [sqlite3] set threadsafety attribute based on default SQLite threaded mode

2021-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: +1 on setting the attributes dynamically. Other DB-API modules use a similar approach. -- ___ Python tracker ___

[issue45614] traceback of exception with non-unicode __module__

2021-10-26 Thread Irit Katriel
Irit Katriel added the comment: In C it is missing the '.' between and the qualname. In python it raises an exception when trying to + the module field with a string. -- ___ Python tracker

[issue45613] [sqlite3] set threadsafety attribute based on default SQLite threaded mode

2021-10-26 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Currently, the sqlite3 DB-API 2.0 attribute 'threadsafety' is hard-coded to 1, meaning "threads may share the module, but not connections". This is not always true, since it depends on the default SQLite threaded mode, selected at compile-time with the

[issue45613] [sqlite3] set threadsafety attribute based on default SQLite threaded mode

2021-10-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +paul.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45614] traceback of exception with non-unicode __module__

2021-10-26 Thread Irit Katriel
New submission from Irit Katriel : This test currently fails for both C and python tracebacks: def test_exception_modulename_not_unicode(self): class X(Exception): def __str__(self): return "I am X" X.__module__ = 42 err =

[issue2628] ftplib Persistent data connection

2021-10-26 Thread mike mcleod
mike mcleod added the comment: Hi Ethan, Thanks, awaiting reply.. Regards, Mike On Tue, 26 Oct 2021 at 01:36, Ethan Furman wrote: > > Ethan Furman added the comment: > > We don't have a CLA from jbell. I've sent an email asking him to do so... > we'll see what happens. > > -- >

[issue45613] [sqlite3] set threadsafety attribute based on default SQLite threaded mode

2021-10-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37095] [Feature Request]: Add zstd support in tarfile

2021-10-26 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-26 Thread Martin Rueckl
Martin Rueckl added the comment: Just my two cents as a new contributor but long time user: - isinstance(list[int], type) returning False seems incredibly un-intuitive to me. I always see generics (e.g. list without type parameter) as higher kinded types, where passing a type argument via

[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-26 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch nosy: +sobolevn nosy_count: 2.0 -> 3.0 pull_requests: +27490 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29226 ___ Python tracker

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-26 Thread Irit Katriel
Irit Katriel added the comment: Martin, how about something like: "This is typically used for debugging, so it is important that the representation is information-rich and unambiguous. Furthermore, this function should not raise exceptions because that can make it inappropriate for use in

[issue45548] Update Modules/Setup

2021-10-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset b5ee79494b2e0d484b7cf59f6746010e22567702 by Christian Heimes in branch 'main': bpo-45548: makesetup improvements (GH-29225) https://github.com/python/cpython/commit/b5ee79494b2e0d484b7cf59f6746010e22567702 --

[issue10572] Move test sub-packages to Lib/test

2021-10-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: A side-effect of keeping tests inside the package, is that they appear in the package contents module docstring, which may be slightly confusing to new users. >>> import sqlite3 >>> help(sqlite3) Help on package sqlite3: NAME sqlite3 DESCRIPTION

[issue45548] Update Modules/Setup

2021-10-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27489 pull_request: https://github.com/python/cpython/pull/29225 ___ Python tracker ___

[issue45612] [doc] add sqlite3 module docstring

2021-10-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +27488 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29224 ___ Python tracker

[issue45612] [doc] add sqlite3 module docstring

2021-10-26 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Currently, the sqlite3 module docstring is the old pysqlite copyright comment in the start of Lib/sqlite3/__init__.py. This is not very helpful to the general user. Suggesting to add a more helpful docstring, a la the 're' or 'array' modules (those two

[issue45586] Use starred expressions in subscripts

2021-10-26 Thread Jacob Nilsson
Jacob Nilsson added the comment: Ok, I see. >>> a[1, 2, *[3, 4]] Would still faith with PEP 646 because lists don't accept tuples, right? >>> a[(1, 2, *[3, 4])] Traceback (most recent call last): File "", line 1, in TypeError: list indices must be integers or slices, not tuple --

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-26 Thread Martin
Martin added the comment: Irit, I'm unsure about the wording. Something like ":meth:`__repr__` should always succeed, even if errors prevent a full description of the object."? "... even if the object is only partly initialized."? Andrei, I think you can not simply omit the first argument.

[issue45611] pprint - low width overrides depth folding

2021-10-26 Thread Ian Currie
New submission from Ian Currie : Reproducible example: >>> from pprint import pprint >>> data = [["aa"],[2],[3],[4],[5]] >>> pprint(data) [["aa"], [2], [3], [4], [5]] >>> pprint(data, depth=1) [[...], [...], [...], [...], [...]] >>> pprint(data, depth=1,

[issue37095] [Feature Request]: Add zstd support in tarfile

2021-10-26 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16235] Add python-config.sh for use during cross compilation.

2021-10-26 Thread surbhi nahta
surbhi nahta added the comment: Hi, I am also having the same issue and found the best answer on the below site - https://python-9.jimdosite.com/ -- nosy: +nahtasurbhi123 ___ Python tracker