Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-117398: Convert datetime.IsoCalendarDate To A Heap Type (gh-119637) | Eric Snow | 2024-05-28 | 1 | -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. Aasland | 2024-05-28 | 1 | -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 Bucher | 2024-05-28 | 8 | -61/+137 | |
| | ||||||
* | GH-119476: Split _CHECK_FUNCTION_VERSION out of _CHECK_FUNCTION_EXACT_ARGS ↵ | Brandt Bucher | 2024-05-28 | 6 | -24/+24 | |
| | | | | (GH-119510) | |||||
* | gh-119118: Fix performance regression in tokenize module (#119615) | Lysandros Nikolaou | 2024-05-28 | 4 | -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 Katriel | 2024-05-28 | 5 | -71/+23 | |
| | | | | (#119677) | |||||
* | gh-119011: `type.__type_params__` now return an empty tuple (#119296) | Nikita Sobolev | 2024-05-28 | 4 | -0/+19 | |
| | ||||||
* | gh-117865: Defer import of re in ast (#119546) | Jelle Zijlstra | 2024-05-28 | 2 | -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 Viktorin | 2024-05-28 | 1 | -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 Troxler | 2024-05-28 | 1 | -0/+23 | |
| | ||||||
* | gh-119396: Optimize unicode_repr() (#119617) | Victor Stinner | 2024-05-28 | 4 | -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 Sobolev | 2024-05-28 | 3 | -41/+21 | |
| | ||||||
* | gh-118824: Remove deprecated `master_open` and `slave_open` from `pty` (#118826) | Nikita Sobolev | 2024-05-28 | 3 | -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 Kunimune | 2024-05-28 | 1 | -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 Sobolev | 2024-05-28 | 1 | -20/+0 | |
| | ||||||
* | gh-117557: Improve error messages when a string, bytes or bytearray of ↵ | Serhiy Storchaka | 2024-05-28 | 18 | -161/+811 | |
| | | | | length 1 are expected (GH-117631) | |||||
* | Fix typos in comments (#119645) | Xie Yanbo | 2024-05-28 | 3 | -3/+3 | |
| | ||||||
* | gh-119311: Fix name mangling with PEP 695 generic classes (#119464) | Jelle Zijlstra | 2024-05-28 | 7 | -14/+150 | |
| | | | | Fixes #119311. Fixes #119395. | |||||
* | gh-117398: Add multiphase support to _datetime (gh-119373) | Erlend E. Aasland | 2024-05-27 | 2 | -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 Snow | 2024-05-27 | 3 | -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 Hettinger | 2024-05-27 | 1 | -122/+116 | |
| | ||||||
* | Withdraw most of my ownership in favor of Mark (#119611) | Guido van Rossum | 2024-05-27 | 1 | -6/+6 | |
| | ||||||
* | Docs: Move inline JavaScript to own file to reduce duplication (#119541) | Hugo van Kemenade | 2024-05-27 | 2 | -91/+90 | |
| | ||||||
* | gh-119580: Improve version added section for convenience variable (#119583) | Tian Gao | 2024-05-27 | 1 | -0/+2 | |
| | ||||||
* | Docs: Only install sphinx-autobuild for `make htmllive` (#119607) | Hugo van Kemenade | 2024-05-27 | 2 | -2/+5 | |
| | ||||||
* | Docs: Add class role for IPV{4,6}Address and fix a typo (#118059) | Rafael Fontenelle | 2024-05-27 | 1 | -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 Ostrowski | 2024-05-27 | 1 | -0/+6 | |
| | ||||||
* | gh-119467: Fix Py_buffer.format type and correct documentation typo (#119475) | Aditya Borikar | 2024-05-27 | 1 | -2/+2 | |
| | ||||||
* | ``Include/internal/pycore_import.h``: Fix typo (#119586) | Kirill Podoprigora | 2024-05-27 | 1 | -1/+1 | |
| | | | Fix typo | |||||
* | Fix typos in HISTORY documentation (#119453) | Xie Yanbo | 2024-05-27 | 2 | -35/+36 | |
| | ||||||
* | Re-order imports to align with zipp 3.18.2 (#119587) | Jason R. Coombs | 2024-05-27 | 2 | -3/+3 | |
| | ||||||
* | gh-102864: Add switching frame test for pdb (#119564) | Tian Gao | 2024-05-26 | 1 | -1/+15 | |
| | ||||||
* | gh-119562: Remove unused private string constants from `ast.py` (#119576) | Alex Waygood | 2024-05-26 | 1 | -9/+0 | |
| | ||||||
* | gh-111997: Fix argument count for LINE event and clarify type of argument ↵ | scoder | 2024-05-26 | 1 | -10/+12 | |
| | | | | counts. (#119179) | |||||
* | gh-119562: Remove AST nodes deprecated since Python 3.8 (#119563) | Alex Waygood | 2024-05-26 | 4 | -585/+38 | |
| | ||||||
* | Update README and layout.html from 3.13 to 3.14 (#119539) | Wulian233 | 2024-05-26 | 2 | -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 Batchelder | 2024-05-26 | 18 | -23/+23 | |
| | ||||||
* | GH-82805: Fix handling of single-dot file extensions in pathlib (#118952) | Barney Gale | 2024-05-25 | 5 | -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 Snow | 2024-05-25 | 4 | -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 Waygood | 2024-05-25 | 1 | -2/+2 | |
| | ||||||
* | Add codeowners for PYREPL (#119550) | Pablo Galindo Salgado | 2024-05-25 | 1 | -0/+2 | |
| | ||||||
* | gh-119548: Add a 'clear' command to the REPL (#119549) | Pablo Galindo Salgado | 2024-05-25 | 3 | -1/+12 | |
| | ||||||
* | FAQ: Add reference to Python version numbering scheme (#119225) | Hugo van Kemenade | 2024-05-25 | 1 | -2/+2 | |
| | ||||||
* | gh-111999: Fix the signature of str.format_map() (#119540) | Serhiy Storchaka | 2024-05-25 | 3 | -2/+3 | |
| | ||||||
* | gh-119105: Differ.compare is too slow [for degenerate cases] (#119492) | Tim Peters | 2024-05-25 | 2 | -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 Zijlstra | 2024-05-25 | 2 | -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 Hettinger | 2024-05-24 | 1 | -55/+55 | |
| | ||||||
* | GH-119054: Add "Querying file type and status" section to pathlib docs (#119055) | Barney Gale | 2024-05-24 | 1 | -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 Podoprigora | 2024-05-24 | 1 | -1/+1 | |
| | ||||||
* | gh-118263: Add additional arguments to path_t (Argument Clinic type) in ↵ | Nice Zombies | 2024-05-24 | 7 | -359/+389 | |
| | | | | posixmodule (GH-118355) |