summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
Commit message (Collapse)AuthorAgeFilesLines
* gh-125039: Make `this_instr`/`prev_instr` const in cases generator (GH-125071)Tomas R.2024-10-091-0/+1
|
* gh-101100: Consolidate documentation on `ModuleType` attributes (#124709)Alex Waygood2024-10-094-8/+8
| | | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-107562: make_ssl_certs.py: produce test certificates that expire far in ↵Alexander Kanavin2024-10-091-0/+3
| | | | | | | | | the future by default (GH-107594) This allows testing Y2038 with system time set to after that, so that actual Y2038 issues can be exposed, and not masked by expired certificate errors. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
* gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974)Serhiy Storchaka2024-10-091-0/+3
| | | | | Now it returns a tuple of up to 100 strings (an empty tuple on most locales). Previously it returned the first item of that tuple or an empty string.
* gh-101552: Allow pydoc to display signatures in source format (#124669)Jelle Zijlstra2024-10-091-0/+4
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-116110: remove extra processing for the __signature__ attribute (GH-116234)Sergey B Kirpichev2024-10-081-0/+3
| | | This is an alternative to GH-100168.
* gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097)Victor Stinner2024-10-081-0/+5
| | | | | | | If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case.
* gh-123961: Convert _curses to a multi-phase init module (PEP-489) (#124965)Bénédikt Tran2024-10-081-0/+2
|
* gh-123378: fix a crash in `UnicodeError.__str__` (#124935)Bénédikt Tran2024-10-081-0/+3
|
* bpo-34206: Improve docs and test coverage for pre-init functions (#8023)Alyssa Coghlan2024-10-082-0/+10
| | | | | | | | | | | | | | | | | | | | - move the Py_Main documentation from the very high level API section to the initialization and finalization section - make it clear that it encapsulates a full Py_Initialize/Finalize cycle of its own - point out that exactly which settings will be read and applied correctly when Py_Main is called after a separate runtime initialization call is version dependent - be explicit that Py_IsInitialized can be called prior to initialization - actually test that Py_IsInitialized can be called prior to initialization - flush stdout in the embedding tests that run code so it appears in the expected order when running with "-vv" - make "-vv" on the subinterpreter embedding tests less spammy --------- Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-69998: Fix decoding error in locale.nl_langinfo() (GH-124963)Serhiy Storchaka2024-10-081-0/+3
| | | | | | | The function now sets temporarily the LC_CTYPE locale to the locale of the category that determines the requested value if the locales are different and the resulting string is non-ASCII. This temporary change affects other threads.
* gh-70870: Clarify dual usage of 'free variable' (#122545)Alyssa Coghlan2024-10-081-0/+3
| | | | | | | | | | | | | | The term "free variable" has unfortunately become genuinely ambiguous over the years (presumably due to the names of some relevant code object instance attributes). While we can't eliminate that ambiguity at this late date, we can at least alert people to the potential ambiguity by describing both the formal meaning of the term and the common alternative use as a direct synonym for "closure variable". --------- Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-90102: Remove isatty call during regular open (#124922)Cody Maloney2024-10-081-0/+3
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-124502: Add PyUnicode_Equal() function (#124504)Victor Stinner2024-10-071-0/+2
|
* gh-122392: IDLE - Fix overlapping lines in browsers (#122392) (#124975)Zhikang Yan2024-10-071-0/+2
| | | | | | | Increase currently inadequate vertical spacing for the IDLE browsers (path, module, and stack) on high-resolution monitors. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-124653: Relax (again) detection of queue API for logging handlers ↵Bénédikt Tran2024-10-071-0/+2
| | | | (GH-124897)
* gh-125018: Add importlib.metadata semantic link targets (#125027)Alyssa Coghlan2024-10-071-0/+4
| | | | | | | | | This allows direct intersphinx references to APIs via references like `` :func:`importlib.metadata.version` ``. --------- Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-121249: Support _Complex types in the struct module (#121613)Sergey B Kirpichev2024-10-071-0/+3
| | | | | Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-125008: Fix `tokenize.untokenize` roundtrip for `\n{{` (#125013)Tomas R.2024-10-061-0/+2
|
* gh-124552 : Improve the accuracy of possible breakpoint check in bdb (#124553)Tian Gao2024-10-051-0/+1
|
* gh-117151: increase default buffer size of shutil.copyfileobj() to 256k. ↵morotti2024-10-041-0/+3
| | | | | | | | | | | | | | | | | | | | (GH-119783) * gh-117151: increase default buffer size of shutil.copyfileobj() to 256k. it was set to 16k in the 1990s. it was raised to 64k in 2019. the discussion at the time mentioned another 5% improvement by raising to 128k and settled for a very conservative setting. it's 2024 now, I think it should be revisited to match modern hardware. I am measuring 0-15% performance improvement when raising to 256k on various types of disk. there is no downside as far as I can tell. this function is only intended for sequential copy of full files (or file like objects). it's the typical use case that benefits from larger operations. for reference, I came across this function while trying to profile pip that is using it to copy files when installing python packages. * add news --------- Co-authored-by: rmorotti <romain.morotti@man.com>
* gh-124871: fix 'visited' tracking in compiler's reachability analysis (#124952)Irit Katriel2024-10-041-0/+2
|
* gh-123961: Convert `curses.window` static type into a heap type (#124934)Bénédikt Tran2024-10-041-0/+3
|
* gh-124858: fix happy eyeballs refcyles (#124859)Thomas Grainger2024-10-021-0/+1
|
* GH-118093: Don't lose confidence when tracing through 100% biased branches ↵Brandt Bucher2024-10-021-0/+2
| | | | (GH-124813)
* GH-119726: Deduplicate AArch64 trampolines within a trace (GH-123872)Diego Russo2024-10-021-0/+2
|
* gh-87135: Hang non-main threads that attempt to acquire the GIL during ↵Jeremy Maitin-Shepard2024-10-021-0/+15
| | | | | | | finalization (GH-105805) Instead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon threads (our long standing mis-feature) but could also be threads spawned by extension modules that then try to call into Python. This marks the `PyThread_exit_thread` public C API as deprecated as there is no plausible safe way to accomplish that on any supported platform in the face of things like C++ code with finalizers anywhere on a thread's stack. Doing this was the least bad option. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-120378: Fix crash caused by integer overflow in `curses` (#124555)Peter Bierma2024-10-021-0/+2
| | | | | | | | | This is actually an upstream problem in curses, and has been reported to them already: https://lists.gnu.org/archive/html/bug-ncurses/2024-09/msg00101.html This is a nice workaround in the meantime to prevent the segfault. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-58282: Fix support of tuple metavar for positional arguments in argparse ↵Serhiy Storchaka2024-10-021-0/+2
| | | | | | | | (GH-124782) Previously, formatting help output or error message for positional argument with a tuple metavar raised exception. Co-authored-by: Cyker Way <cykerway@gmail.com>
* gh-124835: `tomllib.loads`: Raise TypeError not AttributeError. Improve ↵Taneli Hukkinen2024-10-021-0/+3
| | | | message (#124587)
* gh-66436: Improved prog default value for argparse.ArgumentParser (GH-124799)Serhiy Storchaka2024-10-011-0/+4
| | | | | | | | | It can now have one of three forms: * basename(argv0) -- for simple scripts * python arv0 -- for directories, ZIP files, etc * python -m module -- for imported modules Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* gh-116750: Add clear_tool_id function to unregister events and callbacks ↵Tian Gao2024-10-011-0/+1
| | | | (#124568)
* gh-124296: Remove private dictionary version tag (PEP 699) (#124472)Sam Gross2024-10-011-0/+3
|
* gh-124594: Create and reuse the same context for the entire asyncio REPL ↵Bartosz Sławecki2024-10-011-0/+1
| | | | | session (#124595) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* gh-118974: Add `decorator` argument to `make_dataclass` (gh-122723)Victorien2024-10-011-0/+2
| | | This is to allow the `dataclasses.make_dataclass` infrastructure to be used with another decorator that's compliant with `typing.dataclass_transform`. The new `decorator` argument to `dataclasses.make_dataclass` is `dataclasses.dataclass`, which used to be hard coded.
* gh-124309: Revert eager task factory fix to prevent breaking downstream ↵Peter Bierma2024-10-011-1/+0
| | | | | | | | | | | (#124810) * Revert "GH-124639: add back loop param to staggered_race (#124700)" This reverts commit e0a41a5dd12cb6e9277b05abebac5c70be684dd7. * Revert "gh-124309: Modernize the `staggered_race` implementation to support eager task factories (#124390)" This reverts commit de929f353c413459834a2a37b2d9b0240673d874.
* gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned ↵T. Wouters2024-09-301-5/+0
| | | | | | | strings (gh-124646)" (gh-124807) Revert "gh-116510: Fix crash due to shared immortal interned strings. (gh-124646)" This reverts commit 98b2ed7e239c807f379cd2bf864f372d79064aac.
* gh-116810: fix memory leak in ssl module (GH-123249)Jeffrey R. Van Voorst2024-09-301-0/+4
| | | | | | | | Resolve a memory leak introduced in CPython 3.10's :mod:`ssl` when the :attr:`ssl.SSLSocket.session` property was accessed. Speeds up read and write access to said property by no longer unnecessarily cloning session objects via serialization. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Antoine Pitrou <antoine@python.org>
* gh-124487: Require at least Windows 10 SDK and update install check (GH-124672)Steve Dower2024-09-301-0/+1
|
* gh-124642: Dictionaries aren't marking objects as weakref'd (#124643)Dino Viehland2024-09-301-0/+1
| | | Dictionaries aren't marking objects as weakref'd
* gh-124400: Use the normal command path for breakpoint commands (#124401)Tian Gao2024-09-291-0/+1
| | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-124720: Update "Using Python on a Mac" document (#124721)Ned Deily2024-09-291-0/+2
| | | | | Update "Using Python on a Mac" section of the "Python Setup and Usage" document and include information on installing free-threading support.
* gh-58573: Fix conflicts between abbreviated long options in the parent ↵Serhiy Storchaka2024-09-291-0/+2
| | | | | | parser and subparsers in argparse (GH-124631) Check for ambiguous options if the option is consumed, not when it is parsed.
* gh-116850: Fix argparse for namespaces with not directly writable dict ↵Serhiy Storchaka2024-09-291-0/+2
| | | | | | (GH-124667) It now always uses setattr() instead of setting the dict item to modify the namespace. This allows to use a class as a namespace.
* gh-61181: Fix support of choices with string value in argparse (GH-124578)Serhiy Storchaka2024-09-291-0/+2
| | | Substrings of the specified string no longer considered valid values.
* gh-53834: Fix support of arguments with choices in argparse (GH-124495)Serhiy Storchaka2024-09-291-0/+4
| | | | | | Positional arguments with nargs equal to '?' or '*' no longer check default against choices. Optional arguments with nargs equal to '?' no longer check const against choices.
* gh-124345: Support abbreviated single-dash long options with = in argparse ↵Serhiy Storchaka2024-09-291-0/+2
| | | | (GH-124428)
* gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-124519)Serhiy Storchaka2024-09-291-0/+2
| | | | | type() no longer called for SUPPRESS. This only affects positional arguments with nargs='?'.
* gh-104860: Fix allow_abbrev=False for single-dash long options (GH-124340)Serhiy Storchaka2024-09-291-0/+2
|
* gh-124442: make `__static_attributes__` deterministic by sorting (#124492)Kira2024-09-281-0/+2
| | | | | Signed-off-by: kp2pml30 <kp2pml30@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>