summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] Refer to `TimeoutError` instead of `asyncio.TimeoutError` in ↵Miss Islington (bot)2023-06-281-4/+4
| | | | | | | `asyncio-task.rst` (GH-106136) (#106179) Co-authored-by: lightdrk <108566237+lightdrk@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-106140: Reorder some more fields to facilitate out-of-process ↵Pablo Galindo Salgado2023-06-271-95/+95
| | | | | inspection (GH-106148) (#106155) (cherry picked from commit 9126a6a9ce3772d5dc785cbee159b07a1ff7d531)
* [3.12] gh-106140: Reorder some fields to facilitate out-of-process ↵Miss Islington (bot)2023-06-271-26470/+26470
| | | | | | | | | inspection (GH-106143) (#106147) gh-106140: Reorder some fields to facilitate out-of-process inspection (GH-106143) (cherry picked from commit 2d5a1c281161d037148ffb5983decc6d31c2557d) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] gh-92788: Add docs for `ast.Module`, `ast.Expression`, and others ↵Miss Islington (bot)2023-06-271-0/+101
| | | | | | | | (GH-101055) (#106139) gh-92788: Add docs for `ast.Module`, `ast.Expression`, and others (GH-101055) (cherry picked from commit 33608fd67df8b1033519f808441ee00289e2dac0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-105774: Clarify operation of normalize() (GH-106093) (GH-106128)Miss Islington (bot)2023-06-271-6/+37
|
* [3.12] Revert "GH-96145: Add AttrDict to JSON module for use with ↵Miss Islington (bot)2023-06-262-51/+0
| | | | | | | | | | object_hook (GH-96146)" (GH-105948) (#106117) Revert "GH-96145: Add AttrDict to JSON module for use with object_hook (GH-96146)" (GH-105948) This reverts commit 1f0eafa844bf5a380603d55e8d4b42d8c2a3439d. (cherry picked from commit d3af83b9342457d8b24476baeb799f7506ff04f3) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.12] gh-106107: document correct error that's raised when a mutable ↵Miss Islington (bot)2023-06-261-1/+1
| | | | | | | | default value for a field is detected (gh-106109) (gh-106115) gh-106107: document correct error that's raised when a mutable default value for a field is detected (gh-106109) (cherry picked from commit 512f299e557f4ab60768d36cee9968bd92116367) Co-authored-by: Roderich Schupp <roderich.schupp@gmail.com>
* [3.12] gh-106111: Remove zipapp documentation on creating a Windows ↵Miss Islington (bot)2023-06-261-106/+9
| | | | | | | | | executable (GH-106112) (#106114) Remove zipapp documentation on creating a Windows executable (cherry picked from commit 5d4dbf0e309255e5bce9e31d805a8f950ebf9161) Co-authored-by: Paul Moore <p.f.moore@gmail.com>
* [3.12] Improve typing docs on the type of class objects (GH-106081) (#106096)Miss Islington (bot)2023-06-261-49/+59
| | | | | | Improve typing docs on the type of class objects (GH-106081) (cherry picked from commit 3eeb8c89063d5ac22c0b1d26e4ae2fd12c149650) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-84436: update docs on Py_None/Py_True/Py_False/Py_Ellipsis ↵Miss Islington (bot)2023-06-263-19/+25
| | | | | | | | becoming immortal (GH-105195) (#105977) gh-84436: update docs on Py_None/Py_True/Py_False/Py_Ellipsis becoming immortal (GH-105195) (cherry picked from commit a2392720d6108041d17960a86514ba859b436f05) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] gh-104212: Explain how to port imp.load_source() (GH-105978) (#106083)Miss Islington (bot)2023-06-251-1/+15
| | | | | | | | | gh-104212: Explain how to port imp.load_source() (GH-105978) Explain how to port removed imp.load_source() to importlib in What's New in Python 3.12. (cherry picked from commit 18a7c86697493510993e43bafe8bd4046928bec5) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] Docs: add links to 'callable' term in sqlite3 docs (GH-106072) (#106073)Miss Islington (bot)2023-06-251-17/+18
| | | | | (cherry picked from commit bef1c8761e3b0dfc5708747bb646ad8b669cbd67) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106033: [docs] Improve C API GetItem & HasAttr notes. (GH-106047) ↵Miss Islington (bot)2023-06-242-14/+23
| | | | | | | | | | | | (#106070) gh-106033: [docs] Improve C API GetItem & HasAttr notes. (GH-106047) Use a note:: tag so that these dict and object API deficiencies show up clearly. A caution:: tag was considered, but our current python docs rendering doesn't do much with that (no box or color change). warning:: seemed too extreme. note looks good. (cherry picked from commit 19d6511b0b8f3f74e668ae32ccef89bcbf1a8a62) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] GH-104375: Use `versionchanged` to describe new arguments in pathlib ↵Barney Gale2023-06-241-10/+12
| | | | | docs (GH-104376, GH-106058) (cherry picked from commit 4a6c84fc1ea8f26d84a0fbeeff6f8dedc32263d4)
* [3.12] Typing docs: fix typo in annotating tuples comment (GH-106048) (#106049)Miss Islington (bot)2023-06-231-2/+2
| | | | | | Typing docs: fix typo in annotating tuples comment (GH-106048) (cherry picked from commit 8ef0ee4ebc84ee68f16cea85ffdb949ecccb4ba5) Co-authored-by: Eamon Tracey <66919574+EamonTracey@users.noreply.github.com>
* [3.12] Typing docs: improve the guidance on annotating tuples (GH-106021) ↵Miss Islington (bot)2023-06-231-21/+72
| | | | | | | | (#106027) Typing docs: improve the guidance on annotating tuples (GH-106021) (cherry picked from commit 968435ddb1c1af9333befb26f7970cded8a5c710) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Docs: Avoid a DeprecationWarning in `pyspecific.py` when running with ↵Miss Islington (bot)2023-06-231-11/+9
| | | | | | | | | Sphinx >=6.1 (GH-105886) (#106010) Docs: Avoid a DeprecationWarning in `pyspecific.py` when running with Sphinx >=6.1 (GH-105886) (cherry picked from commit a72683ba8e0337650cc490dbe593a5e46aba60cb) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] stdtypes.rst: remove a period (GH-105959) (#105968)Miss Islington (bot)2023-06-211-1/+1
| | | | | | stdtypes.rst: remove a period (GH-105959) (cherry picked from commit c5a722be5f7979c73e2451e537a8fc58bf9af12e) Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
* [3.12] gh-104212: Explain how to port imp code to importlib (GH-105905) ↵Miss Islington (bot)2023-06-201-1/+32
| | | | | | | | (#105952) gh-104212: Explain how to port imp code to importlib (GH-105905) (cherry picked from commit 7a56a4148c521969d64164d2776641f19e3ca9e8) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] typing docs: Improve the intro to each section (GH-105901) (#105902)Miss Islington (bot)2023-06-191-36/+40
| | | | | | typing docs: Improve the intro to each section (GH-105901) (cherry picked from commit 4426279a4399158027a1145cff1c4c92424bf5b5) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105844: Use devguide terminology to denote versions (GH-105882) ↵Miss Islington (bot)2023-06-181-3/+3
| | | | | | | (#105892) (cherry picked from commit dba72175116373c1d15e25d84c88b516daf9f5c4) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] Docs: move sphinx-lint to pre-commit (GH-105750) (#105894)Miss Islington (bot)2023-06-183-10/+3
| | | | | | Docs: move sphinx-lint to pre-commit (GH-105750) (cherry picked from commit bc07c8f096791d678ca5c1e3486cb9648f7a027b) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) ↵Miss Islington (bot)2023-06-161-2/+5
| | | | | | | | | | | | (#105841) bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) * bpo-44530: Document the change in MAKE_FUNCTION behavior Fixes dis module documentation for MAKE_FUNCTION due to https://github.com/python/cpython/commit/2f180ce2cb6e6a7e3c517495e0f4873d6aaf5f2f (bpo-44530, released as part of 3.11) removes the qualified name at TOS (cherry picked from commit 486b52a3158e0f64fc54efdfa34ed5437b3619f2) Co-authored-by: Alex Doe <alexdoesh@gmail.com>
* [3.12] gh-105844: Consistently use 'minor version' for X.Y versions ↵Miss Islington (bot)2023-06-162-3/+3
| | | | | | | (GH-105851) (#105853) (cherry picked from commit 0bffe1acd78069ea21f6b1347bec9cc9747342cb) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] Fix inaccuracies in "Assorted Topics" section of "Defining Extension ↵Miss Islington (bot)2023-06-161-5/+5
| | | | | | | | Types" tutorial (GH-104969) (#105850) Fix inaccuracies in "Assorted Topics" section of "Defining Extension Types" tutorial (GH-104969) (cherry picked from commit 0d0963737a0f4b7cadedfae7e8fd33ed18269289) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
* [3.12] tarfile: Fix positional-only syntax in docs (GH-105770) (#105773)Miss Islington (bot)2023-06-161-4/+4
| | | | | | | | | | | The syntax used in the current docs (a / before any args) is invalid. I think the right approach is for the arguments to arbitrary filter functions to be treated as positional-only, meaning that users can supply filter functions with any names for the argument. tarfile.py only calls the filter function with positional arguments. (cherry picked from commit 5cdd5ba49db10f05e204e7a49ce184222a93dce8) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] More reorganisation of the typing docs (GH-105787) (#105810)Miss Islington (bot)2023-06-151-101/+117
| | | | | | More reorganisation of the typing docs (GH-105787) (cherry picked from commit da911a6b226ca47cc15088d800b575e19a731f1c) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Improve docs for `typing.dataclass_transform` (GH-105792) (#105809)Miss Islington (bot)2023-06-151-37/+69
| | | | | | Improve docs for `typing.dataclass_transform` (GH-105792) (cherry picked from commit 006a4532058f1fadba93283c0f45b0d82735b364) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-105196: Fix indentations of section headings in C API docs ↵Miss Islington (bot)2023-06-153-6/+6
| | | | | | | | (GH-105672) (#105782) gh-105196: Fix indentations of section headings in C API docs (GH-105672) (cherry picked from commit d32e8d6070057eb7ad0eb2f9d9f1efab38b2cff4) Co-authored-by: TATHAGATA ROY <royzen9495@gmail.com>
* [3.12] Typing docs: move the deprecated stuff below the non-deprecated stuff ↵Alex Waygood2023-06-141-496/+496
| | | | (#105781) (#105783)
* [3.12] gh-105387: Limited C API implements Py_INCREF() as func (GH-105388) ↵Miss Islington (bot)2023-06-141-0/+5
| | | | | | | | | | | | (#105763) gh-105387: Limited C API implements Py_INCREF() as func (GH-105388) In the limited C API version 3.12, Py_INCREF() and Py_DECREF() functions are now implemented as opaque function calls to hide implementation details. (cherry picked from commit b542972dc133973a7f0517aa1b61779271789111) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-104812: Run Pending Calls in any Thread (gh-104813) (gh-105752)Eric Snow2023-06-141-540/+549
| | | | For a while now, pending calls only run in the main thread (in the main interpreter). This PR changes things to allow any thread run a pending call, unless the pending call was explicitly added for the main thread to run. (cherry picked from commit 757b402)
* [3.12] gh-98040: Fix importbench: use types.ModuleType() (GH-105743) (#105754)Miss Islington (bot)2023-06-131-0/+2
| | | | | | | | gh-98040: Fix importbench: use types.ModuleType() (GH-105743) Replace removed imp.new_module(name) with types.ModuleType(name). (cherry picked from commit 457a459c7804950d4c27a243b176eb933ec87a06) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-105713: Document that tokenize raises when mixing tabs/spaces ↵Miss Islington (bot)2023-06-131-0/+3
| | | | | | | | | | | (GH-105723) (#105725) * gh-105713: Document that tokenize raises when mixing tabs/spaces * Update Doc/whatsnew/3.12.rst (cherry picked from commit ed8217b493e19cea0f3f539e55b592c09ceb9323) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL ↵Miss Islington (bot)2023-06-121-1/+1
| | | | | | | | (GH-105386) (GH-105697) gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL (GH-105386) (cherry picked from commit 2b90796be6959d5ef46b38c434a514fce25be971) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-99108: Mention HACL\* in the hashlib docs. (GH-105634) (#105635)Miss Islington (bot)2023-06-101-5/+6
| | | | | | gh-99108: Mention HACL\* in the hashlib docs. (GH-105634) (cherry picked from commit 3a314f7c3df0dd7c37da7d12b827f169ee60e1ea) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] Cleanup and clarify our hashlib docs. (GH-105624) (#105632)Miss Islington (bot)2023-06-101-47/+90
| | | | | | | | Cleanup and clarify our hashlib docs. (GH-105624) Clarify and improve our hashlib docs. Now with 50% less mess! (cherry picked from commit 0d1d6ab966ff4e4d651d0dee0ec9a2f868ef42da) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] Clarify the supported cases in the tokenize module (GH-105569) (#105573)Miss Islington (bot)2023-06-091-0/+9
| | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.12] Miscellaneous improvements to the typing docs (GH-105529) (#105567)Miss Islington (bot)2023-06-091-74/+143
| | | | | | | | 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-091-9/+0
| | | | | | | | | | | | | | | | | * 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-091-1/+10
| | | | | | | | | | (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] gh-100227: Lock Around Modification of the Global Allocators State ↵Miss Islington (bot)2023-06-081-171/+174
| | | | | | | | (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-100227: Lock Around Adding Global Audit Hooks (gh-105515) (gh-105525)Eric Snow2023-06-081-1266/+1274
| | | | 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-081-425/+453
| | | | | | | | (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] Further improve docs for `typing.Annotated` (GH-105498) (#105503)Miss Islington (bot)2023-06-081-55/+77
| | | | | | 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-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] typing: Improve documentation of generic classes and aliases ↵Miss Islington (bot)2023-06-071-62/+86
| | | | | | | | (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-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-105390: Correctly raise TokenError instead of SyntaxError for ↵Miss Islington (bot)2023-06-072-10/+6
| | | | tokenize errors (GH-105399) (#105439)