summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-99113: Add a What's New Entry for PEP 684 (gh-107520) (gh-107523)Miss Islington (bot)2023-07-311-0/+40
| | | | | | gh-99113: Add a What's New Entry for PEP 684 (gh-107520) (cherry picked from commit 79e479c45fc63b6001b206fec832064c31fc1f11) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) ↵Miss Islington (bot)2023-07-311-0/+4
| | | | | | | | (GH-107509) gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466) (cherry picked from commit de51dede5b48ef23d7d33d92f3616824e23fd205) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.12] GH-101291: Add warning to "what's new" that `PyLongObject` internals ↵Miss Islington (bot)2023-07-311-0/+11
| | | | | | | have changed. (GH-107388) (#107392) (cherry picked from commit 1ee605c5888fbc3d51b3e7610bac38ea6bc25e31) Co-authored-by: Mark Shannon <mark@hotpy.org>
* [3.12] gh-99079: add What's New item (GH-107481)Ned Deily2023-07-311-0/+2
|
* [3.12] gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386) ↵Serhiy Storchaka2023-07-291-1/+1
| | | | | (GH-107419) (cherry picked from commit f2d07d3289947d10b065b2bb7670c8fb6b6582f2)
* [3.12] gh-107091: Fix some uses of :func: role (GH-107378) (GH-107416)Serhiy Storchaka2023-07-292-15/+15
| | | | :c:func: or :c:macro: should be used instead. (cherry picked from commit 413ba8943e2f1d896a0568eb571a041b88589440)
* [3.12] gh-107091: Fix some uses of :const: role (GH-107379) (GH-107384)Miss Islington (bot)2023-07-281-10/+10
| | | | | | It is for references, not for literals. (cherry picked from commit 0aa58fa7a62cd0ee7ec27fa87122425aeff0467d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107298: Fix yet more Sphinx warnings in the C API doc (GH-107345) ↵Serhiy Storchaka2023-07-282-3/+3
| | | | | (GH-107380) (cherry picked from commit 983305268e2291b0a7835621b81bf40cba7c27f3)
* [3.12] gh-107298: Fix more Sphinx warnings in the C API doc (GH-107329) ↵Serhiy Storchaka2023-07-283-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-107376) Declare the following functions as macros, since they are actually macros. It avoids a warning on "TYPE" or "macro" argument. * PyMem_New() * PyMem_Resize() * PyModule_AddIntMacro() * PyModule_AddStringMacro() * PyObject_GC_New() * PyObject_GC_NewVar() * PyObject_New() * PyObject_NewVar() Add C standard C types to nitpick_ignore in Doc/conf.py: * int64_t * uint64_t * uintptr_t No longer ignore non existing "__int" type in nitpick_ignore. Update Doc/tools/.nitignore. (cherry picked from commit 8d61a71f9c81619e34d4a30b625922ebc83c561b) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-107091: Fix some uses of :attr: role (GH-107318) (GH-107330)Serhiy Storchaka2023-07-271-1/+1
| | | | | Fix also formatting of PyMethodDef members. (cherry picked from commit d363eb5b0255c055e7b43f5e2c0847f555e1982e)
* [3.12] gh-107091: Fix some uses of :c:type: role (GH-107138) (GH-107312)Miss Islington (bot)2023-07-264-4/+4
| | | | | (cherry picked from commit 6d5b6e71c87fca7c5c26f5dd8f325087962215cc) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107091: Fix some uses of :c:member: role (GH-107129) (GH-107310)Miss Islington (bot)2023-07-262-2/+2
| | | | | (cherry picked from commit af61cb9c7837ff3c11da79e3ee1cab3fdd0ba4da) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-105291: Add link to migration guide for distutils (GH-107130) ↵Miss Islington (bot)2023-07-231-1/+3
| | | | | | | (#107160) Co-authored-by: cLupus <cLupus@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-106948: Docs: Disable links for C standard library functions, OS ↵Miss Islington (bot)2023-07-232-4/+4
| | | | | | | | utility functions and system calls (GH-107062) (#107154) (cherry picked from commit b447e19e720e6781025432a40eb72b1cc93ac944) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107091: Fix the use of some C domain roles (GH-107092) (GH-107113)Miss Islington (bot)2023-07-232-2/+2
| | | | | (cherry picked from commit 08a228da05a7aec937b65eea21f4091fa3c6b5cf) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-106969: Indicate no modules were added in 3.10 & 3.12 (GH-106988) ↵Moritz Neeb2023-07-232-2/+2
| | | | | | | | | | | | | | (#107094) The "New Modules" section was left in place to ensure that the anchor link for new modules will still exist: /whatsnew/3.12.htmlGH-new-modules /whatsnew/3.10.htmlGH-new-modules This means that existing links to this section don't break. (cherry picked from commit 6dbffaed17d59079d6a2788d686009f762a3278f) Co-authored-by: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>
* [3.12] gh-106976: alphabetise bullets by module name task2-3 (GH-107005) ↵Miss Islington (bot)2023-07-231-237/+237
| | | | | | | (#107106) Co-authored-by: littlebutt's workshop <luogan199686@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949) ↵Serhiy Storchaka2023-07-234-5/+5
| | | | | | | | | | | | | | (#107060) * [3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949) It includes standard C types, macros and variables like "size_t", "LONG_MAX" and "errno", and standard environment variables like "PATH". (cherry picked from commit f8b7fe2f2647813ae8249675a80e59c117d30fe1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * Delete 2023-05-31-18-37-57.gh-issue-105156.R4El5V.rst
* [3.12] gh-107008: Document the curses module variables LINES and COLS ↵Miss Islington (bot)2023-07-221-2/+2
| | | | | | | | | (GH-107011) (GH-107057) LINES and COLS referred in curses.update_lines_cols() documentations are the module variables, not the environment variables. (cherry picked from commit 26e08dfdd7ac1b3d567d30cd35e4898121580390) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-106973: Change non-integral to non-integer in "3.12 What's New" ↵Miss Islington (bot)2023-07-221-1/+1
| | | | | | (GH-106984) (#106986) Co-authored-by: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>
* [3.12] gh-106892: Use roles :data: and :const: for referencing module ↵Serhiy Storchaka2023-07-2110-53/+53
| | | | | variables (GH-106894) (GH-106954) (cherry picked from commit d036db728ea3d54509cbad06df74e2d9a31fbec8)
* [3.12] gh-106909: Use role :const: for referencing module constants ↵Serhiy Storchaka2023-07-2112-61/+61
| | | | | (GH-106910) (GH-106956) (cherry picked from commit 4b9948617f91175783609769aa6160e5b49b9ccc)
* [3.12] gh-106919: Use role :c:macro: for referencing the C "constants" ↵Serhiy Storchaka2023-07-2111-38/+38
| | | | | (GH-106920) (GH-106951) (cherry picked from commit fcc816dbff7ca66c26f57a506e4d2330fe41d0ff)
* [3.12] gh-106669: Revert "gh-102988: Detect email address parsing errors ... ↵Gregory P. Smith2023-07-211-8/+0
| | | | | | | | | (GH-105127)" (GH-106733) (#106941) This reverts commit 18dfbd035775c15533d13a98e56b1d2bf5c65f00. Adds a regression test from the issue. See https://github.com/python/cpython/issues/106669.. (cherry picked from commit a31dea1feb61793e48fa9aa5014f358352205c1d)
* [3.12] gh-103968: What's New: Add porting hints for PyType_From with ↵Miss Islington (bot)2023-07-111-1/+25
| | | | | | | | metaclasses (GH-105698) (GH-106619) gh-103968: What's New: Add porting hints for PyType_From with metaclasses (GH-105698) (cherry picked from commit af5cf1e75136fcef967d4ebe1bc45f29e6dc1bcf) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-102988: Detect email address parsing errors and return empty tuple ↵Miss Islington (bot)2023-07-101-0/+8
| | | | | | | | | | | | | | to indicate the parsing error (old API) (GH-105127) (#106612) gh-102988: Detect email address parsing errors and return empty tuple to indicate the parsing error (old API) (GH-105127) Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). This fixes or at least ameliorates CVE-2023-27043. --------- (cherry picked from commit 18dfbd035775c15533d13a98e56b1d2bf5c65f00) Co-authored-by: Thomas Dwyer <github@tomd.tel> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-105256: What's New note for comprehension over locals() ↵Miss Islington (bot)2023-07-061-0/+6
| | | | | | | | (GH-106378) (#106471) gh-105256: What's New note for comprehension over locals() (GH-106378) (cherry picked from commit 13aefd175e3c04529251f175c23cb3ed88451fd0) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] gh-77782: Deprecate Py_HasFileSystemDefaultEncoding (GH-106272) (#106274)Miss Islington (bot)2023-06-301-0/+1
| | | | | | | | gh-77782: Deprecate Py_HasFileSystemDefaultEncoding (GH-106272) Deprecate Py_HasFileSystemDefaultEncoding variable. (cherry picked from commit f3cf2ddd8ddc7dfa6b06e6da640391a1bcd62b8a) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] Revert "GH-96145: Add AttrDict to JSON module for use with ↵Miss Islington (bot)2023-06-261-8/+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-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] 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] 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-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-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-105390: Correctly raise TokenError instead of SyntaxError for ↵Miss Islington (bot)2023-06-071-5/+6
| | | | tokenize errors (GH-105399) (#105439)
* [3.12] gh-102304: Fix Py_INCREF() stable ABI in debug mode (#104763) (#105352)Victor Stinner2023-06-061-0/+9
| | | | | | | | | | | | | | | 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)
* [3.12] gh-102304: doc: Add links to Stable ABI and Limited C API (#105345) ↵Victor Stinner2023-06-062-2/+2
| | | | | | | | | | | | | | | | | | | (#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] What's New in 3.12: List 'Improved Modules' alphabetically ↵Hugo van Kemenade2023-06-051-107/+107
| | | | (GH-105315) (#105321)
* [3.12] Clarify that error messages are better with PEP 701 (GH-105150) (#105169)Miss Islington (bot)2023-06-051-0/+25
| | | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
* [3.12] Fix typo in Python 3.12 What's New (GH-105278) (#105282)Miss Islington (bot)2023-06-041-2/+2
| | | | | | Fix typo in Python 3.12 What's New (GH-105278) (cherry picked from commit 9a90c9ace2ed878715107bf4ae39e5967d7c931f) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] GH-89886: Bump to GNU Autoconf v2.71 (#104925) (#105207)Erlend E. Aasland2023-06-011-0/+4
| | | Co-authored-by: Christian Heimes <christian@python.org>
* [3.12] gh-87729: add LOAD_SUPER_ATTR to 3.12 What's New (GH-105125) (#105143)Miss Islington (bot)2023-05-311-0/+7
|
* [3.12] gh-97933: add LOAD_FAST_AND_CLEAR to 3.12 What's New bytecode section ↵Miss Islington (bot)2023-05-311-0/+3
| | | | (GH-105126) (#105142)
* [3.12] Document PEP 698 and other new typing features in What's New ↵Miss Islington (bot)2023-05-281-6/+37
| | | | | | (GH-104957) (#105045) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-104992: [What's New in 3.12] Document ↵Miss Islington (bot)2023-05-281-1/+2
| | | | | | unittest.TestProgram.usageExit's deprecation (GH-104995) (#105036) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.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-101588: Deprecate pickle/copy/deepcopy support in itertools ↵Miss Islington (bot)2023-05-261-0/+6
| | | | (GH-104965) (GH-104997)
* [3.12] gh-103921: Document PEP 695 (GH-104642) (#104989)Miss Islington (bot)2023-05-261-2/+73
| | | | | | (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] Misc updates to Whatsnew 3.12 (GH-104912) (GH-104915)Miss Islington (bot)2023-05-251-1/+34
|