summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] Miscellaneous improvements to the typing docs (GH-105529) (#105567)Miss Islington (bot)2023-06-093-145/+229
| | | | | | | | Miscellaneous improvements to the typing docs (GH-105529) Mostly, these are changes so that we use shorter sentences and shorter paragraphs. In particular, I've tried to make the first sentence introducing each object in the typing API short and declarative. (cherry picked from commit 8e755923c97d689ba7c7fe8deb50c1b169263264) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-102304: Fix Py_INCREF() for limited C API 3.9 (#105553)Victor Stinner2023-06-092-11/+14
| | | | | | | | | | | | | | | | | * gh-102304: Fix Py_INCREF() for limited C API 3.9 (#105550) When Python is built in debug mode (Py_REF_DEBUG macro), Py_INCREF() and Py_DECREF() of the limited C API 3.9 (and older) now call Py_IncRef() and Py_DecRef(), since _Py_IncRef() and _Py_DecRef() were added to Python 3.10. (cherry picked from commit 7ba0fd9f87ad75f8eda8e002c2fc71049b815f33) * gh-102304: Remove Py_INCREF() doc change (#105552) Py_INCREF() was made compatible again with Python 3.9 and older in the limited API of Python debug mode. (cherry picked from commit 58e4b69f698e6fd0694a58f18679bbe0e7e50e91)
* [3.12] gh-105332: [Enum] Fix unpickling flags in edge-cases (GH-105348) ↵Miss Islington (bot)2023-06-094-23/+47
| | | | | | | | | | (GH-105520) * revert enum pickling from by-name to by-value (cherry picked from commit 4ff5690e591b7d11cf11e34bf61004e2ea58ab3c) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] CI: Configure macOS build as per updated devguide recommendations ↵Miss Islington (bot)2023-06-081-3/+2
| | | | | | | (GH-105533) (#105536) (cherry picked from commit a5f23d411062f9f29f8a7d7ddefe60d5d8e17d2e) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-100227: Lock Around Modification of the Global Allocators State ↵Miss Islington (bot)2023-06-085-227/+357
| | | | | | | | (gh-105516) (gh-105532) The risk of a race with this state is relatively low, but we play it safe anyway. We do avoid using the lock in performance-sensitive cases where the risk of a race is very, very low. (cherry picked from commit 68dfa496278aa21585eb4654d5f7ef13ef76cb50) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-102832: IDLE - update stackviewer open (GH-105528) (#105534)Miss Islington (bot)2023-06-081-2/+2
| | | | | | | | gh-102832: IDLE - update stackviewer open (GH-105528) Use 'last_exc' instead of 'last_value' in 3.12/3. (cherry picked from commit bb3454c1a75c90da3c34c060eb23403fed3fd958) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for ↵Miss Islington (bot)2023-06-084-52/+22
| | | | | | | | stackviewer (GH-103339) (#105526) gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339) (cherry picked from commit 3ee921d84f06da9dfa8aa29e0d33778b9dbf8f23) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] gh-100227: Lock Around Adding Global Audit Hooks (gh-105515) (gh-105525)Eric Snow2023-06-084-1287/+1321
| | | | The risk of a race with this state is relatively low, but we play it safe anyway. (cherry picked from commit e822a676f1f3bef6c5413e9b856db481c08ac2a5)
* [3.12] gh-100227: Lock Around Use of the Global "atexit" State (gh-105514) ↵Miss Islington (bot)2023-06-084-450/+481
| | | | | | | | (gh-105517) The risk of a race with this state is relatively low, but we play it safe anyway. (cherry picked from commit 7799c8e678f759c7787785c6287140abe641d1b9) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-104310: Rename the New Function in importlib.util (gh-105255) ↵Miss Islington (bot)2023-06-083-18/+41
| | | | | | | | | | | | | | | | (gh-105518) The original name wasn't as clear as it could have been. This change includes the following: * rename the function * change the default value for "disable_check" to False * add clues to the docstring that folks should probably not use the function --------- (cherry picked from commit 34c63b86d3c33a85acf55a0c5c118304754e145d) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.12] test_types: Replace raw assert statements (GH-105500) (#105507)Miss Islington (bot)2023-06-081-25/+27
| | | | | (cherry picked from commit a8eb7372eebe182fd4ef7381a742d84a368a7d1b) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] Further improve docs for `typing.Annotated` (GH-105498) (#105503)Miss Islington (bot)2023-06-082-61/+85
| | | | | | Further improve docs for `typing.Annotated` (GH-105498) (cherry picked from commit d213c2990f0db62ed39fc5468977f989c2658675) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105431: Remove unused stuff from `test_typing.NewTypeTests` ↵Miss Islington (bot)2023-06-081-7/+0
| | | | | | | | (GH-105432) (#105489) gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432) (cherry picked from commit 9d35a71a76cb033598ce136ea655d9e452fe3af0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-104996: Defer joining of `pathlib.PurePath()` arguments. ↵Barney Gale2023-06-072-14/+26
| | | | | | | | (GH-104999) (GH-105483) Joining of arguments is moved to `_load_parts`, which is called when a normalized path is needed. (cherry picked from commit ffeaec7e60c88d585deacb10264ba7a96e5e52df)
* [3.12] gh-103171: Forward-port new tests for runtime-checkable protocols ↵Miss Islington (bot)2023-06-071-0/+65
| | | | | | | | decorated with `@final` (GH-105473) (#105474) Forward-port of the tests that were added to the 3.11 branch in GH-105445 (cherry picked from commit f5df347fcf5fe029edbe6bf274da0f4880401852) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105390: Add explicit type cast (GH-105466) (#105472)Miss Islington (bot)2023-06-071-1/+2
|
* [3.12] gh-94673: Ensure subtypes are readied only once in math.trunc() ↵Miss Islington (bot)2023-06-071-1/+1
| | | | | | | | (gh-105465) (gh-105471) Fixes a typo in d2e2e53. (cherry picked from commit 5394bf92aa6516feb3322d8372d1579bd9c1417b) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
* [3.12] gh-90015: Document that PEP-604 unions do not support forward ↵Miss Islington (bot)2023-06-071-0/+8
| | | | | | | | references (GH-105366) (#105460) gh-90015: Document that PEP-604 unions do not support forward references (GH-105366) (cherry picked from commit fbdee000de47ae96fbf53ce8908e8efbb23cfba4) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Fix grammar and improve clarity for an deprecation message. ↵Miss Islington (bot)2023-06-071-2/+2
| | | | (GH-105457) (#105458)
* [3.12] typing: Improve documentation of generic classes and aliases ↵Miss Islington (bot)2023-06-072-65/+91
| | | | | | | | (GH-105369) (#105453) typing: Improve documentation of generic classes and aliases (GH-105369) (cherry picked from commit d63a7c3694d5c4484fcaa01c33590b1d4bc2559e) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105437: Improve tests of type params names for PEP 695 (GH-105438) ↵Miss Islington (bot)2023-06-072-4/+12
| | | | | | | (#105452) (cherry picked from commit 76883af6bf28b7e810df172bd6762bf2cb64df08) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-105430: Remove `typing._Immutable` unused internal helper ↵Miss Islington (bot)2023-06-071-11/+0
| | | | | | | | (GH-105434) (#105451) gh-105430: Remove `typing._Immutable` unused internal helper (GH-105434) (cherry picked from commit 18309ad94bb1ae0b092f34dc3fd54199876a6ebd) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-97797: Improve documentation for typing.Annotated (GH-105365) ↵Miss Islington (bot)2023-06-071-19/+54
| | | | | | | | (#105448) gh-97797: Improve documentation for typing.Annotated (GH-105365) (cherry picked from commit e26d296984b2b6279231922ab0940d904aa6144e) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Improve docs for `typing.TypeAlias` (GH-105372) (#105446)Miss Islington (bot)2023-06-071-4/+26
| | | | | | Improve docs for `typing.TypeAlias` (GH-105372) (cherry picked from commit c5ec51ec8f4508e1f01f6d98ac8364a13da9bec7) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105435: Fix spurious NEWLINE token if file ends with comment ↵Miss Islington (bot)2023-06-073-5/+39
| | | | without a newline (GH-105442) (#105444)
* [3.12] gh-105375: Improve error handling in sqlite3 collation callback ↵Miss Islington (bot)2023-06-072-3/+7
| | | | | | | | (GH-105412) (#105440) Check for error after each call to PyUnicode_FromStringAndSize(). (cherry picked from commit a24a780d937109a0982d807473ae410cc75b0e3b) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-105390: Correctly raise TokenError instead of SyntaxError for ↵Miss Islington (bot)2023-06-076-24/+35
| | | | tokenize errors (GH-105399) (#105439)
* [3.12] gh-89886: Use Autoconf quadrigraphs where appropriate (#105226) (#105423)Erlend E. Aasland2023-06-071-44/+44
|
* [3.12] Improve code examples in `typing.rst` (GH-105346) (#105422)Miss Islington (bot)2023-06-071-30/+75
| | | | | | Improve code examples in `typing.rst` (GH-105346) (cherry picked from commit 81c81328a4fa13fead6f8cc9053a1a32a62a0279) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] typing docs: Make the PEPs list an expandable section, hidden by ↵Miss Islington (bot)2023-06-071-1/+11
| | | | | | | | | default (GH-105353) (#105420) typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353) (cherry picked from commit d7645124f56c8832a7630a7f76c99e2630e685d7) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-95088: Clarify rules for parsing an item key for format strings ↵Miss Islington (bot)2023-06-071-1/+3
| | | | | | | | | | (GH-103779) (#105419) GH-95088: Clarify rules for parsing an item key for format strings (GH-103779) (cherry picked from commit 3e7316d7e8969febb56fbc7416d483b073bd1702) Co-authored-by: achhina <amanschhina@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] `typing.NewType` docs: the future performance improvements are now in ↵Miss Islington (bot)2023-06-071-3/+7
| | | | | | | | the past (GH-105354) (#105414) `typing.NewType` docs: the future performance improvements are now in the past (GH-105354) (cherry picked from commit 5f65ff0370e1123084ff300a5ff02cd57623b575) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105286: Further improvements to `typing.py` docstrings (GH-105363) ↵Miss Islington (bot)2023-06-071-25/+43
| | | | | | | | (#105416) gh-105286: Further improvements to `typing.py` docstrings (GH-105363) (cherry picked from commit 9a89f1bf1e7bb819fe7240be779c99a84f47ea46) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Merge branch '3.12' of https://github.com/python/cpython into 3.12Thomas Wouters2023-06-0613-83/+53
|\
| * gh-92658: Fix typo in docs and tests for `HV_GUID_PARENT` (GH-105267)Miss Islington (bot)2023-06-062-2/+2
| | | | | | | | | | (cherry picked from commit 3907de12b57b14f674cdcc80ae64350a23af53a0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
| * [3.12] sliding_window() recipe: Raise ValueError for non-positive window ↵Miss Islington (bot)2023-06-061-3/+27
| | | | | | | | sizes. Add more tests. (GH-105403) (GH-105405)
| * [3.12] gh-94172: Update keyfile removal documentation (GH-105392) (#105402)Miss Islington (bot)2023-06-065-51/+7
| | | | | | | | | | | | | | | | | | gh-94172: Update keyfile removal documentation (GH-105392) Remove the "deprecated:: 3.6" markup, since the parameters (like keyfile and certfile) got removed in Python 3.12. (cherry picked from commit 2b8e6e5712a83657333948bc387c81db02549b13) Co-authored-by: Victor Stinner <vstinner@python.org>
| * [3.12] gh-102304: Fix Py_INCREF() stable ABI in debug mode (#104763) (#105352)Victor Stinner2023-06-065-27/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gh-102304: Fix Py_INCREF() stable ABI in debug mode (#104763) When Python is built in debug mode (if the Py_REF_DEBUG macro is defined), the Py_INCREF() and Py_DECREF() function are now always implemented as opaque functions to avoid leaking implementation details like the "_Py_RefTotal" variable or the _Py_DecRefTotal_DO_NOT_USE_THIS() function. * Remove _Py_IncRefTotal_DO_NOT_USE_THIS() and _Py_DecRefTotal_DO_NOT_USE_THIS() from the stable ABI. * Remove _Py_NegativeRefcount() from limited C API. (cherry picked from commit 92022d8416d9e175800b65c4d71d4e4fb47adcb0)
* | Post 3.12.0b2Thomas Wouters2023-06-061-1/+1
| |
* | Python 3.12.0b2v3.12.0b2Thomas Wouters2023-06-0654-234/+1207
|/
* [3.12] GH-105162: Account for `INSTRUMENTED_RESUME` in gen.close/throw. ↵Miss Islington (bot)2023-06-063-3/+52
| | | | | | | | (GH-105187) (#105378) GH-105162: Account for `INSTRUMENTED_RESUME` in gen.close/throw. (GH-105187) (cherry picked from commit 601ae09f0c8eda213b9050892f5ce9b91f0aa522) Co-authored-by: Mark Shannon <mark@hotpy.org>
* [3.12] gh-104411: Update test_getint for Tcl 9.0 (GH-104412) (#105356)Miss Islington (bot)2023-06-061-1/+4
| | | | | | gh-104411: Update test_getint for Tcl 9.0 (GH-104412) (cherry picked from commit 2c49c759e880a32539f50c31dbd35d2bc4b4e030) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] gh-104399: Use newer libtommath APIs when necessary (GH-104407) (#105343)Miss Islington (bot)2023-06-062-2/+25
| | | | | | gh-104399: Use newer libtommath APIs when necessary (GH-104407) (cherry picked from commit 00d73caf804c0474980e471347d6385757af975f) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] gh-102304: doc: Add links to Stable ABI and Limited C API (#105345) ↵Victor Stinner2023-06-0616-42/+53
| | | | | | | | | | | | | | | | | | | (#105371) * gh-102304: doc: Add links to Stable ABI and Limited C API (#105345) * Add "limited-c-api" and "stable-api" references. * Rename "stable-abi-list" reference to "limited-api-list". * Makefile: Document files regenerated by "make regen-limited-abi" * Remove first empty line in generated files: - Lib/test/test_stable_abi_ctypes.py - PC/python3dll.c (cherry picked from commit bae415ad02c79cf3a2eec4aa6969221a12e6716f) * gh-102304: Fix up Simple ABI doc (GH-105351) (cherry picked from commit 0202aa002e06acef9aa55ace0d939103df19cadd)
* [3.12] gh-105259: Ensure we don't show newline characters for trailing ↵Miss Islington (bot)2023-06-065-5/+17
| | | | NEWLINE tokens (GH-105364) (#105367)
* [3.12] gh-90005: Don't link with libbsd if not needed (#105236) (#105360)Erlend E. Aasland2023-06-063-5/+9
| | | | The regression was introduced with commit 5b946cada. Restore pre gh-29696 behaviour.
* [3.12] gh-105324: Fix tokenize module main function for stdin (GH-105325) ↵Miss Islington (bot)2023-06-052-2/+3
| | | | (#105330)
* [3.12] gh-89412: Add missing attributes (added in 3.10) to traceback module ↵Miss Islington (bot)2023-06-053-2/+18
| | | | | | | docs (GH-105046) (#105327) (cherry picked from commit a4f72fa39a9d391c7b931ba1906d81da4ae01949) Co-authored-by: Jakub Kuczys <me@jacken.men>
* [3.12] gh-97908: CAPI docs: Remove repeated struct names from member docs ↵Miss Islington (bot)2023-06-052-8/+23
| | | | | | | | (GH-100054) (#105057) And add raw HTML fragments to keep old links working. (cherry picked from commit 1668b41dc477bc9562e4c50ab36a232839b4621b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] What's New in 3.12: List 'Improved Modules' alphabetically ↵Hugo van Kemenade2023-06-051-107/+107
| | | | (GH-105315) (#105321)