summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-117398: Convert datetime.IsoCalendarDate To A Heap Type (gh-119637)Eric Snow2024-05-281-22/+60
| | | This is the only static type in the module that we will not keep static.
* gh-119538: Add missing expat build dependencies (#119647)Erlend E. Aasland2024-05-281-1/+3
| | | | xmltok_impl.c and xmltok_ns.c are _included_ in xmltok.c by the C pre-processor.
* GH-119258: Handle STORE_ATTR_WITH_HINT in tier two (GH-119481)Brandt Bucher2024-05-288-61/+137
|
* GH-119476: Split _CHECK_FUNCTION_VERSION out of _CHECK_FUNCTION_EXACT_ARGS ↵Brandt Bucher2024-05-286-24/+24
| | | | (GH-119510)
* gh-119118: Fix performance regression in tokenize module (#119615)Lysandros Nikolaou2024-05-284-4/+68
| | | | | | | | | | * gh-119118: Fix performance regression in tokenize module - Cache line object to avoid creating a Unicode object for all of the tokens in the same line. - Speed up byte offset to column offset conversion by using the smallest buffer possible to measure the difference. Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* gh-119676: remove several pseudo instructions which are use only in codegen ↵Irit Katriel2024-05-285-71/+23
| | | | (#119677)
* gh-119011: `type.__type_params__` now return an empty tuple (#119296)Nikita Sobolev2024-05-284-0/+19
|
* gh-117865: Defer import of re in ast (#119546)Jelle Zijlstra2024-05-282-2/+9
| | | | | This is used only by ast.get_source_segment(), so it seems sensible to avoid importing it. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-117398: gh-119655: datetime: Init static state once & don't free it ↵Petr Viktorin2024-05-281-5/+13
| | | | | | | (GH-119662) - While datetime uses global state, only initialize it once. - While `capi` is static, don't free it (thanks @neonene in https://github.com/python/cpython/pull/119641/files#r1616710048)
* gh-119581: Add a test of InitVar with name shadowing (#119582)Steven Troxler2024-05-281-0/+23
|
* gh-119396: Optimize unicode_repr() (#119617)Victor Stinner2024-05-284-102/+131
| | | | | | | | | | | | | | | | | | | | | | Use stringlib to specialize unicode_repr() for each string kind (UCS1, UCS2, UCS4). Benchmark: +-------------------------------------+---------+----------------------+ | Benchmark | ref | change2 | +=====================================+=========+======================+ | repr('abc') | 100 ns | 103 ns: 1.02x slower | +-------------------------------------+---------+----------------------+ | repr('a' * 100) | 369 ns | 369 ns: 1.00x slower | +-------------------------------------+---------+----------------------+ | repr(('a' + squote) * 100) | 1.21 us | 946 ns: 1.27x faster | +-------------------------------------+---------+----------------------+ | repr(('a' + nl) * 100) | 1.23 us | 907 ns: 1.36x faster | +-------------------------------------+---------+----------------------+ | repr(dquote + ('a' + squote) * 100) | 1.08 us | 858 ns: 1.25x faster | +-------------------------------------+---------+----------------------+ | Geometric mean | (ref) | 1.16x faster | +-------------------------------------+---------+----------------------+
* gh-119659: Move `@no_rerun` to `test.support` (#119660)Nikita Sobolev2024-05-283-41/+21
|
* gh-118824: Remove deprecated `master_open` and `slave_open` from `pty` (#118826)Nikita Sobolev2024-05-283-38/+20
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [doc] Clarify the nature of the root logger in the `logging` documentation ↵Justin Kunimune2024-05-281-9/+11
| | | | | (GH-119440) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* gh-116860: Remove outdated `test_parserhack` from `test_future` (#116861)Nikita Sobolev2024-05-281-20/+0
|
* gh-117557: Improve error messages when a string, bytes or bytearray of ↵Serhiy Storchaka2024-05-2818-161/+811
| | | | length 1 are expected (GH-117631)
* Fix typos in comments (#119645)Xie Yanbo2024-05-283-3/+3
|
* gh-119311: Fix name mangling with PEP 695 generic classes (#119464)Jelle Zijlstra2024-05-287-14/+150
| | | | Fixes #119311. Fixes #119395.
* gh-117398: Add multiphase support to _datetime (gh-119373)Erlend E. Aasland2024-05-272-15/+32
| | | | | This is minimal support. Subinterpreters are not supported yet. That will be addressed in a later change. Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* gh-119584: Fix test_import Failed Assertion (gh-119623)Eric Snow2024-05-273-2/+8
| | | The fix in gh-119561 introduced an assertion that doesn't hold true if any of the three new test extension modules are loaded more than once. This is fine normally but breaks if the new test_check_state_first() is run more than once, which happens for refleak checking and with the regrtest --forever flag. We fix that here by clearing each of the three modules after loading them. We also tweak a check in _modules_by_index_check().
* Misc cleanups and wording improvements for the itertools docs (gh-119626)Raymond Hettinger2024-05-271-122/+116
|
* Withdraw most of my ownership in favor of Mark (#119611)Guido van Rossum2024-05-271-6/+6
|
* Docs: Move inline JavaScript to own file to reduce duplication (#119541)Hugo van Kemenade2024-05-272-91/+90
|
* gh-119580: Improve version added section for convenience variable (#119583)Tian Gao2024-05-271-0/+2
|
* Docs: Only install sphinx-autobuild for `make htmllive` (#119607)Hugo van Kemenade2024-05-272-2/+5
|
* Docs: Add class role for IPV{4,6}Address and fix a typo (#118059)Rafael Fontenelle2024-05-271-3/+3
| | | | | Add class role for IPV{4,6}Address and fix a typo Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* GH-117283: Add doc warning for `PyTuple_SetItem` refcount > 1 (#117916)Savannah Ostrowski2024-05-271-0/+6
|
* gh-119467: Fix Py_buffer.format type and correct documentation typo (#119475)Aditya Borikar2024-05-271-2/+2
|
* ``Include/internal/pycore_import.h``: Fix typo (#119586)Kirill Podoprigora2024-05-271-1/+1
| | | Fix typo
* Fix typos in HISTORY documentation (#119453)Xie Yanbo2024-05-272-35/+36
|
* Re-order imports to align with zipp 3.18.2 (#119587)Jason R. Coombs2024-05-272-3/+3
|
* gh-102864: Add switching frame test for pdb (#119564)Tian Gao2024-05-261-1/+15
|
* gh-119562: Remove unused private string constants from `ast.py` (#119576)Alex Waygood2024-05-261-9/+0
|
* gh-111997: Fix argument count for LINE event and clarify type of argument ↵scoder2024-05-261-10/+12
| | | | counts. (#119179)
* gh-119562: Remove AST nodes deprecated since Python 3.8 (#119563)Alex Waygood2024-05-264-585/+38
|
* Update README and layout.html from 3.13 to 3.14 (#119539)Wulian2332024-05-262-6/+12
| | | | | Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* docs: fix a few typos identified by codespell (#119516)Ned Batchelder2024-05-2618-23/+23
|
* GH-82805: Fix handling of single-dot file extensions in pathlib (#118952)Barney Gale2024-05-255-35/+101
| | | | | | | | | | | | | | | pathlib now treats "`.`" as a valid file extension (suffix). This brings it in line with `os.path.splitext()`. In the (private) pathlib ABCs, we add a new `ParserBase.splitext()` method that splits a path into a `(root, ext)` pair, like `os.path.splitext()`. This method is called by `PurePathBase.stem`, `suffix`, etc. In a future version of pathlib, we might make these base classes public, and so users will be able to define their own `splitext()` method to control file extension splitting. In `pathlib.PurePath` we add optimised `stem`, `suffix` and `suffixes` properties that don't use `splitext()`, which avoids computing the path base name twice.
* gh-119560: Drop an Invalid Assert in PyState_FindModule() (gh-119561)Eric Snow2024-05-254-4/+100
| | | The assertion was added in gh-118532 but was based on the invalid assumption that PyState_FindModule() would only be called with an already-initialized module def. I've added a test to make sure we don't make that assumption again.
* gh-99180: Make `StackSummary.should_show_carets` private (#119554)Alex Waygood2024-05-251-2/+2
|
* Add codeowners for PYREPL (#119550)Pablo Galindo Salgado2024-05-251-0/+2
|
* gh-119548: Add a 'clear' command to the REPL (#119549)Pablo Galindo Salgado2024-05-253-1/+12
|
* FAQ: Add reference to Python version numbering scheme (#119225)Hugo van Kemenade2024-05-251-2/+2
|
* gh-111999: Fix the signature of str.format_map() (#119540)Serhiy Storchaka2024-05-253-2/+3
|
* gh-119105: Differ.compare is too slow [for degenerate cases] (#119492)Tim Peters2024-05-252-71/+46
| | | | ``_fancy_replace()`` is no longer recursive. and a single call does a worst-case linear number of ratio() computations instead of quadratic. This renders toothless a universe of pathological cases. Some inputs may produce different output, but that's rare, and I didn't find a case where the final diff appeared to be of materially worse quality. To the contrary, by refusing to even consider synching on lines "far apart", there was more easy-to-digest locality in the output.
* gh-119180: Update the magic number (#119397)Jelle Zijlstra2024-05-252-1/+2
| | | | PR #119321 added a comment about the magic number bump but did not actually apply the new magic number.
* Misc improvement to the docs for itertools (gh-119529)Raymond Hettinger2024-05-241-55/+55
|
* GH-119054: Add "Querying file type and status" section to pathlib docs (#119055)Barney Gale2024-05-241-167/+171
| | | | Add a dedicated subsection for `Path.stat()`-related methods, specifically `stat()`, `lstat()`, `exists()`, `is_*()`, and `samefile()`.
* Regen ``Doc/requirements-oldest-sphinx.txt`` (#119520)Kirill Podoprigora2024-05-241-1/+1
|
* gh-118263: Add additional arguments to path_t (Argument Clinic type) in ↵Nice Zombies2024-05-247-359/+389
| | | | posixmodule (GH-118355)