summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
* gh-111201: Support pyrepl on Windows (#119559)Dino Viehland2024-05-311-5/+8
| | | | Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-109218: Deprecate weird cases in the complex() constructor (GH-119620)Serhiy Storchaka2024-05-301-0/+4
| | | | | | | * Passing a string as the "real" keyword argument is now an error; it should only be passed as a single positional argument. * Passing a complex number as the "real" or "imag" argument is now deprecated; it should only be passed as a single positional argument.
* Docs: `shutil.rmtree`'s `onerror` has no pending removal version (#118947)Hugo van Kemenade2024-05-301-3/+3
|
* gh-119729: Use 't' in pkg-config file name for free-threaded build (#119738)Sam Gross2024-05-301-0/+4
| | | | | 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`.
* gh-93963: Remove deprecated names from importlib.abc (#119720)Hugo van Kemenade2024-05-291-10/+24
| | | | Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* gh-119613: Soft deprecate Py_IS_NAN/INFINITY/FINITE (#119701)Sergey B Kirpichev2024-05-291-0/+6
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-97588: Align ctypes struct layout to GCC/MSVC (GH-97702)Matthias Görgens2024-05-291-0/+12
| | | | | | | Structure layout, and especially bitfields, sometimes resulted in clearly wrong behaviour like overlapping fields. This fixes Co-authored-by: Gregory P. Smith <gps@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-118824: Remove deprecated `master_open` and `slave_open` from `pty` (#118826)Nikita Sobolev2024-05-281-0/+8
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-119562: Remove AST nodes deprecated since Python 3.8 (#119563)Alex Waygood2024-05-261-0/+30
|
* docs: fix a few typos identified by codespell (#119516)Ned Batchelder2024-05-266-7/+7
|
* Fix version number in use_load_tests deprecation reference (GH-119151)Jacob Walls2024-05-221-1/+1
| | | Deprecation took place in d78742a260ba09e53c844de7b1fd11a11c674945 (3.5)
* gh-60191: Implement ast.compare (#19211)Batuhan Taskaya2024-05-221-0/+7
| | | | | | | | | | * bpo-15987: Implement ast.compare Add a compare() function that compares two ASTs for structural equality. There are two set of attributes on AST node objects, fields and attributes. The fields are always compared, since they represent the actual structure of the code. The attributes can be optionally be included in the comparison. Attributes capture things like line numbers of column offsets, so comparing them involves test whether the layout of the program text is the same. Since whitespace seems inessential for comparing ASTs, the default is to compare fields but not attributes. ASTs are just Python objects that can be modified in arbitrary ways. The API for ASTs is under-specified in the presence of user modifications to objects. The comparison respects modifications to fields and attributes, and to _fields and _attributes attributes. A user could create obviously malformed objects, and the code will probably fail with an AttributeError when that happens. (For example, adding "spam" to _fields but not adding a "spam" attribute to the object.) Co-authored-by: Jeremy Hylton <jeremy@alum.mit.edu>
* Docs: Add central references to free-threading-related options (#119017)Brett Simmers2024-05-211-1/+2
|
* gh-74929: PEP 667 general docs update (gh-119201)Alyssa Coghlan2024-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)
* gh-118760: Restore the default value of tkinter.wantobjects to 1 (GH-118784)Serhiy Storchaka2024-05-201-10/+0
| | | | It was set to 2 in 65f5e586a1239ed1a66d8284773d7b02ce40e480 (GH-98592).
* 3.13 What's New: Add PEP 702 (#118922)Jelle Zijlstra2024-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.
* GH-74033: Drop deprecated `pathlib.Path` keyword arguments (#118793)Barney Gale2024-05-141-0/+2
| | | | Remove support for supplying keyword arguments to `pathlib.Path()`. This has been deprecated since Python 3.12.
* gh-118928: sqlite3: disallow sequences of params with named placeholders ↵Erlend E. Aasland2024-05-141-0/+5
| | | | | | | | (#118929) Follow-up of gh-101693. The previous DeprecationWarning is replaced with raising sqlite3.ProgrammingError. Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-118924: Remove `sqlite3.version` and `sqlite3.version_info` (#118925)Hugo van Kemenade2024-05-102-12/+30
|
* GH-78707: Drop deprecated `pathlib.PurePath.[is_]relative_to()` arguments ↵Barney Gale2024-05-101-0/+8
| | | | | | | (#118780) Remove support for supplying additional positional arguments to `PurePath.relative_to()` and `is_relative_to()`. This has been deprecated since Python 3.12.
* gh-118209: Add Windows structured exception handling to mmap module (GH-118213)Dobatymo2024-05-101-0/+3
|
* gh-118851: Default ctx arguments to AST constructors to Load() (#118854)Jelle Zijlstra2024-05-091-3/+5
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-118805: Remove type, choices, metavar params of `BooleanOptionalAction` ↵Nikita Sobolev2024-05-091-0/+7
| | | | | (#118806) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-118798: Remove deprecated isdst parameter from `email.utils.localtime` ↵Hugo van Kemenade2024-05-091-0/+9
| | | | (#118799)
* GH-101588: Remove deprecated pickle/copy/deepcopy from itertools (gh-118816)Raymond Hettinger2024-05-091-0/+5
|
* gh-118803: Remove `ByteString` from `typing` and `collections.abc` (#118804)Nikita Sobolev2024-05-083-4/+7
|
* gh-118767: Make bool(NotImplemented) raise TypeError (#118775)Jelle Zijlstra2024-05-081-0/+3
|
* Fix file extensions for 3.14 Whats New (#118770)Jelle Zijlstra2024-05-082-0/+1
|
* gh-118486: Update docs for CVE-2024-4030 reference (GH-118737)Steve Dower2024-05-081-0/+14
|
* Python 3.14.0a0Thomas Wouters2024-05-081-0/+131
|
* 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>