summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-121277: Allow `.. versionadded:: next` in docs (GH-121278)Petr Viktorin2024-09-259-14/+36
| | | | | | | | | | Make `versionchanged:: next`` expand to current (unreleased) version. When a new CPython release is cut, the release manager will replace all such occurences of "next" with the just-released version. (See the issue for release-tools and devguide PRs.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-119400: make_ssl_certs: update reference test data automatically, pass ↵Alexander Kanavin2024-09-256-72/+72
| | | | | | | | | | | | | | | | | | | in expiration dates as parameters #119400 (GH-119401) * Lib/test/certdata: do not hardcode reference cert data into tests The script was simply printing the reference data and asking users to update it by hand into the test suites. This can be easily improved by writing the data into files and having the test cases load the files. * make_ssl_certs: make it possible to pass in expiration dates from command line Note that in this commit, the defaults are same as they were, so if nothing is specified the script works as before. --------- Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
* gh-119180: Avoid going through AST and eval() when possible in annotationlib ↵Jelle Zijlstra2024-09-252-28/+88
| | | | | | | | | | (#124337) Often, ForwardRefs represent a single simple name. In that case, we can avoid going through the overhead of creating AST nodes and code objects and calling eval(): we can simply look up the name directly in the relevant namespaces. Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-124448: Update Windows builds to use Tcl/Tk 8.6.15 (GH-124449)Zachary Ware2024-09-256-14/+14
|
* gh-123884 Tee of tee was not producing n independent iterators (gh-124490)Raymond Hettinger2024-09-258-89/+91
|
* gh-124378: Update test_ttk for Tcl/Tk 8.6.15 (GH-124542)Zachary Ware2024-09-252-2/+16
| | | Co-authored-by: Marc Culler <culler@users.noreply.github.com>
* gh-124513: Check args in framelocalsproxy_new() (#124515)Victor Stinner2024-09-253-3/+43
| | | | Fix a crash in FrameLocalsProxy constructor: check the number of arguments.
* gh-101100: Add a table of class attributes to the "Custom classes" section ↵Alex Waygood2024-09-2541-223/+270
| | | | of the data model docs (#124480)
* Doc: Use ``major.minor`` for documentation distribution archive filenames ↵Adam Turner2024-09-252-12/+14
| | | | (#124489)
* gh-117376: Fix off-by-ones in conversion functions (GH-124301)Ken Jin2024-09-253-6/+6
| | | Fix off-by-ones in conversion function
* gh-123856: Fix PyREPL failure when a keyboard interrupt is triggered after ↵Emily Morehouse2024-09-253-90/+115
| | | | | using a history search (#124396) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-123756: Disable restart command if pdb is in inline mode (#123757)Tian Gao2024-09-255-4/+49
|
* gh-112301: Use literal format strings in unicode_fromformat_arg (GH-124203)Petr Viktorin2024-09-251-43/+35
|
* import: permit __name__ for use in __name__ = "__main__": (#124381)Thomas Grainger2024-09-251-1/+1
| | | permit __name__ for use in __name__ = "__main__":
* gh-123223: Adding hyperlink of argument in warnings.catch_warnings: (#123231)Damien2024-09-251-0/+3
| | | | | * Adding hyperlink of argument * Modify as reviewer suggested
* gh-123968: fix -f/--float command line option description (#124517)Robert Wolff2024-09-251-1/+1
| | | | | | | | | | | * fix -f/--float command line option description See gh-123968 gh-124009 * Update Doc/library/random.rst --------- Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* gh-124285: Fix bug where bool() is called multiple times for the same part ↵Irit Katriel2024-09-2514-47/+234
| | | | of a boolean expression (#124394)
* gh-123014: Disable pidfd API on older Android versions (#124458)Malcolm Smith2024-09-257-10/+18
|
* gh-116622: Make test_unzip_zipfile recognize Android error message format ↵Malcolm Smith2024-09-251-1/+4
| | | | | | (#124462) Make test_unzip_zipfile recognize Android error message format
* gh-123445: calendar: Improve descriptions for day and month attributes (#123483)Mat S2024-09-251-4/+20
| | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Doc: Improve documentation for the ``path`` argument in ``shutil.which()`` ↵Tom Most2024-09-251-6/+7
| | | | (#124494)
* Adjust build_ubuntu_ssltests job to use cache for the correct OS version ↵Zachary Ware2024-09-252-5/+10
| | | | (GH-124403)
* gh-90562: Support zero argument super with dataclasses when slots=True ↵Eric V. Smith2024-09-254-16/+177
| | | | | | (gh-124455) Co-authored-by: @wookie184 Co-authored-by: Carl Meyer <carl@oddbird.net>
* GH-124408: Temporarily skip test_strftime_y2k for emulated Linux JIT CI ↵Savannah Ostrowski2024-09-252-1/+2
| | | | (GH-124466)
* dataclasses: Avoid using private class (#124465)Jelle Zijlstra2024-09-241-4/+1
| | | | | | typing.get_origin() does what we need here, without reaching into typing internals. This shouldn't change any behavior (so I am going to skip news), but it sets a good example for other users introspecting typing objects.
* gh-124402: Require cpu resource in test_super slow method (#124434)Victor Stinner2024-09-241-0/+6
| | | | test___class___modification_multithreaded() now requires the 'cpu' test resource on a Free Threaded build.
* gh-86009: Fix solaris detection in `_USE_CP_SENDFILE` check (GH-124289)Jakub Kulík2024-09-241-1/+1
|
* gh-123923: Defer refcounting for `f_funcobj` in `_PyInterpreterFrame` (#124026)Sam Gross2024-09-2417-137/+143
| | | | | | Use a `_PyStackRef` and defer the reference to `f_funcobj` when possible. This avoids some reference count contention in the common case of executing the same code object from multiple threads concurrently in the free-threaded build.
* bpo-44864: Do not translate user-provided strings in ↵Jérémie Detrey2024-09-242-2/+3
| | | | | | ArgumentParser.add_subparsers() (GH-27667) Call _() on literal strings only.
* gh-120254: Add a `commands` argument to `pdb.set_trace` (#120255)Tian Gao2024-09-245-7/+30
|
* gh-124448: Update bundled Tcl/Tk in macOS installer to 8.6.15. (#124453)Ned Deily2024-09-242-3/+4
|
* gh-124405: Fix `NameError` in `openpty` (#124406)sobolevn2024-09-241-2/+2
|
* GH-124398: Pin LLVM to 18.1.0 for Windows JIT CI (GH-124399)Savannah Ostrowski2024-09-241-4/+2
|
* GH-87358: Add clarification about nargs and default argparse behaviour (#124094)Savannah Ostrowski2024-09-241-0/+3
|
* gh-124402: Require cpu resource in test_free_threading (#124438)Victor Stinner2024-09-243-0/+8
| | | Require the 'cpu' test resource on slow test_free_threading tests.
* gh-113008: Correct argparse usage output for required, mutually exclusive ↵Payton2024-09-243-2/+26
| | | | groups (GH-113085)
* gh-59317: Improve parsing optional positional arguments in argparse (GH-124303)Serhiy Storchaka2024-09-243-42/+102
| | | | Fix parsing positional argument with nargs equal to '?' or '*' if it is preceded by an option and another positional argument.
* gh-65169: Clarify prog default in argparse (GH-31602)Stanley2024-09-241-4/+5
|
* gh-123978: Remove broken time.thread_time() on NetBSD (GH-124116)Serhiy Storchaka2024-09-242-3/+16
|
* gh-124188: Fix PyErr_ProgramTextObject() (GH-124189)Serhiy Storchaka2024-09-246-117/+328
| | | | | | | | * Detect source file encoding. * Use the "replace" error handler even for UTF-8 (default) encoding. * Remove the BOM. * Fix detection of too long lines if they contain NUL. * Return the head rather than the tail for truncated long lines.
* gh-72795: Make positional arguments with nargs='*' or REMAINDER non-required ↵Serhiy Storchaka2024-09-243-8/+32
| | | | | | | (GH-124306) This allows to use positional argument with nargs='*' and without default in mutually exclusive group and improves error message about required arguments.
* gh-53780: Ignore the first "--" (double dash) between an option and command ↵Serhiy Storchaka2024-09-243-4/+23
| | | | in argparse (GH-124275)
* gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-124307)Serhiy Storchaka2024-09-243-9/+120
| | | | | | Arguments with the value identical to the default value (e.g. booleans, small integers, empty or 1-character strings) are no longer considered "not present".
* gh-124120: Document `Annotated.__origin__` (#124125)sobolevn2024-09-241-0/+18
| | | | Co-authored-by: Brian Schubert <brianm.schubert@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-124127: Make Py_REFCNT() opaque in limited C API 3.14 (#124128)Victor Stinner2024-09-248-17/+44
|
* gh-124130: Increase test coverage for \b and \B in regular expressions ↵Serhiy Storchaka2024-09-241-7/+113
| | | | (GH-124330)
* Fix typos (#124409)Xie Yanbo2024-09-243-3/+3
|
* gh-119180: Add discussion of annotations to the 3.14 What's New (#124393)Jelle Zijlstra2024-09-241-1/+88
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-119333: Add C api to have contextvar enter/exit callbacks (#119335)Jason Fried2024-09-2410-0/+402
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-123990: Good bye WITH_FREELISTS macro (gh-124358)Donghee Na2024-09-2416-100/+4
|