summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-121027: Add a future warning in functools.partial.__get__ ↵Miss Islington (bot)2024-06-271-0/+6
| | | | | | | | (GH-121086) (#121092) gh-121027: Add a future warning in functools.partial.__get__ (GH-121086) (cherry picked from commit db96edd6d1a58045196a71aff565743f493b5fbb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] docs: puremagic.what() as replacement for imghdr.what() (GH-120871) ↵Miss Islington (bot)2024-06-241-0/+3
| | | | | | | | (#120951) docs: puremagic.what() as replacement for imghdr.what() (GH-120871) (cherry picked from commit 22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7) Co-authored-by: Christian Clauss <cclauss@me.com>
* [3.13] gh-117511: Make PyMutex public in the non-limited API (GH-117731) ↵Sam Gross2024-06-201-0/+5
| | | | | (#120800) (cherry picked from commit 3af7263037de1d0ef63b070fc7bfc2cf042eaebe)
* [3.13] gh-112346: Document the OS byte in `gzip.compress` output change in ↵Miss Islington (bot)2024-06-171-0/+15
| | | | | | | | | | | 3.11 (GH-120480) (#120612) gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (GH-120480) (cherry picked from commit bac4edad69bb20dd9460766e062637cae999e1e0) gh-112346: Describe the "os" byte in gzip output change. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.13] gh-120345: Fix incorrect use of the :class: role with the "()" suffix ↵Miss Islington (bot)2024-06-122-3/+3
| | | | | | | | | | (GH-120347) (GH-120411) * Remove "()" when refer to a class as a type. * Use :func: when refer to a callable. * Fix reference to the datetime.astimezone() method. (cherry picked from commit 92c9c6ae147e1e658bbc8d454f8c7b2c4dea31d1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-119577: Adjust DeprecationWarning when testing element truth ↵Miss Islington (bot)2024-06-072-7/+10
| | | | | | | | | | values in ElementTree (GH-119762) (GH-120189) gh-119577: Adjust DeprecationWarning when testing element truth values in ElementTree (GH-119762) Adjust DeprecationWarning when testing element truth values in ElementTree, we're planning to go with the more natural True return rather than a disruptive harder to code around exception raise, and are deferring the behavior change for a few more releases. (cherry picked from commit 6b606522ca97488aad6fe2f193d4511e7a8f8334) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.13] gh-114616: Improve docs regarding changes to caches representation in ↵Miss Islington (bot)2024-06-041-0/+7
| | | | | | | | dis (GH-120033) (#120079) gh-114616: Improve docs regarding changes to caches representation in dis (GH-120033) (cherry picked from commit 770f3c1eadd3392c72fd55be47770234dd143a14) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] Fix incorrect pull GitHub link in What's New (GH-120045) (#120052)Miss Islington (bot)2024-06-041-1/+1
| | | | | Co-authored-by: Trey Hunner <trey@treyhunner.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.13] gh-109975: What's New in Python 3.13: fix broken link for `telnetlib` ↵Miss Islington (bot)2024-06-031-1/+1
| | | | | | | | alternative (GH-119958) (#119959) (cherry picked from commit 117a8acdab997b73ada822cce97815a86f839e15) Co-authored-by: Solomon Himelbloom <7608183+TechSolomon@users.noreply.github.com>
* [3.13] gh-118934: Fix PyEval_GetLocals docs (PEP 667) (GH-119934)Miss Islington (bot)2024-06-021-8/+28
| | | | | | | | | | | | | | | | PEP 667's description of the planned changes to PyEval_GetLocals was internally inconsistent when accepted, so the docs added for gh-74929 didn't match either the current behaviour or the intended behaviour once gh-118934 is fixed. This PR updates the documentation and 3.13 What's New to match the intended behaviour (once gh-118934 is fixed). It also tidies up lingering references to `f_locals` always being a dictionary (this hasn't been true since at least when custom namespace support for class statement execution was added) (cherry picked from commit fd6cd621e0cce6ba2e737103d2a62b5ade90f41f) Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* [3.13] gh-118888: Further PEP 667 docs updates (gh-119894)Miss Islington (bot)2024-06-021-1/+25
| | | | | | | | | * Clarify impact on default behaviour of exec, eval, etc * Update documentation for changes to PyEval_GetLocals (gh-74929) Closes gh-118888 (cherry picked from commit 2180991ea3d50f56595edae241cc92dd4e7de642) Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* [3.13] gh-74929: PEP 667 C API documentation (gh-119892)Miss Islington (bot)2024-06-011-1/+15
| | | | | | | | | | | * Add docs for new APIs * Add soft-deprecation notices * Add What's New porting entries * Update comments referencing `PyFrame_LocalsToFast()` to mention the proxy instead * Other related cleanups found when looking for refs to the deprecated APIs (cherry picked from commit 3859e09e3d92d004978dd838f0511364e7edfb94) Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* [3.13] gh-111201: Support pyrepl on Windows (GH-119559) (GH-119850)Miss Islington (bot)2024-05-311-5/+8
| | | | | | | | (cherry picked from commit 0d07182821fad7b95a043d006f1ce13a2d22edcb) Co-authored-by: Dino Viehland <dinoviehland@gmail.com> Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] Docs: `shutil.rmtree`'s `onerror` has no pending removal version ↵Miss Islington (bot)2024-05-301-3/+3
| | | | | | (GH-118947) (#119804) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.13] gh-119729: Use 't' in pkg-config file name for free-threaded build ↵Miss Islington (bot)2024-05-301-0/+4
| | | | | | | | | | (GH-119738) (#119797) For example, the free-threaded build now generates `lib/pkgconfig/python-3.13t.pc` and the debug build generates `lib/pkgconfig/python-3.13d.pc`. (cherry picked from commit 1c04c63ced5038e8f45a2aac7dc45f0815a4ddc5) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] docs: fix a few typos identified by codespell (GH-119516) (#119570)Miss Islington (bot)2024-05-266-7/+7
| | | | Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.13] Fix version number in use_load_tests deprecation reference ↵Miss Islington (bot)2024-05-221-1/+1
| | | | | | | | (GH-119151) (GH-119386) Deprecation took place in d78742a260ba09e53c844de7b1fd11a11c674945 (3.5) (cherry picked from commit aee8f03abbebfb76357f459dfb297026862e3c0b) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.13] Docs: Add central references to free-threading-related options ↵Miss Islington (bot)2024-05-211-1/+2
| | | | | | | | (GH-119017) (#119367) Docs: Add central references to free-threading-related options (GH-119017) (cherry picked from commit 9fa206aaeccc979a4bd03852ba38c045294a3d6f) Co-authored-by: Brett Simmers <swtaarrs@users.noreply.github.com>
* [3.13] gh-74929: PEP 667 general docs update (gh-119291)Miss Islington (bot)2024-05-211-4/+51
| | | | | | | | | | | * expand on What's New entry for PEP 667 (including porting notes) * define 'optimized scope' as a glossary term * cover comprehensions and generator expressions in locals() docs * review all mentions of "locals" in documentation (updating if needed) * review all mentions of "f_locals" in documentation (updating if needed) (cherry picked from commit e870c852c0ea96fa4e4569e9c39c7ceb80ce858d) Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* [3.13] gh-118760: Restore the default value of tkinter.wantobjects to 1 ↵Miss Islington (bot)2024-05-201-10/+0
| | | | | | | | (GH-118784) (GH-119251) It was set to 2 in 65f5e586a1239ed1a66d8284773d7b02ce40e480 (GH-98592). (cherry picked from commit e188527c343c74574d481b77c30063db1436e62b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] 3.13 What's New: Add PEP 702 (GH-118922) (#119062)Miss Islington (bot)2024-05-151-0/+3
| | | | | | | | I honestly forgot this slipped into 3.13, but I think it's worth highlighting more, as it is a PEP-sized change that makes the type system significantly more powerful. @Yhg1s I think it's also worth mentioning in your release announcements. (cherry picked from commit ee13797dec988884f8792144fe5b3d7f5c8083c9) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-118209: Add Windows structured exception handling to mmap module (GH-118213)Miss Islington (bot)2024-05-101-0/+3
| | | | | (cherry picked from commit e85e8deaf3220c8d12b69294e45645aaf20187b9) Co-authored-by: Dobatymo <Dobatymo@users.noreply.github.com>
* [3.13] gh-118851: Default ctx arguments to AST constructors to Load() ↵Miss Islington (bot)2024-05-091-3/+5
| | | | | | | | (GH-118854) (#118871) (cherry picked from commit 68fbc00dc870f6a8dcbecd2ec19298e21015867f) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-118486: Update docs for CVE-2024-4030 reference (GH-118737)Steve Dower2024-05-091-0/+14
| | | Update docs for CVE-2024-4030 reference
* gh-118671: Updated dead ActiveState links (#118730)trag1c2024-05-081-2/+2
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-109975: Make a rough editorial pass over What's New (#118711)T. Wouters2024-05-071-509/+542
| | | | | | Make a rough editorial pass over Python 3.13's What's New document. Add the release highlights, remove or merge some duplicated entries, and reorder some of the sections (removals should really go before future deprecations).
* gh-66410: Do not stringify arguments of Tkinter callback (GH-98592)Serhiy Storchaka2024-05-071-0/+10
| | | | | | | | | Callbacks registered in the tkinter module now take arguments as various Python objects (int, float, bytes, tuple), not just str. To restore the previous behavior set tkinter module global wantobject to 1 before creating the Tk object or call the wantobject() method of the Tk object with argument 1. Calling it with argument 2 restores the current default behavior.
* gh-118518: Rename `PYTHONPERFJITSUPPORT` and `-X perfjit` with underscores ↵Hugo van Kemenade2024-05-071-1/+1
| | | | (#118693)
* gh-109653: What's new: Note improved import times for several stdlib modules ↵Alex Waygood2024-05-071-0/+9
| | | | in Python 3.13 (#118697)
* gh-109975: Update 'What's New in Python 3.13' for beta (#118694)Hugo van Kemenade2024-05-071-7/+2
|
* Docs: add whatsnew for free-threading (#118679)Sam Gross2024-05-071-0/+46
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-117486: Improve behavior for user-defined AST subclasses (#118212)Jelle Zijlstra2024-05-061-0/+6
| | | | | | | | Now, such classes will no longer require changes in Python 3.13 in the normal case. The test suite for robotframework passes with no DeprecationWarnings under this PR. I also added a new DeprecationWarning for the case where `_field_types` exists but is incomplete, since that seems likely to indicate a user mistake.
* gh-115119: Default to --with-system-libmpdec=yes (#118539)Erlend E. Aasland2024-05-061-0/+5
| | | Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* gh-118271: Support more options for reading/writing images in Tkinter ↵Serhiy Storchaka2024-05-061-0/+6
| | | | | | | | (GH-118273) * Add PhotoImage.read() to read an image from a file. * Add PhotoImage.data() to get the image data. * Add background and grayscale parameters to PhotoImage.write().
* gh-118225: Support more options for copying images in Tkinter (GH-118228)Serhiy Storchaka2024-05-061-0/+9
| | | | | | | | * Add the PhotoImage method copy_replace() to copy a region from one image to other image, possibly with pixel zooming and/or subsampling. * Add from_coords parameter to PhotoImage methods copy(), zoom() and subsample(). * Add zoom and subsample parameters to PhotoImage method copy().
* gh-66543: Add mimetypes.guess_file_type() (GH-117258)Serhiy Storchaka2024-05-061-0/+11
|
* gh-118465: Add __firstlineno__ attribute to class (GH-118475)Serhiy Storchaka2024-05-061-0/+5
| | | | It is set by compiler with the line number of the first line of the class definition.
* gh-111201: A new Python REPL (GH-111567)Pablo Galindo Salgado2024-05-051-0/+28
| | | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-74929: Rudimentary docs for PEP 667 (#118581)Guido van Rossum2024-05-051-0/+5
| | | | | | | | | This is *not* sufficient for the final 3.13 release, but it will do for beta 1: - What's new entry - Updated changelog entry (news blurb) - Mention the proxy for f_globals in the datamodel and Python frame object docs This doesn't have any C API details (what's new refers to the PEP).
* GH-111744: Make breakpoint() enter the debugger immediately (GH-118579)Tian Gao2024-05-051-0/+6
|
* gh-118131: Command-line interface for the `random` module (#118132)Hugo van Kemenade2024-05-051-0/+6
|
* gh-118518: Allow perf to work without frame pointers (#112254)Pablo Galindo Salgado2024-05-051-0/+5
|
* gh-115532 Add kde_random() to the statistic module (#118210)Raymond Hettinger2024-05-041-1/+2
|
* gh-116126: Implement PEP 696 (#116129)Jelle Zijlstra2024-05-031-0/+6
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-118500: Add pdb support for zipapp (#118501)Tian Gao2024-05-021-0/+3
|
* gh-93502: Add new C-API functions to trace object creation and destruction ↵Pablo Galindo Salgado2024-05-021-0/+5
| | | | (#115945)
* gh-118216: Don't consider dotted `__future__` imports (#118267)Crowthebird2024-05-021-0/+4
|
* gh-118335: Rename --experimental-interpreter on Windows to ↵Guido van Rossum2024-05-021-1/+2
| | | | | --experimental-jit-interpreter (#118497) Also fix docs for this in whatsnew.
* gh-117225: Document colour use in `doctest` (#118268)Hugo van Kemenade2024-05-011-1/+15
|
* gh-110850: Add PyTime_TimeRaw() function (#118394)Victor Stinner2024-05-011-3/+9
| | | | | | | | | | | | | | | | | Add "Raw" variant of PyTime functions: * PyTime_MonotonicRaw() * PyTime_PerfCounterRaw() * PyTime_TimeRaw() Changes: * Add documentation and tests. Tests release the GIL while calling raw clock functions. * py_get_system_clock() and py_get_monotonic_clock() now check that the GIL is hold by the caller if raise_exc is non-zero. * Reimplement "Unchecked" functions with raw clock functions. Co-authored-by: Petr Viktorin <encukou@gmail.com>