summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* gh-100980: ctypes: Test, document, and fix finalizing _fields_ (GH-124292)Petr Viktorin2024-09-244-55/+67
| | | | | | | | - If setting `_fields_` fails, e.g. with AttributeError, don't set the attribute in `__dict__` - Document the “finalization” behaviour - Beef up tests: add `getattr`, test Union as well as Structure - Put common functionality in a common function Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Lint and format Tools/build/check-warnings.py (#124382)Hugo van Kemenade2024-09-233-7/+42
|
* gh-119004: fix a crash in equality testing between `OrderedDict` (#121329)Bénédikt Tran2024-09-234-11/+145
|
* gh-116622: Complete Android documentation (#124259)Malcolm Smith2024-09-2322-111/+205
| | | | | Co-authored-by: Russell Keith-Magee <russell@keith-magee.com> Co-authored-by: T. Wouters <thomas@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-124102: Update internal PCbuild docs to accurately list build ↵Wulian2024-09-2311-49/+24
| | | | dependencies (GH-124103)
* Bump Ruff to 0.6.7 (#124384)Alex Waygood2024-09-238-14/+11
|
* Doc: Add ``make dist-no-html`` (#124383)Adam Turner2024-09-232-2/+32
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-65961: Document the deprecation of `__package__` and `__cached__` (GH-124377)Brett Cannon2024-09-235-5/+14
| | | The code changes for warning related to `__package__` landed in Python 3.12. `__cached__` doesn't have any changes as it isn't used but only set by the import system.
* gh-99108: Disable HACL SIMD code on older versions of Android (#124304)Malcolm Smith2024-09-232-66/+86
| | | Disable HACL SIMD code on older versions of Android
* GH-87041: Fix incorrect indentation in argparse help (GH-124230)Savannah Ostrowski2024-09-233-4/+44
| | | | | | | | In case of usage a long command along with max_help_position more than the length of the command, the command's help was incorrectly started on the new line. Co-authored-by: Pavel Ditenbir <pavel.ditenbir@gmail.com>
* GH-109975: Copyedit 3.13 What's New: Trivia (#124348)Adam Turner2024-09-231-23/+17
|
* gh-124344: Make `_PyObject_IS_GC()` use underscored `PyType_IS_GC()` (#124349)neonene2024-09-231-4/+4
| | | move up _PyType_IS_GC and use it
* gh-119180: Fix annotationlib.ForwardRef.evaluate with no globals (#124326)Jelle Zijlstra2024-09-232-15/+35
| | | | | | | | | We were sometimes passing None as the globals argument to eval(), which makes it inherit the globals from the calling scope. Instead, ensure that globals is always non-None. The test was passing accidentally because I passed "annotationlib" as a module object; fix that. Also document the parameters to ForwardRef() and remove two unused private ones. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-109975: Copyedit 3.13 What's New: Copyedit C API deprecations pending ↵Adam Turner2024-09-234-60/+114
| | | | removal (#124336)
* GH-109975: Copyedit 3.13 What's New: Build Changes (#124343)Adam Turner2024-09-231-24/+33
| | | Co-authored-by: Malcolm Smith <smith@chaquo.com>
* GH-124321: Fix argparse negative number parsing to capture -.5(GH-124322)Savannah Ostrowski2024-09-232-1/+3
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-109975: Copyedit 3.13 What's New: Porting to Python 3.13 (#124341)Adam Turner2024-09-231-85/+104
| | | Copyedit Porting to Python 3.13
* GH-124284: Add stats for refcount operations on immortal objects (GH-124288)Mark Shannon2024-09-237-10/+45
|
* Replace the term `Immutable` with a `Hashable` in the `sequence` entry of ↵decorator-factory2024-09-231-1/+1
| | | | | the Glossary (#124350) The term `Immutable` in the `sequence` entry of the glossary is used incorrectly, in fact dicts accepts hashable keys, which is not the same as immutable.
* gh-124254: Detect freethreaded MSI component when doing an upgrade on ↵Steve Dower2024-09-232-0/+2
| | | | Windows (GH-124279)
* Add Kirill Podoprigora for AST codeowners (#124302)Kirill Podoprigora2024-09-231-5/+6
|
* GH-109975: Copyedit 3.13 What's New: C API (#124313)Adam Turner2024-09-234-354/+457
|
* GH-79714: Add mention of stderr for clarity to ArgumentParser.exit() (GH-123932)Savannah Ostrowski2024-09-231-5/+5
|
* GH-113655: Lower the C recursion limit for HPPA, PPC64 and SPARC (#124264)Sam James2024-09-231-0/+6
| | | | | | | | | Lower the C recursion limit for HPPA, PPC64 and SPARC, as they use relatively large stack frames that cause e.g. `test_descr` to hit a stack overflow. According to quick testing, it seems that values around 8000 are max for HPPA and PPC64 (ELFv1 ABI) and 7000 for SPARC64. To keep things safe, let's use 5000 for PPC64 and 4000 for SPARC. Co-authored-by: Michał Górny <mgorny@gentoo.org>
* gh-124130: Notes on empty string corner case of category `\B` (#124133)Y52024-09-231-0/+6
| | | | Signed-off-by: y5c4l3 <y5c4l3@proton.me> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-124228: Fix UUID test in configure files for NetBSD (#124229)Furkan Onder2024-09-232-0/+15
| | | Fix UUID configuration in configure files for NetBSD compatibility.
* gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous ↵Terry Jan Reedy2024-09-223-1/+7
| | | | | | | | | | | | output. (#124310) https://github.com/python/cpython/issues/88496 replaced text.update with text.update_idletasks in colorizer.py and outwin.py to fix test failures on macOS. While theoretically correct, the result was Shell freezing when receiving continuous short strings to print. Test: `while 1: 1`. The guess is that there is no idle time in which to do the screen update. Reverting the change in one of the files, outwin, fixes the issue. Colorizer runs ever 1/20 second and seems to work fine. When running test-outwin on macOS, alias 'update' to 'update_idletasks on the text used for testing.
* gh-124213: Skip tests failing inside systemd-nspawn --suppress-sync=true ↵Michał Górny2024-09-204-4/+46
| | | | | | | | | | | | | | (#124215) Add a helper function that checks whether the test suite is running inside a systemd-nspawn container, and skip the few tests failing with `--suppress-sync=true` in that case. The tests are failing because `--suppress-sync=true` stubs out `fsync()`, `fdatasync()` and `msync()` calls, and therefore they always return success without checking for invalid arguments. Call `os.open(__file__, os.O_RDONLY | os.O_SYNC)` and check the errno to detect whether `--suppress-sync=true` is actually used, and skip the tests only in that scenario.
* gh-111513: Improve datetime.fromtimestamp's error message (#124249)AN Long2024-09-202-0/+5
|
* gh-124217, ipaddress: Add RFC 9637 reserved IPv6 block `3fff::/20` (#124240)Y52024-09-203-0/+5
| | | Signed-off-by: y5c4l3 <y5c4l3@proton.me>
* Fix typo in XMLParser doc (#124129)Jacob Walls2024-09-201-1/+1
|
* gh-124248: Fix crash in struct when processing 0p fields (#124251)Brian Schubert2024-09-204-4/+27
|
* gh-95468: Add more tests for "--" (double dash) in test_argparse (GH-124274)Serhiy Storchaka2024-09-201-2/+41
|
* gh-123880: Allow recursive import of single-phase-init modules (GH-123950)Petr Viktorin2024-09-206-25/+141
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org>