Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump mypy from 1.11.1 to 1.11.2 in /Tools (#123566) | dependabot[bot] | 2024-09-01 | 1 | -1/+1 |
| | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | ||||
* | Bump types-psutil from 6.0.0.20240621 to 6.0.0.20240901 in /Tools (#123564) | dependabot[bot] | 2024-09-01 | 1 | -1/+1 |
| | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | ||||
* | gh-123553: Fix compiler warning in `Python/compile.c` (#123554) | Kirill Podoprigora | 2024-09-01 | 1 | -0/+2 |
| | |||||
* | gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (#123551) | jlallas384 | 2024-09-01 | 1 | -1/+1 |
| | |||||
* | GH-109975: Copyedit 3.13 What's New: Removals (#123529) | Adam Turner | 2024-09-01 | 1 | -155/+175 |
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | ||||
* | gh-123494: Improve documentation for ``webbrowser`` return types (#123495) | Aarni Koskela | 2024-09-01 | 2 | -0/+10 |
| | | | Document the return value for ``webbrowser.open*()``. | ||||
* | gh-115238: Remove a redundant f-string in graphlib (#115239) | Luka | 2024-09-01 | 1 | -1/+1 |
| | |||||
* | gh-123517: Remove unnecessary ``:meth:`` parentheses (#123518) | Wei-Hsiang (Matt) Wang | 2024-09-01 | 55 | -145/+145 |
| | |||||
* | gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) | Seth Michael Larson | 2024-08-31 | 3 | -35/+112 |
| | | | | | | | | * Remove backtracking when parsing tarfile headers * Rewrite PAX header parsing to be stricter * Optimize parsing of GNU extended sparse headers v0.0 Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Gregory P. Smith <greg@krypto.org> | ||||
* | Enable colour for doctest on GitHub Actions (#123536) | Hugo van Kemenade | 2024-08-31 | 1 | -0/+3 |
| | |||||
* | gh-123309: Remove check for redefined memo entry in pickletools.dis() ↵ | Serhiy Storchaka | 2024-08-31 | 3 | -24/+11 |
| | | | | | | (GH-123374) Such pickles are supported by the Unpickler even if the Pickler does not produce them. | ||||
* | gh-76960: Fix urljoin() and urldefrag() for URIs with empty components ↵ | Serhiy Storchaka | 2024-08-31 | 3 | -52/+140 |
| | | | | | | | | | | | | (GH-123273) * urljoin() with relative reference "?" sets empty query and removes fragment. * Preserve empty components (authority, params, query, fragment) in urljoin(). * Preserve empty components (authority, params, query) in urldefrag(). Also refactor the code and get rid of double _coerce_args() and _coerce_result() calls in urljoin(), urldefrag(), urlparse() and urlunparse(). | ||||
* | gh-123309: Add more tests for the pickletools module (GH-123355) | Serhiy Storchaka | 2024-08-31 | 1 | -0/+310 |
| | | | Add tests for genops() and dis(). | ||||
* | gh-123407: Enable translating literal and code blocks (#123408) | Maciej Olko | 2024-08-31 | 1 | -0/+1 |
| | |||||
* | gh-108172: do not override OS preferred browser if it is a super-string of a ↵ | Oded Arbel | 2024-08-31 | 2 | -1/+2 |
| | | | | | | | | | | | known browser (GH-113011) When checking if the registering browser is the "OS preferred browser", do not use a substring search - that makes no sense: one can have a preferred browser that looks like a super-string of a known browser, e.g. "firefox-nightly" vs "firefox". https://github.com/python/cpython/issues/108172 explains in more detail, and lays out a potential better future enhancement for this case of just using xdg-open. We'll go with this for now. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-121313: Limit the reading size from pipes to their default buffer size on ↵ | Alexander P. | 2024-08-31 | 2 | -3/+19 |
| | | | | | POSIX systems (GH-121315) See https://github.com/python/cpython/issues/121313 for analysis, but this greatly reduces memory overallocation and overhead when multiprocessing is sending non-small data over its pipes between processes. | ||||
* | Make self turtledemo codeowner (#123524) | Terry Jan Reedy | 2024-08-31 | 1 | -1/+2 |
| | |||||
* | gh-121404: rearrange code in compile.c so that codegen functions come first ↵ | Irit Katriel | 2024-08-30 | 1 | -1033/+1071 |
| | | | | and compiler functions second (#123510) | ||||
* | gh-123440: Improve error message for `except as` used with not a name (#123442) | sobolevn | 2024-08-30 | 4 | -972/+1282 |
| | |||||
* | gh-122854: Add Py_HashBuffer() function (#122855) | Victor Stinner | 2024-08-30 | 17 | -25/+80 |
| | |||||
* | gh-121645: Add PyBytes_Join() function (#121646) | Victor Stinner | 2024-08-30 | 10 | -12/+101 |
| | | | | * Replace _PyBytes_Join() with PyBytes_Join(). * Keep _PyBytes_Join() as an alias to PyBytes_Join(). | ||||
* | gh-123484: Fix the debug offsets for PyLongObject (#123485) | Matt Wozniski | 2024-08-30 | 2 | -2/+4 |
| | |||||
* | gh-123492: Remove unnecessary `:func:` parentheses (#123493) | Wei-Hsiang (Matt) Wang | 2024-08-30 | 78 | -154/+154 |
| | |||||
* | gh-123189: [`Modules/blake2module.c`]: Move function definitions and their ↵ | Kirill Podoprigora | 2024-08-30 | 1 | -0/+8 |
| | | | | usage under the macros (#123190) | ||||
* | gh-123446: Fix empty function names in `TypeError`s in `typeobject` (#123470) | sobolevn | 2024-08-30 | 3 | -11/+63 |
| | |||||
* | gh-121485: Always use 64-bit integers for integers bits count (GH-121486) | Serhiy Storchaka | 2024-08-30 | 13 | -111/+187 |
| | | | | | Use 64-bit integers instead of platform specific size_t or Py_ssize_t to represent the number of bits in Python integer. | ||||
* | gh-123446: Fix empty function names in `TypeError`s in `_csv` module (#123462) | sobolevn | 2024-08-29 | 1 | -3/+3 |
| | |||||
* | gh-123446: Fix empty function names in `TypeError`s in `_csv` module (#123461) | sobolevn | 2024-08-29 | 2 | -3/+6 |
| | |||||
* | gh-123431: Harmonize extension code checks in pickle (GH-123434) | Serhiy Storchaka | 2024-08-29 | 3 | -28/+73 |
| | | | | | | | | | This checks are redundant in normal circumstances and can only work if the extension registry was intentionally broken. * The Python implementation now raises exception for the extension code with false boolean value. * Simplify the C code. RuntimeError is now raised in explicit checks. * Add many tests. | ||||
* | gh-123448: Move `_PyNoDefault_Type` to the static types array (#123449) | Peter Bierma | 2024-08-29 | 3 | -3/+3 |
| | |||||
* | gh-122136: test_asyncio: Don't fail if the kernel buffers more data than ↵ | Petr Viktorin | 2024-08-28 | 1 | -5/+13 |
| | | | | advertised (GH-123423) | ||||
* | gh-123142: fix too wide source location of GET_ITER/GET_AITER (#123420) | Irit Katriel | 2024-08-28 | 6 | -9/+40 |
| | |||||
* | gh-101860: document `property.__name__` (GH-123399) | Bénédikt Tran | 2024-08-28 | 2 | -0/+10 |
| | |||||
* | gh-123344: Add missing ast optimizations for PEP 696 (#123377) | Bogdan Romanyuk | 2024-08-28 | 3 | -9/+99 |
| | | | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | Fix typos in docs, error messages and comments (#123336) | Wulian | 2024-08-28 | 21 | -25/+25 |
| | | | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | ||||
* | gh-120389: Add PyLong_FromInt64() and PyLong_AsInt64() (#120390) | Victor Stinner | 2024-08-28 | 13 | -2/+286 |
| | | | | | | | | | | | | Add new functions to convert C <stdint.h> numbers from/to Python int: * PyLong_FromInt32() * PyLong_FromUInt32() * PyLong_FromInt64() * PyLong_FromUInt64() * PyLong_AsInt32() * PyLong_AsUInt32() * PyLong_AsInt64() * PyLong_AsUInt64() | ||||
* | gh-122561: Clean up and microoptimize str.translate and charmap codec ↵ | Serhiy Storchaka | 2024-08-28 | 1 | -27/+43 |
| | | | | | | | | (GH-122932) * Replace PyLong_AS_LONG() with PyLong_AsLong(). * Call PyLong_AsLong() only once per the replacement code. * Use PyMapping_GetOptionalItem() instead of PyObject_GetItem(). | ||||
* | gh-123254: Improve `tuple` C API docs with more info about errors (#123255) | sobolevn | 2024-08-28 | 1 | -8/+16 |
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | gh-123363: Show string value of CONTAINS_OP oparg in dis (#123387) | Alexandr Mitin | 2024-08-28 | 3 | -0/+14 |
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | gh-123270: Replaced SanitizedNames with a more surgical fix. (#123354) | Jason R. Coombs | 2024-08-27 | 3 | -71/+87 |
| | | | Applies changes from zipp 3.20.1 and jaraco/zipp#124 | ||||
* | gh-123271: Make builtin zip method safe under free-threading (#123272) | Pieter Eendebak | 2024-08-27 | 4 | -1/+61 |
| | | | | | | | | | | | | | | | | The `zip_next` function uses a common optimization technique for methods that generate tuples. The iterator maintains an internal reference to the returned tuple. When the method is called again, it checks if the internal tuple's reference count is 1. If so, the tuple can be reused. However, this approach is not safe under the free-threading build: after checking the reference count, another thread may perform the same check and also reuse the tuple. This can result in a double decref on the items of the replaced tuple and a double incref (memory leak) on the items of the tuple being set. This adds a function, `_PyObject_IsUniquelyReferenced` that encapsulates the stricter logic necessary for the free-threaded build: the internal tuple must be owned by the current thread, have a local refcount of one, and a shared refcount of zero. | ||||
* | gh-121404: split compiler_nameop into a codegen part and a compiler part ↵ | Irit Katriel | 2024-08-27 | 1 | -89/+101 |
| | | | | (#123398) | ||||
* | gh-109975: Fix a typo in What's New in Python 3.13 (#123393) | Daniel Hollas | 2024-08-27 | 1 | -1/+1 |
| | |||||
* | GH-117759: Document incremental GC (GH-123266) | Mark Shannon | 2024-08-27 | 3 | -26/+69 |
| | | | | | | * Update what's new * Update gc module docs and fix inconsistency in gc.get_objects | ||||
* | gH-80788: remove old weakset workaround for thread safety (#123388) | Kumar Aditya | 2024-08-27 | 1 | -17/+2 |
| | |||||
* | gh-123089: Make weakref.WeakSet safe against concurrent mutations while it ↵ | Kumar Aditya | 2024-08-27 | 2 | -43/+11 |
| | | | | | | | | | is being iterated (#123279) * Make `weakref.WeakSet` safe against concurrent mutations while it is being iterated. `_IterationGuard` is no longer used for `WeakSet`, it now relies on copying the underlying set which is an atomic operation while iterating so that it can be modified by other threads. | ||||
* | gh-120426: Reword the glossary term "immortal" (GH-123191) | Petr Viktorin | 2024-08-27 | 1 | -7/+5 |
| | | | Reword the glossary term "immortal", mark it as an implementation detail | ||||
* | gh-121404: compiler_visit_* --> codegen_visit_* (#123382) | Irit Katriel | 2024-08-27 | 1 | -61/+49 |
| | |||||
* | GH-123232: Factor BINARY_SLICE and STORE_SLICE to handle stats properly for ↵ | Mark Shannon | 2024-08-27 | 4 | -197/+229 |
| | | | | tier 2. (GH-123381) | ||||
* | GH-115775: Use `__static_attributes__` to initialize shared keys (GH-118468) | Mark Shannon | 2024-08-27 | 3 | -3/+18 |
| |