Victor Stinner
17e1fe0f9b
gh-104773: PEP 594: Remove the nis module ( #104897 )
2023-05-25 00:08:36 +02:00
Hugo van Kemenade
b1cb30ec86
gh-104835: Remove unittest's deprecated getTestCaseNames, makeSuite, findTestCases ( #104836 )
2023-05-24 21:16:43 +00:00
Victor Stinner
ded5f1f287
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.
2023-05-24 21:15:43 +00:00
Victor Stinner
684e99d01d
gh-104773: PEP 594: Remove the spwd module ( #104871 )
...
Remove spwd from the configure script and Modules/Setup.
2023-05-24 20:34:41 +00:00
Jonathan Protzenko
160321e530
gh-99108: Refresh HACL* ( #104808 )
...
Refresh HACL* from upstream to improve SHA2 performance and fix a 32-bit issue in SHA3.
2023-05-24 13:30:11 -07:00
Jelle Zijlstra
fe77a99fc8
gh-104879: Fix TypeAliasType.__module__ in exec() ( #104881 )
2023-05-24 11:48:13 -07:00
Jelle Zijlstra
1497607a8e
Improve test coverage for is_typeddict ( #104884 )
...
In particular, it's important to test that is_typeddict(TypedDict)
returns False.
2023-05-24 11:46:00 -07:00
Lysandros Nikolaou
c90a862cdc
gh-104866: Tokenize should emit NEWLINE after exiting block with comment ( #104870 )
2023-05-24 17:18:17 +01:00
Victor Stinner
9d457e1154
gh-104773: PEP 594: Remove the mailcap module ( #104867 )
...
Remove Lib/test/mailcap.txt test file.
2023-05-24 14:16:55 +00:00
Victor Stinner
bbc5e5c7d7
gh-104773: Remove OSSAUDIODEV_LIBS variable ( #104864 )
...
Update configure script for ossaudiodev removal: remove the
OSSAUDIODEV_LIBS variable.
2023-05-24 14:02:22 +00:00
Hugo van Kemenade
c3204ed727
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>
2023-05-24 16:54:15 +03:00
Victor Stinner
a5e0f5b230
gh-104773: PEP 594: Remove the sunau module ( #104863 )
...
* Remove Lib/test/audiodata/pluck-*.au files.
* Remove Lib/test/audiotest.au file.
2023-05-24 13:51:59 +00:00
Lysandros Nikolaou
8e5b3b90c8
gh-102856: Update "Formatted string literals" docs section after PEP701 ( #104861 )
2023-05-24 15:38:37 +02:00
Victor Stinner
fc07fe4e37
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.
2023-05-24 15:00:51 +02:00
Victor Stinner
a4b7e9d1f8
gh-104773: PEP 594: Remove the pipes module ( #104848 )
2023-05-24 13:11:29 +02:00
Hugo van Kemenade
3e97c00171
gh-102856: Add missing quote to fix doctest ( #104852 )
2023-05-24 13:21:15 +03:00
Dong-hee Na
c43785192c
gh-101282: Enclose BOLT_APPLY_FLAGS value in double quotes (gh-104752)
2023-05-24 19:10:46 +09:00
Pablo Galindo Salgado
c8cf9b42eb
gh-104825: Remove implicit newline in the line attribute in tokens emitted in the tokenize module ( #104846 )
2023-05-24 09:59:18 +00:00
Marta Gómez Macías
c45701e9ef
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>
2023-05-24 10:36:50 +01:00
Victor Stinner
7b00940f69
gh-104773: PEP 594: Remove the sndhdr module ( #104774 )
...
Remove the Lib/test/sndhdrdata/ directory.
2023-05-24 09:32:18 +00:00
Victor Stinner
08d5923896
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.
2023-05-24 09:04:53 +00:00
Terry Jan Reedy
e561c09975
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>
2023-05-24 08:43:56 +00:00
Victor Stinner
426950993f
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
2023-05-24 10:29:35 +02:00
Jelle Zijlstra
c0ab7d401c
gh-104797: Allow Protocols to inherit from collections.abc.Buffer ( #104827 )
2023-05-24 08:24:53 +00:00
Gregory P. Smith
4b56e56c49
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 097b7830cd
.
2023-05-24 01:00:57 -07:00
Gregory P. Smith
7f963bfc79
gh-104372: use == -1 before PyErr_Occurred ( #104831 )
...
The ideal pattern for this. (already in the 3.11 backport)
2023-05-24 04:15:49 +00:00
melanie witt
2e0931046d
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>
2023-05-23 17:10:34 -06:00
Barney Gale
6b1510cf11
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.
2023-05-23 22:31:59 +00:00
Carl Meyer
e0b3078705
gh-103295: fix stack overwrite on 32-bit in perf map test harness ( #104811 )
2023-05-23 16:04:31 -06:00
Nicolas Tessore
d56c933992
gh-104770: Let generator.close() return value ( #104771 )
...
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2023-05-23 13:51:56 -07:00
Robert O'Shea
50fce89d12
gh-102120: [TarFile] Add an iter function that doesn't cache (GH-102128)
2023-05-23 13:44:40 -07:00
Eric Snow
097b7830cd
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.)
2023-05-23 14:29:30 -06:00
Ned Deily
08b4eb83aa
Remove gh-103207 changelog item as it was never part of any release. (GH-104814)
2023-05-23 16:03:13 -04:00
chgnrdv
13b5d79090
Fix missing/incomplete NULL checks in multiple source files ( #104564 )
...
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2023-05-23 14:01:17 -06:00
Victor Stinner
ae00b810d1
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.
2023-05-23 19:40:02 +02:00
Daniel Fortunov
ddb1485953
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>
2023-05-23 17:11:29 +03:00
Dong-hee Na
76170f5458
gh-104469: Convert _testcapi/long to use AC (gh-104720)
2023-05-23 22:52:36 +09:00
Sebastian Rittau
abdda5b133
gh-92871: Remove typing.{io,re} namespaces ( #92873 )
...
Closes #92871
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-05-23 13:44:26 +00:00
Victor Stinner
9dc476be2d
gh-104773: PEP 594: Remove the telnetlib module ( #104778 )
2023-05-23 07:09:02 +00:00
Ethan Furman
5ecd8c85f9
gh-104764: [Enum] fix 3.13-specific tests (GH-104779)
2023-05-22 18:59:40 -07:00
Gregory P. Smith
2e5d8a90aa
gh-99108: Release the GIL around hashlib built-in computation ( #104675 )
...
This matches the GIL releasing behavior of our existing `_hashopenssl`
module, extending it to the HACL* built-ins.
Includes adding comments to better describe the ENTER/LEAVE macros
purpose and explain the lock strategy in both existing and new code.
2023-05-23 00:06:41 +00:00
Pablo Galindo Salgado
988c1f68ce
Add codeowners for the tokenizer module ( #104753 )
2023-05-23 00:27:10 +01:00
T. Wouters
586aca3fc6
gh-104764: Skip failing tests in test_enum that started failing. ( #104765 )
...
Skip failing tests in test_enum that started failing when the version was bumped to 3.13.
2023-05-23 01:17:06 +02:00
T. Wouters
4194d8f2c4
Add the 3.12 branch to the github workflows. ( #104768 )
2023-05-23 01:16:28 +02:00
Eric Snow
421cbf39fb
gh-102304: Temporarily Bump Py_LIMITED_API for 2 New Functions ( #104766 )
...
Quick and dirty.
2023-05-23 01:03:17 +02:00
Kirill Podoprigora
4ded2c5e9c
Update Windows library names for the Python version bump ( #104755 )
2023-05-23 00:20:06 +02:00
T. Wouters
bc285c667c
Regenerate configure after the Python version bump ( #104757 )
...
Regenerate configure after the Python version bump.
2023-05-22 23:50:26 +02:00
Ned Deily
42974c46bc
Fix whatsnew for 3.13. (GH-104756)
2023-05-22 16:05:27 -04:00
Brandt Bucher
357bed0bcd
GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104674)
2023-05-22 19:34:34 +00:00
Thomas Wouters
2c4e29e322
Merge branch 'main' of https://github.com/python/cpython into main
2023-05-22 21:17:26 +02:00