3.9
Commits on Feb 14, 2022
-
[3.9] Corrections to format precision description. (GH-31291) (GH-31321)
* `precision` field is a decimal integer * clarify that stated limitations are on presentation type rather than input value type. Especially misleading is "precision is not allowed for integer values", since integer value input to a format like `.1f` is fine. * regarding max field size, replace "non-number" with "string", which is the only non-numeric presentation type Automerge-Triggered-By: GH:ericvsmith. (cherry picked from commit 1d6ce67) Co-authored-by: John Belmonte <john@neggie.net>
Commits on Feb 13, 2022
-
bpo-45447: Add entry to What's new 3.9 (GH-31305)
(cherry picked from commit cef91ca) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-
bpo-45447: Add syntax highlighting for
.pyifiles in IDLE (GH-28950)Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues. Add util.py to contain objects that are used in multiple idlelib modules and have no dependencies on any of them. Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 50cf499) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 9fabcfb) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Commits on Feb 11, 2022
-
bpo-46483: [doc] pathlib classes no longer support parameterized gene…
-
Fix the signature of multiprocessing.set_executable (GH-31276)
Automerge-Triggered-By: GH:merwok (cherry picked from commit 4f93866) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Commits on Feb 9, 2022
-
bpo-45863: tarfile: don't zero out header fields unnecessarily (GH-29693
) Numeric fields of type float, notably mtime, can't be represented exactly in the ustar header, so the pax header is used. But it is helpful to set them to the nearest int (i.e. second rather than nanosecond precision mtimes) in the ustar header as well, for the benefit of unarchivers that don't understand the pax header. Add test for tarfile.TarInfo.create_pax_header to confirm correct behaviour. (cherry picked from commit bf2d44f) Co-authored-by: Joshua Root <jmr@macports.org>
Commits on Feb 7, 2022
-
bpo-46648: Rewrite test_urllib2.test_issue16464() with a local HTTP s…
-
bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153)
va_end() must be called before returning. (cherry picked from commit 59e004a) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Commits on Feb 6, 2022
-
bpo-46648: Skip test_urllib2.test_issue16464() (GH-31161)
POST requests to http://www.example.com/ fail randomly. (cherry picked from commit 1578de2) Co-authored-by: Victor Stinner <vstinner@python.org>
Commits on Feb 4, 2022
-
[3.9] bpo-46609: Update asyncio-task coroutine doc (GH-31132)
@coroutine in removed in 3.11, not 3.10. (cherry picked from commit 5603db4) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-
Optimize images by IMGbot (GH-21348)
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> (cherry picked from commit ba650af) Co-authored-by: Manish Kumar
⛄ <manishprivet@protonmail.com> -
bpo-46588: fix typo in test_calltip.py (GH-31119)
(cherry picked from commit 222865d) Co-authored-by: Caio Agiani <agianicaio@gmail.com>
Commits on Feb 3, 2022
-
bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)
On Windows, one had to Tab or click on the entry box to get a cursor and be able to enter anything. (cherry picked from commit d1df81a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-
bpo-45975: IDLE - Remove extraneous parens (GH-31107)
mistakenly included in 3 files in previous PR and backported both to 3.10 and 3.9. (cherry picked from commit 916d0d8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-
[3.9] [3.10] bpo-46576: bpo-46524: Disable compiler optimization with…
…in test_peg_generator. (GH-31015) (GH-31089) (GH-31093) Disable compiler optimization within test_peg_generator. This speed up test_peg_generator by always disabling compiler optimizations by using -O0 or equivalent when the test is building its own C extensions. A build not using --with-pydebug in order to speed up test execution winds up with this test taking a very long time as it would do repeated compilation of parser C code using the same optimization flags as CPython was built with. This speeds the test up 6-8x on gps-raspbian. Also incorporate's GH-31017's win32 conditional and flags. Co-authored-by: Kumar Aditya kumaraditya303. (cherry picked from commit 164a017) Co-authored-by: Gregory P. Smith <greg@krypto.org> (cherry picked from commit f5ebec4) Co-authored-by: Gregory P. Smith <greg@krypto.org> Automerge-Triggered-By: GH:gpshead
Commits on Feb 2, 2022
-
bpo-46616: Ensures test_importlib.test_windows cleans up registry key…
-
[3.9] bpo-45703: Invalidate _NamespacePath cache on importlib.invalid…
…ate_cache (GH-29384) (GH-30922) (GH-31076) Consider the following directory structure: . └── PATH1 └── namespace └── sub1 └── __init__.py And both PATH1 and PATH2 in sys path: $ PYTHONPATH=PATH1:PATH2 python3.11 >>> import namespace >>> import namespace.sub1 >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> ... While this interpreter still runs, PATH2/namespace/sub2 is created: . ├── PATH1 │ └── namespace │ └── sub1 │ └── __init__.py └── PATH2 └── namespace └── sub2 └── __init__.py The newly created module cannot be imported: >>> ... >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> import namespace.sub2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'namespace.sub2' Calling importlib.invalidate_caches() now newly allows to import it: >>> import importlib >>> importlib.invalidate_caches() >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> import namespace.sub2 >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace', '.../PATH2/namespace']) This was not previously possible. Co-Authored-By: Miro Hrončok <miro@hroncok.cz> Automerge-Triggered-By: GH:encukou
-
bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069)
test_ftplib now silently ignores socket errors to prevent logging unhandled threading exceptions. (cherry picked from commit 0611eaf) Co-authored-by: Victor Stinner <vstinner@python.org>
-
bpo-46591: Make About IDLE doc link label clickable (GH-30251)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 53c7808) Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
Commits on Feb 1, 2022
Commits on Jan 31, 2022
-
bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035)
* bpo-46542: test_lib2to3 uses support.infinite_recursion() Fix a Python crash in test_lib2to3 when using Python built in debug mode: limit the recursion limit. The test_all_project_files() test of test_lib2to3 now uses the test.support.infinite_recursion() context manager when processing the infinite_recursion.py file to prevent a crash when Python is built in debug mode. The two test_all_project_files() tests now use subTest() and log the refactored/parsed filename (if test_lib2to3 is run in verbose mode). * Update Lib/lib2to3/tests/data/infinite_recursion.py Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit ee0ac32) Co-authored-by: Victor Stinner <vstinner@python.org>
Commits on Jan 28, 2022
-
bpo-45925: Update Windows installer to SQLite 3.37.2 (GH-30485)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 4d191fc) Co-authored-by: Steve Dower <steve.dower@python.org>
-
bpo-46542: test_json uses support.infinite_recursion() (GH-30972)
Fix test_json tests checking for RecursionError: modify these tests to use support.infinite_recursion(). (cherry picked from commit e7a6285) Co-authored-by: Victor Stinner <vstinner@python.org>