]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Barney Gale [Mon, 29 May 2023 21:44:51 +0000 (22:44 +0100)]
GH-104898: Revert pathlib os.PathLike registration change. (GH-105073)
Subclassing `os.PathLike` rather than using `register()` makes
initialisation slower, due to the additional `__isinstance__` work.
This partially reverts commit
bd1b6228d132b8e9836fe352cd8dca2b6c1bd98c .
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Jakub Kuczys [Mon, 29 May 2023 18:28:37 +0000 (20:28 +0200)]
GH-89455: Add missing attributes (added in 3.11) to traceback module docs (#105044)
Steve Dower [Mon, 29 May 2023 16:58:23 +0000 (17:58 +0100)]
gh-103646: Remove --include-pip-user from default APPX package build (GH-105064)
Barney Gale [Mon, 29 May 2023 15:59:52 +0000 (16:59 +0100)]
GH-77609: Add follow_symlinks argument to `pathlib.Path.glob()` (GH-102616)
Add a keyword-only *follow_symlinks* parameter to `pathlib.Path.glob()` and`rglob()`.
When *follow_symlinks* is `None` (the default), these methods follow symlinks except when evaluating "`**`" wildcards. When set to true or false, symlinks are always or never followed, respectively.
Petr Viktorin [Mon, 29 May 2023 11:54:14 +0000 (13:54 +0200)]
gh-97908: CAPI docs: Remove repeated struct names from member docs (GH-100054)
And add raw HTML fragments to keep old links working.
Steve Dower [Mon, 29 May 2023 09:05:32 +0000 (10:05 +0100)]
gh-104803: Implement ntpath.isdevdrive for checking whether a path is on a Windows Dev Drive (GH-104805)
Inada Naoki [Mon, 29 May 2023 08:31:03 +0000 (17:31 +0900)]
Fix compiler warning in unicodeobject.c (#105050)
Jelle Zijlstra [Sun, 28 May 2023 19:13:19 +0000 (12:13 -0700)]
Document PEP 698 and other new typing features in What's New (#104957)
Sviatoslav Sydorenko [Sun, 28 May 2023 15:21:29 +0000 (17:21 +0200)]
Convert `doc.yml` workflow to be reusable (#103914)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Marta Gómez Macías [Sun, 28 May 2023 14:15:53 +0000 (15:15 +0100)]
gh-105017: Include CRLF lines in strings and column numbers (#105030)
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Hugo van Kemenade [Sun, 28 May 2023 08:06:31 +0000 (11:06 +0300)]
gh-104992: [What's New in 3.12] Document unittest.TestProgram.usageExit's deprecation (#104995)
Pablo Galindo Salgado [Sat, 27 May 2023 23:20:42 +0000 (00:20 +0100)]
gh-105013: Fix inspect.getsource with parenthesized multiline lambdas (#105021)
Hugo van Kemenade [Sat, 27 May 2023 21:34:14 +0000 (00:34 +0300)]
gh-104992: Remove deprecated unittest.TestProgram.usageExit (#104993)
Terry Jan Reedy [Sat, 27 May 2023 19:23:56 +0000 (15:23 -0400)]
gh-104497: Make tkinter test pass with tk 8.7 (#104789)
* gh-104497: Make tkinter test pass with tk 8.7
For test_widgets.MenuTest.test_configure_type, the options
in the error message change to alphabetical order.
* Update Lib/test/test_tkinter/test_widgets.py
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
---------
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Zachary Ware [Sat, 27 May 2023 17:34:19 +0000 (12:34 -0500)]
gh-75552: Remove deprecated tkinter.tix module (GH-104902)
Marta Gómez Macías [Sat, 27 May 2023 16:50:43 +0000 (17:50 +0100)]
gh-105017: Fix including additional NL token when using CRLF (#105022)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Petr Vaněk [Sat, 27 May 2023 11:41:50 +0000 (13:41 +0200)]
Fix indentation in Parser/tokenizer.c (#105012)
Itamar Ostricher [Sat, 27 May 2023 09:43:50 +0000 (02:43 -0700)]
CI: Precompute hash for config cache key in check_source job (#105008)
Hugo van Kemenade [Sat, 27 May 2023 02:09:47 +0000 (05:09 +0300)]
gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's deprecation (#104994)
Document unittest.TestProgram.usageExit's pending removal in 3.13
Gregory P. Smith [Sat, 27 May 2023 01:15:13 +0000 (18:15 -0700)]
gh-104839: Prevent test_venv AddressSanitizer spam (#105005)
Pass any ASAN_OPTIONS environment variable through to the child process
so that leak sanitizer being disabled on our CI and buildbots stays
true in the children.
Pablo Galindo Salgado [Fri, 26 May 2023 21:02:26 +0000 (22:02 +0100)]
gh-104976: Ensure trailing dedent tokens are emitted as the previous tokenizer (#104980)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Raymond Hettinger [Fri, 26 May 2023 20:32:53 +0000 (15:32 -0500)]
GH-101588: Deprecate pickle/copy/deepcopy support in itertools (GH-104965)
Barney Gale [Fri, 26 May 2023 18:05:43 +0000 (19:05 +0100)]
GH-103631: Fix `PurePosixPath(PureWindowsPath(...))` separator handling (GH-104949)
For backwards compatibility, accept backslashes as path separators in
`PurePosixPath` if an instance of `PureWindowsPath` is supplied.
This restores behaviour from Python 3.11.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Barney Gale [Fri, 26 May 2023 18:04:02 +0000 (19:04 +0100)]
GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platforms (GH-104948)
Use `str.lower()` rather than `ntpath.normcase()` to normalize case of
Windows paths. This restores behaviour from Python 3.11.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Jelle Zijlstra [Fri, 26 May 2023 17:48:17 +0000 (10:48 -0700)]
gh-103921: Document PEP 695 (#104642)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lysandros Nikolaou [Fri, 26 May 2023 17:06:45 +0000 (19:06 +0200)]
gh-104983: Fix test_peg_generator (#104985)
Shaygan Hooshyari [Fri, 26 May 2023 16:43:58 +0000 (18:43 +0200)]
gh-104984: remove kwargs and starargs from Call & ClassDef (#104986)
These fields are removed in https://github.com/python/cpython/commit/
025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1
Pablo Galindo Salgado [Fri, 26 May 2023 14:46:22 +0000 (15:46 +0100)]
gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (#104975)
Jelle Zijlstra [Fri, 26 May 2023 14:03:02 +0000 (07:03 -0700)]
Remove raw asserts in test_typing.py (#104951)
Hugo van Kemenade [Fri, 26 May 2023 13:54:15 +0000 (16:54 +0300)]
gh-104804: Remove webbrowser.MacOSX class, deprecated in Python 3.11 (#104816)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Victor Stinner <vstinner@python.org>
Lysandros Nikolaou [Fri, 26 May 2023 13:32:03 +0000 (15:32 +0200)]
gh-100238: Use setuptools in peg-generator and reenable tests (#104798)
Victor Stinner [Fri, 26 May 2023 13:29:45 +0000 (15:29 +0200)]
gh-104773: PEP 594: Remove the imghdr module (#104777)
* Remove the Lib/test/imghdrdata/ directory.
* Copy 5 pictures (gif, png, ppm, pgm, xbm) from removed
Lib/test/imghdrdata/ to a new Lib/test/tkinterdata/ directory.
* Update Sphinx from 4.5 to 6.2 in Doc/requirements.txt.
Jelle Zijlstra [Fri, 26 May 2023 12:54:37 +0000 (05:54 -0700)]
gh-104799: Move location of type_params AST fields (#104828)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Jelle Zijlstra [Fri, 26 May 2023 12:44:23 +0000 (05:44 -0700)]
gh-104955: Fix __release_buffer__ signature (#104956)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Oleg Iarygin [Fri, 26 May 2023 11:39:51 +0000 (15:39 +0400)]
gh-104924: Fix `read()able` in `http.client` log messages (gh-104926)
Kumar Aditya [Fri, 26 May 2023 11:23:29 +0000 (16:53 +0530)]
GH-89091: raise `RuntimeWarning` for unawaited async generator methods (#104611)
Tomas R [Fri, 26 May 2023 06:34:17 +0000 (08:34 +0200)]
gh-104943: Remove mentions of old Python versions (#104945)
Mark Dickinson [Fri, 26 May 2023 06:26:16 +0000 (07:26 +0100)]
gh-104479: Update outdated tutorial floating-point reference (#104681)
Hugo van Kemenade [Fri, 26 May 2023 06:06:32 +0000 (09:06 +0300)]
gh-104886: Remove deprecated configparser.LegacyInterpolation (#104887)
Co-authored-by: Victor Stinner <vstinner@python.org>
Andrii Kuzmin [Fri, 26 May 2023 05:48:40 +0000 (08:48 +0300)]
gh-102024: Reduced _idle_semaphore.release calls (#102025)
Reduced _idle_semaphore.release calls in concurrent.futures.thread._worker
_idle_semaphore.release() is now only called if only work_queue is empty.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Kumar Aditya [Fri, 26 May 2023 05:00:27 +0000 (10:30 +0530)]
GH-104787: use managed dict in `_asyncio` (#104795)
Hugo van Kemenade [Fri, 26 May 2023 04:25:52 +0000 (07:25 +0300)]
gh-104876: Remove deprecated turtle.RawTurtle.settiltangle (#104877)
Co-authored-by: Victor Stinner <vstinner@python.org>
Stepfen Shawn [Fri, 26 May 2023 02:50:33 +0000 (10:50 +0800)]
Fix typo in the tokenizer (#104950)
Barney Gale [Thu, 25 May 2023 20:24:20 +0000 (21:24 +0100)]
GH-104898: Add __slots__ to os.PathLike (GH-104899)
Tomas R [Thu, 25 May 2023 20:14:58 +0000 (22:14 +0200)]
gh-104786: Remove kwargs-based TypedDict creation (#104891)
Deprecated since Python 3.11.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Gregory P. Smith [Thu, 25 May 2023 20:14:09 +0000 (13:14 -0700)]
gh-104372: Drop the GIL around the vfork() call. (#104782)
On Linux where the `subprocess` module can use the `vfork` syscall for
faster spawning, prevent the parent process from blocking other threads
by dropping the GIL while it waits for the vfork'ed child process `exec`
outcome. This prevents spawning a binary from a slow filesystem from
blocking the rest of the application.
Fixes #104372.
Brett Cannon [Thu, 25 May 2023 20:03:55 +0000 (13:03 -0700)]
Fix umask test failures under Codespaces (#104913)
Also turn on the Python extension for Python code completions and bump the installed versions of wasmtime and the WASI SDK.
Jelle Zijlstra [Thu, 25 May 2023 16:43:40 +0000 (09:43 -0700)]
gh-104935: typing: Fix interactions between `@runtime_checkable` and `Generic` (#104939)
---------
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Victor Stinner [Thu, 25 May 2023 16:27:55 +0000 (18:27 +0200)]
gh-104773: PEP 594: Remove the chunk module (#104868)
The module had no tests.
Victor Stinner [Thu, 25 May 2023 15:59:00 +0000 (17:59 +0200)]
gh-104773: PEP 594: Remove the audioop module (#104937)
Victor Stinner [Thu, 25 May 2023 15:20:48 +0000 (17:20 +0200)]
gh-104773: PEP 594: Remove the aifc module (#104933)
* Remove .aifc and .aiff test files of Lib/test/audiodata/
* Remove Lib/test/Sine-1000Hz-300ms.aif test file
Shantanu [Thu, 25 May 2023 15:18:56 +0000 (08:18 -0700)]
gh-84976: Add back UTC to datetime.__all__ (#104920)
gh-84796: Add back UTC to datetime.__all__
This was mistakenly dropped in #103637
Noticed when updating typeshed for Python 3.12
Steve Dower [Thu, 25 May 2023 15:17:12 +0000 (16:17 +0100)]
Improves the Windows MSI test run on PR (GH-104929)
Correctly set the exit code when builds fail
Also build docs as part of the test
Victor Stinner [Thu, 25 May 2023 14:25:27 +0000 (16:25 +0200)]
gh-104773: PEP 594: Remove the uu module (#104932)
Doc/license.rst: Keep the UUencode and UUdecode license since it's
also used by the uu codec.
Victor Stinner [Thu, 25 May 2023 13:45:46 +0000 (15:45 +0200)]
gh-104773: PEP 594: Remove the crypt module (#104908)
Remove the crypt module and its private _crypt extension, deprecated
in Python 3.11.
Alex Waygood [Thu, 25 May 2023 13:05:43 +0000 (14:05 +0100)]
Fix indentation in `json.AttrDict` REPL example (#104930)
This is causing the docs to be rendered incorrectly.
Hugo van Kemenade [Thu, 25 May 2023 11:09:57 +0000 (14:09 +0300)]
CI: Cache config.cache across runs to speed up build (#104800)
Raymond Hettinger [Thu, 25 May 2023 03:31:02 +0000 (22:31 -0500)]
Misc improvements to the itertools docs (GH-104916)
Raymond Hettinger [Thu, 25 May 2023 01:59:51 +0000 (20:59 -0500)]
Misc updates to Whatsnew 3.12 (#104912)
Zachary Ware [Thu, 25 May 2023 01:06:00 +0000 (20:06 -0500)]
gh-104773: Remove the msilib package (GH-104911)
Jelle Zijlstra [Wed, 24 May 2023 23:23:28 +0000 (16:23 -0700)]
gh-104874: Document NewType.__supertype__ (#104875)
Victor Stinner [Wed, 24 May 2023 23:19:50 +0000 (01:19 +0200)]
gh-104773: Fix PY_STDLIB_MOD_SET_NA() on macOS (#104901)
The _scproxy is available on macOS: fix configure script.
Steve Dower [Wed, 24 May 2023 23:16:13 +0000 (00:16 +0100)]
gh-104820: Fixes os.stat on Windows to better handle file systems that do not support FileIdInformation (GH-104892)
Victor Stinner [Wed, 24 May 2023 22:40:30 +0000 (00:40 +0200)]
gh-104773: PEP 594: Remove the xdrlib module (#104900)
pickle documentation no longer mentions the XDR format.
Victor Stinner [Wed, 24 May 2023 22:08:36 +0000 (00:08 +0200)]
gh-104773: PEP 594: Remove the nis module (#104897)
Hugo van Kemenade [Wed, 24 May 2023 21:16:43 +0000 (00:16 +0300)]
gh-104835: Remove unittest's deprecated getTestCaseNames, makeSuite, findTestCases (#104836)
Victor Stinner [Wed, 24 May 2023 21:15:43 +0000 (23:15 +0200)]
gh-104773: PEP 594: Remove the nntplib module (#104894)
* socket_helper.transient_internet() no longer imports nntplib to
catch nntplib.NNTPTemporaryError.
* ssltests.py no longer runs test_nntplib.
* "make quicktest" no longer runs test_nntplib.
* WASM: remove nntplib from OMIT_NETWORKING_FILES.
* Remove mentions to nntplib in the email documentation.
Victor Stinner [Wed, 24 May 2023 20:34:41 +0000 (22:34 +0200)]
gh-104773: PEP 594: Remove the spwd module (#104871)
Remove spwd from the configure script and Modules/Setup.
Jonathan Protzenko [Wed, 24 May 2023 20:30:11 +0000 (13:30 -0700)]
gh-99108: Refresh HACL* (#104808)
Refresh HACL* from upstream to improve SHA2 performance and fix a 32-bit issue in SHA3.
Jelle Zijlstra [Wed, 24 May 2023 18:48:13 +0000 (11:48 -0700)]
gh-104879: Fix TypeAliasType.__module__ in exec() (#104881)
Jelle Zijlstra [Wed, 24 May 2023 18:46:00 +0000 (11:46 -0700)]
Improve test coverage for is_typeddict (#104884)
In particular, it's important to test that is_typeddict(TypedDict)
returns False.
Lysandros Nikolaou [Wed, 24 May 2023 16:18:17 +0000 (19:18 +0300)]
gh-104866: Tokenize should emit NEWLINE after exiting block with comment (#104870)
Victor Stinner [Wed, 24 May 2023 14:16:55 +0000 (16:16 +0200)]
gh-104773: PEP 594: Remove the mailcap module (#104867)
Remove Lib/test/mailcap.txt test file.
Victor Stinner [Wed, 24 May 2023 14:02:22 +0000 (16:02 +0200)]
gh-104773: Remove OSSAUDIODEV_LIBS variable (#104864)
Update configure script for ossaudiodev removal: remove the
OSSAUDIODEV_LIBS variable.
Hugo van Kemenade [Wed, 24 May 2023 13:54:15 +0000 (16:54 +0300)]
RtD docs previews: Cancel building PRs if no changes in Doc dir (#104100)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Victor Stinner [Wed, 24 May 2023 13:51:59 +0000 (15:51 +0200)]
gh-104773: PEP 594: Remove the sunau module (#104863)
* Remove Lib/test/audiodata/pluck-*.au files.
* Remove Lib/test/audiotest.au file.
Lysandros Nikolaou [Wed, 24 May 2023 13:38:37 +0000 (16:38 +0300)]
gh-102856: Update "Formatted string literals" docs section after PEP701 (#104861)
Victor Stinner [Wed, 24 May 2023 13:00:51 +0000 (15:00 +0200)]
gh-104773: PEP 594: Remove the ossaudiodev module (#104862)
* Remove ossaudiodev extension in configure.ac and regenerate
the configure script.
* Remove ossaudiodev in Modules/Setup and Modules/Setup.stdlib.in.
Victor Stinner [Wed, 24 May 2023 11:11:29 +0000 (13:11 +0200)]
gh-104773: PEP 594: Remove the pipes module (#104848)
Hugo van Kemenade [Wed, 24 May 2023 10:21:15 +0000 (13:21 +0300)]
gh-102856: Add missing quote to fix doctest (#104852)
Dong-hee Na [Wed, 24 May 2023 10:10:46 +0000 (19:10 +0900)]
gh-101282: Enclose BOLT_APPLY_FLAGS value in double quotes (gh-104752)
Pablo Galindo Salgado [Wed, 24 May 2023 09:59:18 +0000 (10:59 +0100)]
gh-104825: Remove implicit newline in the line attribute in tokens emitted in the tokenize module (#104846)
Marta Gómez Macías [Wed, 24 May 2023 09:36:50 +0000 (11:36 +0200)]
gh-102856: Add changes related to PEP 701 in 3.12 What's New docs (#104824)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Victor Stinner [Wed, 24 May 2023 09:32:18 +0000 (11:32 +0200)]
gh-104773: PEP 594: Remove the sndhdr module (#104774)
Remove the Lib/test/sndhdrdata/ directory.
Victor Stinner [Wed, 24 May 2023 09:04:53 +0000 (11:04 +0200)]
gh-104773: PEP 594: Remove cgi and cgitb modules (#104775)
* Replace "cgi" with "!cgi" in the Sphinx documentation to avoid
warnings on broken references.
* test_pyclbr no longer tests the cgi module.
Terry Jan Reedy [Wed, 24 May 2023 08:43:56 +0000 (04:43 -0400)]
gh-104719: IDLE - test existence of all tokenize references. (#104767)
Class editor.IndentSearcher contains all editor references to tokenize module.
Module io tokenize reference cover those other modules.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Victor Stinner [Wed, 24 May 2023 08:29:35 +0000 (10:29 +0200)]
Fix test_importlib.test_side_effect_import() (#104840)
Wait until the thread spawn by the import completes to avoid dangling
threads. With this fix, the following command no longer fails:
./python -m test --fail-env-changed test_importlib -m test_side_effect_import -F -j20
Jelle Zijlstra [Wed, 24 May 2023 08:24:53 +0000 (01:24 -0700)]
gh-104797: Allow Protocols to inherit from collections.abc.Buffer (#104827)
Gregory P. Smith [Wed, 24 May 2023 08:00:57 +0000 (01:00 -0700)]
gh-104837: Revert "gh-104341: Add a Separate "Running" Lock for Each Thread (gh-104754) (#104838)
gh-104837: Revert "gh-104341: Add a Separate "Running" Lock for Each Thread (gh-104754)"
This reverts commit
097b7830cd67f039ff36ba4fa285d82d26e25e84 .
Gregory P. Smith [Wed, 24 May 2023 04:15:49 +0000 (21:15 -0700)]
gh-104372: use == -1 before PyErr_Occurred (#104831)
The ideal pattern for this. (already in the 3.11 backport)
melanie witt [Tue, 23 May 2023 23:10:34 +0000 (16:10 -0700)]
gh-85934: Use getattr_static when adding mock spec (#22209)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Barney Gale [Tue, 23 May 2023 22:31:59 +0000 (23:31 +0100)]
GH-83863: Drop support for using `pathlib.Path` objects as context managers (GH-104807)
In Python 3.8 and prior, `pathlib.Path.__exit__()` marked a path as closed;
some subsequent attempts to perform I/O would raise an IOError. This
functionality was never documented, and had the effect of making `Path`
objects mutable, contrary to PEP 428. In Python 3.9 we made `__exit__()` a
no-op, and in 3.11 `__enter__()` began raising deprecation warnings. Here
we remove both methods.
Carl Meyer [Tue, 23 May 2023 22:04:31 +0000 (16:04 -0600)]
gh-103295: fix stack overwrite on 32-bit in perf map test harness (#104811)
Nicolas Tessore [Tue, 23 May 2023 20:51:56 +0000 (21:51 +0100)]
gh-104770: Let generator.close() return value (#104771)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Robert O'Shea [Tue, 23 May 2023 20:44:40 +0000 (21:44 +0100)]
gh-102120: [TarFile] Add an iter function that doesn't cache (GH-102128)
Eric Snow [Tue, 23 May 2023 20:29:30 +0000 (14:29 -0600)]
gh-104341: Add a Separate "Running" Lock for Each Thread (gh-104754)
Having a separate lock means Thread.join() doesn't need to wait for the thread to be cleaned up first. It can wait for the thread's Python target to finish running. This gives us some flexibility in how we clean up threads.
(This is a minor cleanup as part of a fix for gh-104341.)
Ned Deily [Tue, 23 May 2023 20:03:13 +0000 (16:03 -0400)]
Remove gh-103207 changelog item as it was never part of any release. (GH-104814)
chgnrdv [Tue, 23 May 2023 20:01:17 +0000 (23:01 +0300)]
Fix missing/incomplete NULL checks in multiple source files (#104564)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Victor Stinner [Tue, 23 May 2023 17:40:02 +0000 (19:40 +0200)]
gh-104780: Remove 2to3 program and lib2to3 module (#104781)
* Remove the Tools/scripts/2to3 script.
* Remove the Lib/test/test_lib2to3/ directory.
* Doc/tools/extensions/pyspecific.py: remove the "2to3fixer" object
type.
* Makefile and PC/layout/main.py no longer compile lib2to3 grammar
files.
* Update Makefile for 2to3 removal.
Daniel Fortunov [Tue, 23 May 2023 14:11:29 +0000 (15:11 +0100)]
gh-81005: Refactor str tests to reflect that str and unicode are merged in Python 3 (#13172)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>