summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] CI: Precompute hash for config cache key in check_source job ↵Miss Islington (bot)2023-05-271-6/+11
| | | | | | (GH-105008) (#105014) Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
* [3.12] gh-104992: [What's New in 3.11] Document ↵Miss Islington (bot)2023-05-271-0/+4
| | | | | | | | | | unittest.TestProgram.usageExit's deprecation (GH-104994) (#105009) gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's deprecation (GH-104994) Document unittest.TestProgram.usageExit's pending removal in 3.13 (cherry picked from commit 7df861c23cd61e7c55943d4036ea5c6b1df5cb49) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-104839: Prevent test_venv AddressSanitizer spam (GH-105005) (#105006)Miss Islington (bot)2023-05-271-9/+8
| | | | | | | | | | gh-104839: Prevent test_venv AddressSanitizer spam (GH-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. (cherry picked from commit a17f160376955d369c8d332e1b1a90a6e18c852a) Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
* [3.12] gh-104976: Ensure trailing dedent tokens are emitted as the previous ↵Miss Islington (bot)2023-05-264-15/+34
| | | | tokenizer (GH-104980) (#105000)
* [3.12] GH-101588: Deprecate pickle/copy/deepcopy support in itertools ↵Miss Islington (bot)2023-05-264-3/+97
| | | | (GH-104965) (GH-104997)
* [3.12] GH-103631: Fix `PurePosixPath(PureWindowsPath(...))` separator ↵Miss Islington (bot)2023-05-263-0/+11
| | | | | | | | | | | | handling (GH-104949) (GH-104991) For backwards compatibility, accept backslashes as path separators in `PurePosixPath` if an instance of `PureWindowsPath` is supplied. This restores behaviour from Python 3.11. (cherry picked from commit 328422ce6162eb18735a2c0de12f8a696be97d0c) Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] GH-104947: Make pathlib.PureWindowsPath comparisons consistent across ↵Miss Islington (bot)2023-05-263-1/+7
| | | | | | | | | | | platforms (GH-104948) (GH-104990) Use `str.lower()` rather than `ntpath.normcase()` to normalize case of Windows paths. This restores behaviour from Python 3.11. (cherry picked from commit ad0be361c9922a918c7c3eaf83e1d8f2b019279c) Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-103921: Document PEP 695 (GH-104642) (#104989)Miss Islington (bot)2023-05-2611-302/+1234
| | | | | | (cherry picked from commit 060277d96bf4ba86df8e4d65831a8cbdfeb51fc5) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-104984: remove kwargs and starargs from Call & ClassDef ↵Miss Islington (bot)2023-05-261-6/+3
| | | | | | | | | | (GH-104986) (#104987) gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986) These fields are removed in https://github.com/python/cpython/commit/025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1 (cherry picked from commit 61c1d6760facbc172a58512cad46148f587b4da1) Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
* [3.12] CI: Cache config.cache across runs to speed up build (GH-104800) ↵Hugo van Kemenade2023-05-261-6/+45
| | | | (#104967)
* [3.12] gh-104972: Ensure that line attributes in tokens in the tokenize ↵Miss Islington (bot)2023-05-264-9/+21
| | | | | | | | module are correct (GH-104975) (#104982) gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (GH-104975) (cherry picked from commit 3fdb55c48291a459fb1e33edb5140ec0383222df) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] Remove raw asserts in test_typing.py (GH-104951) (#104978)Miss Islington (bot)2023-05-261-22/+30
| | | | | | Remove raw asserts in test_typing.py (GH-104951) (cherry picked from commit 2cb445635e99d4401949cabebd373288cfdd0138) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-104955: Fix __release_buffer__ signature (GH-104956) (#104973)Miss Islington (bot)2023-05-263-1/+8
| | | | | | (cherry picked from commit 6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.12] gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) ↵Miss Islington (bot)2023-05-261-2/+2
| | | | | | | | (gh-104970) gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) (cherry picked from commit 6c81d7572edbe3a5800b1128e55a2dcef03cc13c) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* [3.12] Fix typo in the tokenizer (GH-104950) (#104953)Miss Islington (bot)2023-05-261-1/+1
| | | | | (cherry picked from commit 705e387dd81b971cb1ee5727da54adfb565f61d0) Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* [3.12] gh-104943: Remove mentions of old Python versions (GH-104945) (#104963)Miss Islington (bot)2023-05-262-4/+2
| | | | | (cherry picked from commit 46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.12] gh-104479: Update outdated tutorial floating-point reference ↵Miss Islington (bot)2023-05-261-10/+13
| | | | | | | (GH-104681) (#104960) (cherry picked from commit 2cf04e455d8f087bd08cd1d43751007b5e41b3c5) Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* [3.12] gh-102024: Reduced _idle_semaphore.release calls (GH-102025) (#104959)Miss Islington (bot)2023-05-262-8/+12
| | | | | | | | | | | | | | gh-102024: Reduced _idle_semaphore.release calls (GH-102025) Reduced _idle_semaphore.release calls in concurrent.futures.thread._worker _idle_semaphore.release() is now only called if only work_queue is empty. --------- (cherry picked from commit 0242e9a57aa87ed0b5cac526f65631c654a39054) Co-authored-by: Andrii Kuzmin <jack.cvr@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-104372: Drop the GIL around the vfork() call. (GH-104782) (#104942)Miss Islington (bot)2023-05-253-6/+31
| | | | | | | | | | | | | | gh-104372: Drop the GIL around the vfork() call. (GH-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 GH-104372. (cherry picked from commit d08679212d9af52dd074cd4a6abb440edb944c9c) Co-authored-by: Gregory P. Smith <gps@python.org>
* [3.12] gh-104935: typing: Fix interactions between `@runtime_checkable` and ↵Miss Islington (bot)2023-05-253-3/+48
| | | | | | | | | | | | `Generic` (GH-104939) (#104941) gh-104935: typing: Fix interactions between `@runtime_checkable` and `Generic` (GH-104939) --------- (cherry picked from commit 2b7027d0b2ee2e102a24a0da27d01b8221f9351c) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Improves the Windows MSI test run on PR (GH-104929)Miss Islington (bot)2023-05-252-35/+27
| | | | | | | Correctly set the exit code when builds fail Also build docs as part of the test (cherry picked from commit 569b2b8d612354062b8679d2d3f44f7ee03e66c2) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] Fix indentation in `json.AttrDict` REPL example (GH-104930) (#104931)Miss Islington (bot)2023-05-251-8/+8
| | | | | | | | Fix indentation in `json.AttrDict` REPL example (GH-104930) This is causing the docs to be rendered incorrectly. (cherry picked from commit 38539ef1267f26a8b3508fcc8c6199cf46fc300b) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Misc improvements to the itertools docs (GH-104916) (GH-104917)Miss Islington (bot)2023-05-251-7/+24
|
* [3.12] Misc updates to Whatsnew 3.12 (GH-104912) (GH-104915)Miss Islington (bot)2023-05-252-3/+36
|
* [3.12] Fix test_importlib.test_side_effect_import() (GH-104840) (#104842)Miss Islington (bot)2023-05-251-1/+2
| | | | | | | | | | | Fix test_importlib.test_side_effect_import() (GH-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 (cherry picked from commit 426950993f6a39cdf3f6a3333ac8b518833c7e61) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-104874: Document NewType.__supertype__ (GH-104875) (#104906)Miss Islington (bot)2023-05-242-0/+14
| | | | | | gh-104874: Document NewType.__supertype__ (GH-104875) (cherry picked from commit 41768a2bd3a8f57e6ce4e4ae9cab083b69817ec1) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-99108: Refresh HACL* (GH-104808) (#104893)Miss Islington (bot)2023-05-2418-149/+225
| | | | | | | | gh-99108: Refresh HACL* (GH-104808) Refresh HACL* from upstream to improve SHA2 performance and fix a 32-bit issue in SHA3. (cherry picked from commit 160321e5304b962a162eb023472aa2bc8307ae15) Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
* [3.12] gh-104879: Fix TypeAliasType.__module__ in exec() (GH-104881) (#104890)Miss Islington (bot)2023-05-244-2/+52
| | | | | (cherry picked from commit fe77a99fc8b549a8bf9ccbc5485fe5ea9bcf47b9) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] Improve test coverage for is_typeddict (GH-104884) (#104889)Miss Islington (bot)2023-05-241-3/+22
| | | | | | | | | Improve test coverage for is_typeddict (GH-104884) In particular, it's important to test that is_typeddict(TypedDict) returns False. (cherry picked from commit 1497607a8e99f1103c40368dd5f9057f0146a520) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-104866: Tokenize should emit NEWLINE after exiting block with ↵Miss Islington (bot)2023-05-242-3/+23
| | | | | | | | | comment (GH-104870) (#104872) gh-104866: Tokenize should emit NEWLINE after exiting block with comment (GH-104870) (cherry picked from commit c90a862cdcf55dc1753c6466e5fa4a467a13ae24) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* gh-103207: The macOS 13 Ventura Installer.app permission problem is fixed by ↵Ned Deily2023-05-241-0/+22
| | | | Apple in macOS 13.4. (GH-104883)
* [3.12] gh-104825: add omitted idlelib text fix (#104880)Terry Jan Reedy2023-05-241-2/+2
| | | | | | | | | | | | | Order of events: Terry merged new idlelib test into main. Ms. I. made a 3.12 backport; tests passed. Pablo merged the tokenize change with idlelib test fix into main. Pablo merged a 3.12 backport without the idle test fix as the backport of the latter had not yet been been merged. Terry merged the idlelib test backport. The new test failed on at least 4 3.12 buildbots because of the tokenize change. This PR backports the now needed idlelib test fix. (cherry picked from commit c8cf9b4)
* [3.12] gh-102856: Update "Formatted string literals" docs section after ↵Miss Islington (bot)2023-05-241-17/+35
| | | | | | | PEP701 (GH-104861) (#104865) (cherry picked from commit 8e5b3b90c83d9aaca1dc2299da696b994780bcc0) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.12] gh-104719: IDLE - test existence of all tokenize references. ↵Miss Islington (bot)2023-05-245-12/+54
| | | | | | | | | | | | | (GH-104767) (#104844) gh-104719: IDLE - test existence of all tokenize references. (GH-104767) Class editor.IndentSearcher contains all editor references to tokenize module. Module io tokenize reference cover those other modules. (cherry picked from commit e561c09975bf67ad8bb67c56a81e30a9165bcc84) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-101282: Enclose BOLT_APPLY_FLAGS value in double quotes (gh… ↵Dong-hee Na2023-05-242-19/+18
| | | | | | (gh-104853) [3.12] gh-101282: Enclose BOLT_APPLY_FLAGS value in double quotes (gh-104752) (cherry picked from commit c43785192c97698a0217a680b30baae22106ed3e)
* [3.12] gh-104825: Remove implicit newline in the line attribute in tokens ↵Pablo Galindo Salgado2023-05-244-6/+12
| | | | | emitted in the tokenize module (GH-104846). (#104850) (cherry picked from commit c8cf9b42eb2bfbd4c3e708ec28d32430248a1d7a)
* [3.12] gh-102856: Add missing quote to fix doctest (GH-104852) (#104854)Miss Islington (bot)2023-05-241-1/+1
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-102856: Add changes related to PEP 701 in 3.12 What's New docs ↵Miss Islington (bot)2023-05-241-16/+135
| | | | | | | | | | (GH-104824) (#104847) gh-102856: Add changes related to PEP 701 in 3.12 What's New docs (GH-104824) (cherry picked from commit c45701e9ef004a523ebb28f3be902b3cf2cf7a9b) Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-104797: Allow Protocols to inherit from collections.abc.Buffer ↵Miss Islington (bot)2023-05-243-1/+19
| | | | | | | | (GH-104827) (#104841) gh-104797: Allow Protocols to inherit from collections.abc.Buffer (GH-104827) (cherry picked from commit c0ab7d401c736c37bf4462eef7c7d69fef8fab93) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-104372: use == -1 before PyErr_Occurred (GH-104831) (#104833)Miss Islington (bot)2023-05-241-1/+1
| | | | | | | | gh-104372: use == -1 before PyErr_Occurred (GH-104831) The ideal pattern for this. (already in the 3.11 backport) (cherry picked from commit 7f963bfc79a515dc9822ebddbfb1b5927d2dda09) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-103295: fix stack overwrite on 32-bit in perf map test harness ↵Miss Islington (bot)2023-05-231-4/+9
| | | | | | | | (GH-104811) (#104823) gh-103295: fix stack overwrite on 32-bit in perf map test harness (GH-104811) (cherry picked from commit e0b3078705b271ff278dfbc788c2b061c92a9aa3) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] Remove gh-103207 changelog item as it was never part of any release. ↵Miss Islington (bot)2023-05-231-10/+0
| | | | | | | (GH-104815) (cherry picked from commit 08b4eb83aadcbdb389b5970b51cac9be95146c2a) Co-authored-by: Ned Deily <nad@python.org>
* [3.12] gh-104271: Fix auto() fallback in case of mixed type Enum (GH-104279)Itamar Ostricher2023-05-232-2/+5
| | | gh-104271: Fix auto() fallback in case of mixed type Enum
* [3.12] gh-99108: Release the GIL around hashlib built-in computation ↵Miss Islington (bot)2023-05-237-15/+207
| | | | | | | | | | | | | | (GH-104675) (#104776) gh-99108: Release the GIL around hashlib built-in computation (GH-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. (cherry picked from commit 2e5d8a90aa633ff0bebc9b2b8e21eea389937b19) Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
* [3.12] GH-101291: Avoid using macros with casts in low-level long API. ↵Miss Islington (bot)2023-05-231-2/+3
| | | | | | | (GH-104742) (#104759) (cherry picked from commit e295d8605699ad3d8ec46c8d55a5e47da05b20c6) Co-authored-by: Mark Shannon <mark@hotpy.org>
* [3.12] GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104760)Miss Islington (bot)2023-05-234-7/+47
| | | | | | GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104674) (cherry picked from commit 357bed0bcd3c5d7c4a8caad451754a9a172aca3e) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* [3.12] howto/urllib2: remove link to an outdated french translation ↵Miss Islington (bot)2023-05-231-7/+0
| | | | | | | | (GH-104193) (#104758) We now have our own translation and it's not outdated (cherry picked from commit 151b6bfb5d9a15b6e2682e5a3008a3f9ec3086ae) Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
* [3.12] gh-87891: Add ABI check to CI (#104793)Petr Viktorin2023-05-233-3/+26441
| | | | | | | | | | | Backport the workflow change and fix-ups: - GH-92442 (e89c01eac7731d7cb54d43252dbc3d3f3a040c53) - GH-94129 (0dadb2249a8bafa7c5877daa08c9452f2248958a) - GH-98556 (194588decc05fa12f04cd90c3b78cc081151b19e) Co-Authored-By: sterliakov <50529348+sterliakov@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] Add the 3.12 branch to the github workflows. (GH-104768) (#104769)Miss Islington (bot)2023-05-222-0/+4
| | | | | | Add the 3.12 branch to the github workflows. (GH-104768) (cherry picked from commit 4194d8f2c40f478eb0fc9b6fa9b913baaff229da) Co-authored-by: T. Wouters <thomas@python.org>
* Post 3.12.0b1Thomas Wouters2023-05-221-1/+1
|