summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-118335: Configure Tier 2 interpreter at build time (#118339)Guido van Rossum2024-05-011-7/+23
| | | | | | | | | | | | | | | | | | | | | | The code for Tier 2 is now only compiled when configured with `--enable-experimental-jit[=yes|interpreter]`. We drop support for `PYTHON_UOPS` and -`Xuops`, but you can disable the interpreter or JIT at runtime by setting `PYTHON_JIT=0`. You can also build it without enabling it by default using `--enable-experimental-jit=yes-off`; enable with `PYTHON_JIT=1`. On Windows, the `build.bat` script supports `--experimental-jit`, `--experimental-jit-off`, `--experimental-interpreter`. In the C code, `_Py_JIT` is defined as before when the JIT is enabled; the new variable `_Py_TIER2` is defined when the JIT *or* the interpreter is enabled. It is actually a bitmask: 1: JIT; 2: default-off; 4: interpreter.
* gh-109975: Document crypt_r as a possible replacement of crypt (#118439)Miro Hrončok2024-04-301-1/+4
|
* gh-101100: Fix Sphinx warnings in `whatsnew/3.10.rst` (#118356)Hugo van Kemenade2024-04-281-37/+37
|
* gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (#118364)Hugo van Kemenade2024-04-282-27/+27
|
* gh-109118: Make comprehensions work within annotation scopes, but without ↵Jelle Zijlstra2024-04-281-1/+3
| | | | | inlining (#118160) Co-authored-by: Carl Meyer <carl@oddbird.net>
* bpo-32839: Add the after_info() method for Tkinter widgets (GH-5664)Cheryl Sabella2024-04-261-0/+3
|
* gh-108191: Add support of positional argument in SimpleNamespace constructor ↵Serhiy Storchaka2024-04-241-0/+8
| | | | | | | (GH-108195) SimpleNamespace({'a': 1, 'b': 2}) and SimpleNamespace([('a', 1), ('b', 2)]) are now the same as SimpleNamespace(a=1, b=2).
* gh-118013: Use weakrefs for the cache key in `inspect._shadowed_dict` (#118202)Alex Waygood2024-04-241-4/+3
|
* gh-95754: Better error when script shadows a standard library or third party ↵Shantanu2024-04-231-0/+34
| | | | module (#113769)
* gh-109118: Allow lambdas in annotation scopes in classes (#118019)Jelle Zijlstra2024-04-221-0/+3
|
* bpo-18108: Adding dir_fd and follow_symlinks keyword args to shutil.chown ↵tahia2024-04-221-0/+4
| | | | | | | | | | | (GH-15811) * Adding dir_fd and follow_symlinks keyword args to shutil.chown * Extending test_shutil.TestShutil.test_chown to include new kwargs * Updating shutil.chown documentation Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Berker Peksag <berker.peksag@gmail.com> Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* gh-115961: Add name and mode attributes for compressed file-like objects ↵Serhiy Storchaka2024-04-211-0/+11
| | | | | | | | | | (GH-116036) * Add name and mode attributes for compressed and archived file-like objects in modules bz2, lzma, tarfile and zipfile. * Change the value of the mode attribute of GzipFile from integer (1 or 2) to string ('rb' or 'wb'). * Change the value of the mode attribute of ZipExtFile from 'r' to 'rb'.
* gh-114099: Formalize Tier 3 status of iOS (GH-118020)Russell Keith-Magee2024-04-211-0/+16
|
* gh-115775: Add whatsnew entry about __static_attributes__ (GH-117909)Irit Katriel2024-04-191-0/+5
| | | | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Use "Contributed by" in a couple of occurrences of 3.12 whatsnew (#118070)Rafael Fontenelle2024-04-191-3/+3
|
* gh-117987: Restore several functions removed in Python 3.13 alpha 1 (GH-117993)Victor Stinner2024-04-181-4/+10
| | | | | | | | | Restore these functions removed in Python 3.13 alpha 1: * Py_SetPythonHome() * Py_SetProgramName() * PySys_SetArgvEx() * PySys_SetArgv()
* gh-90815: Document bundled mimalloc in What’s New In Python 3.13 (GH-117811)Miro Hrončok2024-04-181-0/+5
|
* gh-117929: Restore removed PyEval_InitThreads() function (#117931)Victor Stinner2024-04-171-3/+3
|
* gh-77102: site: try utf-8 and fallback to locale encoding when reading .pth ↵Inada Naoki2024-04-161-0/+7
| | | | file (#117802)
* Docs: add link roles with Sphinx extlinks (#117850)Hugo van Kemenade2024-04-1511-57/+35
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-109975: Copyedit "What's New in Python 3.13" (#117902)Hugo van Kemenade2024-04-151-115/+125
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Docs: make the `whatsnew-typing-py312` anchor point to things that were new ↵Alex Waygood2024-04-151-2/+2
| | | | in the typing module (#117904)
* Add 'The Python 2.3 Method Resolution Order' (#116435)Hugo van Kemenade2024-04-151-1/+1
|
* docs: typo in 3.13 release notes (#117866)Galen Rice2024-04-141-1/+1
|
* gh-117722: Fix Stream.readuntil with non-bytes buffer objects (#117723)Bruce Merry2024-04-111-0/+4
| | | | | | | | | | | | | gh-16429 introduced support for an iterable of separators in Stream.readuntil. Since bytes-like types are themselves iterable, this can introduce ambiguities in deciding whether the argument is an iterator of separators or a singleton separator. In gh-16429, only 'bytes' was considered a singleton, but this will break code that passes other buffer object types. Fix it by only supporting tuples rather than arbitrary iterables. Closes gh-117722.
* Revert "gh-106023: Update What's New in 3.13: _PyObject_FastCall() ↵Victor Stinner2024-04-091-0/+5
| | | | | | | | (#117633)" (#117676) This reverts commit 9a12f5d1c19dee1f89684be776680aeaf117be5b. I was wrong: the _PyObject_FastCall() function was removed. But we kept the _PyObject_FastCallDict() function.
* gh-116720: Fix corner cases of taskgroups (#117407)Guido van Rossum2024-04-091-7/+27
| | | | | | | | | | This prevents external cancellations of a task group's parent task to be dropped when an internal cancellation happens at the same time. Also strengthen the semantics of uncancel() to clear self._must_cancel when the cancellation count reaches zero. Co-Authored-By: Tin Tvrtković <tinchester@gmail.com> Co-Authored-By: Arthur Tacca
* gh-117516: Implement typing.TypeIs (#117517)Jelle Zijlstra2024-04-091-0/+4
| | | | | | See PEP 742. Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-117642: Fix PEP 737 implementation (GH-117643)Serhiy Storchaka2024-04-081-1/+1
| | | | | * Fix implementation of %#T and %#N (they were implemented as %T# and %N#). * Restore tests removed in gh-116417.
* gh-96471: Correct documentation for asyncio queue shutdown (#117621)Laurie O2024-04-081-1/+1
|
* gh-106023: Update What's New in 3.13: _PyObject_FastCall() (#117633)Victor Stinner2024-04-081-5/+0
| | | The function _PyObject_FastCall() was restored.
* gh-96471: Add asyncio queue shutdown (#104228)Laurie O2024-04-061-0/+4
| | | Co-authored-by: Duprat <yduprat@gmail.com>
* GH-77609: Add recurse_symlinks argument to `pathlib.Path.glob()` (#117311)Barney Gale2024-04-051-4/+7
| | | | | | | | | | | | | | | Replace tri-state `follow_symlinks` with boolean `recurse_symlinks` argument. The new argument controls whether symlinks are followed when expanding recursive `**` wildcards. The possible argument values correspond as follows: follow_symlinks recurse_symlinks =============== ================ False N/A None False True True We therefore drop support for not following symlinks when expanding non-recursive pattern parts; it wasn't requested in the original issue, and it's a feature not found in any shells. This makes the API a easier to grok by eliminating `None` as an option. No news blurb as `follow_symlinks` was new in 3.13.
* gh-116608: importlib.resources: Un-deprecate functional API & add ↵Petr Viktorin2024-04-051-15/+24
| | | | subdirectory support (GH-116609)
* GH-117337: Deprecate `glob.glob0()` and `glob.glob1()`. (#117371)Barney Gale2024-04-011-0/+5
| | | | These undocumented functions are no longer used by `msilib`, so there's no reason to keep them around.
* gh-77714: Provide an async iterator version of as_completed (GH-22491)Justin Turner Arthur2024-04-011-0/+7
| | | | | | | | | * as_completed returns object that is both iterator and async iterator * Existing tests adjusted to test both the old and new style * New test to ensure iterator can be resumed * New test to ensure async iterator yields any passed-in Futures as-is Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* GH-114575: Rename `PurePath.pathmod` to `PurePath.parser` (#116513)Barney Gale2024-03-311-0/+4
| | | And rename the private base class from `PathModuleBase` to `ParserBase`.
* gh-66449: configparser: Add support for unnamed sections (#117273)Pedro Lacerda2024-03-291-0/+6
| | | Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* gh-89739: gh-77140: Support zip64 in zipimport (GH-94146)Tim Hatch2024-03-281-0/+6
| | | | | | | | | | | | | | | * Reads zip64 files as produced by the zipfile module * Include tests (somewhat slow, however, because of the need to create "large" zips) * About the same amount of strictness reading invalid zip files as zipfile has * Still works on files with prepended data (like pex) There are a lot more test cases at https://github.com/thatch/zipimport64/ that give me confidence that this works for real-world files. Fixes #89739 and #77140. --------- Co-authored-by: Itamar Ostricher <itamarost@gmail.com> Reviewed-by: Gregory P. Smith <greg@krypto.org>
* gh-116936: Add PyType_GetModuleByDef() to the limited C API (#116937)Victor Stinner2024-03-251-0/+3
|
* gh-117194: Properly format 'base64' header in What's New (#117198)Terry Jan Reedy2024-03-241-1/+1
| | | It needs 6, not 3, '-'s.
* gh-113024: C API: Add PyObject_GenericHash() function (GH-113025)Serhiy Storchaka2024-03-221-0/+4
|
* GH-113171: Fix "private" (non-global) IP address ranges (GH-113179)Jakub Stasiak2024-03-221-0/+2
| | | | | | | | | | | | | | | | | | | | | * GH-113171: Fix "private" (really non-global) IP address ranges The _private_networks variables, used by various is_private implementations, were missing some ranges and at the same time had overly strict ranges (where there are more specific ranges considered globally reachable by the IANA registries). This patch updates the ranges with what was missing or otherwise incorrect. I left 100.64.0.0/10 alone, for now, as it's been made special in [1] and I'm not sure if we want to undo that as I don't quite understand the motivation behind it. The _address_exclude_many() call returns 8 networks for IPv4, 121 networks for IPv6. [1] https://github.com/python/cpython/issues/61602
* gh-85283: Build _testconsole extension with limited C API (#117125)Victor Stinner2024-03-211-1/+1
|
* gh-115754: Add Py_GetConstant() function (#116883)Victor Stinner2024-03-211-0/+5
| | | | | | | | | | | | Add Py_GetConstant() and Py_GetConstantBorrowed() functions. In the limited C API version 3.13, getting Py_None, Py_False, Py_True, Py_Ellipsis and Py_NotImplemented singletons is now implemented as function calls at the stable ABI level to hide implementation details. Getting these constants still return borrowed references. Add _testlimitedcapi/object.c and test_capi/test_object.py to test Py_GetConstant() and Py_GetConstantBorrowed() functions.
* GH-108362: Incremental Cycle GC (GH-116206)Mark Shannon2024-03-201-0/+30
|
* gh-115756: make PyCode_GetFirstFree an unstable API (GH-115781)Bogdan Romanyuk2024-03-191-0/+4
|
* gh-113538: Add asycio.Server.{close,abort}_clients (redo) (#116784)Pierre Ossman (ThinLinc team)2024-03-181-0/+5
| | | | | | | These give applications the option of more forcefully terminating client connections for asyncio servers. Useful when terminating a service and there is limited time to wait for clients to finish up their work. This is a do-over with a test fix for gh-114432, which was reverted.
* gh-63207: Use GetSystemTimePreciseAsFileTime() in time.time() (#116822)Victor Stinner2024-03-181-0/+6
|
* gh-85283: Build _statistics extension with the limited C API (#116927)Victor Stinner2024-03-171-1/+2
| | | | | Argument Clinic now inlines _PyArg_CheckPositional() for the limited C API. The generated code should be as fast or even a little bit faster.