summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor code beautifications in statistics.py (gh-124866)Raymond Hettinger2024-10-011-85/+95
|
* gh-66436: Improved prog default value for argparse.ArgumentParser (GH-124799)Serhiy Storchaka2024-10-016-26/+174
| | | | | | | | | 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>
* Highlight `datetime.timedelta.seconds` vs `.total_seconds()` in docs. ↵Gregory P. Smith2024-10-011-1/+15
| | | | | (GH-124811) Thanks to the reviewers for suggesting the use of a "caution" section instead of "warning" or "note".
* gh-116750: Add clear_tool_id function to unregister events and callbacks ↵Tian Gao2024-10-018-8/+165
| | | | (#124568)
* gh-124218: Refactor per-thread reference counting (#124844)Sam Gross2024-10-0115-167/+168
| | | | | | | Currently, we only use per-thread reference counting for heap type objects and the naming reflects that. We will extend it to a few additional types in an upcoming change to avoid scaling bottlenecks when creating nested functions. Rename some of the files and functions in preparation for this change.
* gh-124296: Remove private dictionary version tag (PEP 699) (#124472)Sam Gross2024-10-0113-354/+35
|
* gh-124842: Fix test.support.import_helper.make_legacy_pyc() (GH-124843)Serhiy Storchaka2024-10-011-2/+2
| | | | For source file "path/to/file.py" it created file with incorrect path "/absolute/path/to/path/to/file.pyc" instead of "path/to/file.pyc".
* gh-124487: Updated installer messages and internal docs regarding minimum ↵Wulian2024-10-013-12/+5
| | | | Windows version (GH-124822)
* gh-124594: Create and reuse the same context for the entire asyncio REPL ↵Bartosz Sławecki2024-10-013-2/+42
| | | | | session (#124595) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* gh-118974: Add `decorator` argument to `make_dataclass` (gh-122723)Victorien2024-10-014-4/+31
| | | 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.
* Doc: Fix archive filenames for standard builds (#124826)Adam Turner2024-10-012-3/+9
|
* GH-109975: Copyedit 3.13 What's New: Link to installing free-threaded ↵Adam Turner2024-10-011-4/+1
| | | | binaries on macOS (#124831)
* GH-109975: Copyedit 3.13 What's New: Note delayed expected release date for ↵Adam Turner2024-10-011-1/+1
| | | | | Python 3.13.0 (GH-124827) Note delayed expected release date of 3.13.0
* gh-124309: Revert eager task factory fix to prevent breaking downstream ↵Peter Bierma2024-10-015-124/+65
| | | | | | | | | | | (#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-302-47/+6
| | | | | | | strings (gh-124646)" (gh-124807) Revert "gh-116510: Fix crash due to shared immortal interned strings. (gh-124646)" This reverts commit 98b2ed7e239c807f379cd2bf864f372d79064aac.
* Minor edit for code clarification in annotationlib. (#124805)larryhastings2024-09-301-3/+1
|
* gh-116810: fix memory leak in ssl module (GH-123249)Jeffrey R. Van Voorst2024-09-302-63/+17
| | | | | | | | 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-115142: Skip some test cases in ``Lib/test/test_compile`` if ↵Kirill Podoprigora2024-09-301-1/+6
| | | | | | ``_testinternalcapi`` is not available (#124474) * Skip some test cases if "_testinternalcapi" is not available and if the test suite is running on another implementation than CPython.
* gh-124613, regrtest: Detect JIT in build info (#124793)Victor Stinner2024-09-301-4/+53
|
* gh-124613: Don't run perf tests in JIT builds (#124792)Pablo Galindo Salgado2024-09-301-2/+14
| | | | | | | | | | | | | | * gh-124613: Don't run perf tests in JIT builds Signed-off-by: Pablo Galindo <pablogsal@gmail.com> * Apply suggestions from code review Co-authored-by: Victor Stinner <vstinner@python.org> --------- Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-124487: Require at least Windows 10 SDK and update install check (GH-124672)Steve Dower2024-09-304-9/+11
|
* gh-124642: Dictionaries aren't marking objects as weakref'd (#124643)Dino Viehland2024-09-302-3/+4
| | | Dictionaries aren't marking objects as weakref'd
* Doc: Run HTML and non-HTML daily builds separately (#124493)Adam Turner2024-09-301-3/+3
|
* gh-124722: Fix leak in `test_detach_materialized_dict_no_memory` (GH-124769)sobolevn2024-09-301-14/+30
|
* gh-124400: Use the normal command path for breakpoint commands (#124401)Tian Gao2024-09-294-40/+77
| | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-124720: Update "Using Python on a Mac" document (#124721)Ned Deily2024-09-2911-110/+363
| | | | | Update "Using Python on a Mac" section of the "Python Setup and Usage" document and include information on installing free-threading support.
* gh-111495: Add tests for `PyCodec_*` C API (#123343)Bénédikt Tran2024-09-299-5/+547
|
* gh-123961: Add a global state to _curses (#124729)Bénédikt Tran2024-09-293-177/+274
|
* gh-123290: Fix decref in _curses update_lines_cols() (#124767)Bénédikt Tran2024-09-291-1/+1
|
* functools: Give up on lazy-importing types (#124736)Jelle Zijlstra2024-09-291-8/+5
| | | | | | | | | PR #121089 added an eager import for types.MethodType, but still left the existing hacks for lazily importing from types. We could also create MethodType internally in functools.py (e.g., by using `type(Placeholder.__repr__)`, but it feels not worth it at this point, so instead I unlazified all the usages of types in the module.
* Docs: improve generic `typing.NamedTuple` example (#124739)CBerJun2024-09-291-1/+3
|
* gh-58573: Fix conflicts between abbreviated long options in the parent ↵Serhiy Storchaka2024-09-293-34/+52
| | | | | | 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-293-1/+16
| | | | | | (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-294-11/+17
| | | 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-293-13/+13
| | | | | | 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-293-3/+16
| | | | (GH-124428)
* gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-124519)Serhiy Storchaka2024-09-293-8/+16
| | | | | 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-293-1/+20
|
* gh-123497: New limit for Python integers on 64-bit platforms (GH-123724)Serhiy Storchaka2024-09-298-175/+108
| | | | | | | | | | | Instead of be limited just by the size of addressable memory (2**63 bytes), Python integers are now also limited by the number of bits, so the number of bit now always fit in a 64-bit integer. Both limits are much larger than what might be available in practice, so it doesn't affect users. _PyLong_NumBits() and _PyLong_Frexp() are now always successful.
* GH-124639: add back loop param to staggered_race (#124700)Kumar Aditya2024-09-292-2/+27
|
* gh-124665: Add `_PyCodec_UnregisterError` and `_codecs._unregister_error` ↵Bénédikt Tran2024-09-296-2/+136
| | | | (#124677)
* gh-124442: make `__static_attributes__` deterministic by sorting (#124492)Kira2024-09-283-1/+30
| | | | | 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>
* gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in ↵Serhiy Storchaka2024-09-2811-12/+110
| | | | | | | | | | | | | classes (GH-123613) * Setting the __module__ attribute for a class now removes the __firstlineno__ item from the type's dict. * The _collections_abc and _pydecimal modules now completely replace the collections.abc and decimal modules after importing them. This allows to get the source of classes and functions defined in these modules. * inspect.findsource() now checks whether the first line number for a class is out of bound.
* gh-124688: _decimal: Get module state from ctx for performance (#124691)neonene2024-09-281-48/+73
| | | Get a module state from ctx objects for performance.
* docs: improve venv docs (#124540)Jelle Zijlstra2024-09-281-28/+25
| | | | | | | | | - Move "versionchanged" notes that apply to the whole class to the end of the class docs - Remove or move notes next to the method list that apply to individual methods. - Mark up parameters using the appropriate syntax - Do not capitalize "boolean" - Shorten some text
* Doc: Fix default ``latex_elements['papersize']`` (#124525)Jean-François B.2024-09-281-2/+2
| | | | | | https://www.sphinx-doc.org/en/master/latex.html#the-latex-elements-configuration-setting It should be 'letterpaper' or 'a4paper' not 'letter' or 'a4' (not to be confused with PAPER env variable).
* Sorting techniques edits (#124701)Raymond Hettinger2024-09-281-3/+70
|
* gh-107954: Fix configuration type for the perf profiler (#124636)Pablo Galindo Salgado2024-09-275-15/+28
|
* gh-124385: Document and soft-deprecate PyLong_AS_LONG (GH-124386)Petr Viktorin2024-09-271-1/+10
|
* gh-123299: Copy-edit the 3.14 What's New (#124670)Jelle Zijlstra2024-09-272-45/+56
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>