summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-121791: Check for `NULL` in `MethodDescriptor2_new` in `_testcapi` (#121792)sobolevn2024-07-161-0/+3
|
* gh-85453: Fix 'timezone' vs. 'time zone' spelling issues in datetime.rst ↵edson duarte2024-07-161-24/+24
| | | | (#118449)
* gh-120831: Increase the default minimum supported iOS version to 13.0 (#121250)Russell Keith-Magee2024-07-165-5/+23
| | | | | Increases the default minimum iOS version to 13.0. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-121403: Add notes for PyList_GetXXX APIs about the need for init (gh-121626)Donghee Na2024-07-161-3/+6
|
* gh-121295: Fix blocked console after interrupting a long paste (GH-121815)Marta Gómez Macías2024-07-152-1/+11
|
* gh-121610: pyrepl - handle extending blocks when multi-statement blocks are ↵saucoide2024-07-152-11/+123
| | | | | | | | | | | | pasted (GH-121757) console.compile with the "single" param throws an exception when there are multiple statements, never allowing to adding newlines to a pasted code block (gh-121610) This add a few extra checks to allow extending when in an indented block, and tests for a few examples Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-121814: Only check f_trace_opcodes if Python frame exists (#121818)Tian Gao2024-07-152-1/+2
| | | Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
* gh-121605: Fix test hang when pyrepl is not available (GH-121820)Sam Gross2024-07-151-1/+1
| | | | The fallback repl does not support "exit" without parentheses, so the test would hang until the timeout expired.
* gh-121790: Fix interactive console initialization (#121793)Milan Oberkirch2024-07-156-42/+85
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-121794: Don't set `ob_tid` to zero in fast-path dealloc (#121799)Sam Gross2024-07-153-13/+62
| | | | | | | | | | | | We should maintain the invariant that a zero `ob_tid` implies the refcount fields are merged. * Move the assignment in `_Py_MergeZeroLocalRefcount` to immediately before the refcount merge. * Update `_PyTrash_thread_destroy_chain` to set `ob_ref_shared` to `_Py_REF_MERGED` when setting `ob_tid` to zero. Also check this invariant with assertions in the GC in debug builds. That uncovered a bug when running out of memory during GC.
* gh-117657: Skip tests that fork with threads under TSan (#121599)Sam Gross2024-07-151-0/+3
| | | | | | This avoids messages like: ThreadSanitizer: starting new threads after multi-threaded fork is not supported. Dying (set die_after_fork=0 to override)
* gh-121245: Refactor site.register_readline() (GH-121659)Sergey B Kirpichev2024-07-153-36/+36
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-76785: Expand How Interpreter Channels Handle Interpreter Finalization ↵Eric Snow2024-07-159-306/+898
| | | | | (gh-121805) See 6b98b274b6 for an explanation of the problem and solution. Here I've applied the solution to channels.
* gh-121359: make clean environment (no PYTHON* vars) for test_pyrepl.TestMain ↵Sergey B Kirpichev2024-07-151-0/+13
| | | | | (GH-121672) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-121546: Disable contextvar caching on free-threading build (GH-121740)Ken Jin2024-07-152-0/+16
|
* gh-76785: Expand How Interpreter Queues Handle Interpreter Finalization ↵Eric Snow2024-07-153-90/+513
| | | | | | | | | | | | | | | | | | | | (gh-116431) Any cross-interpreter mechanism for passing objects between interpreters must be very careful to respect isolation, even when the object is effectively immutable (e.g. int, str). Here this especially relates to when an interpreter sends one of its objects, and then is destroyed while the inter-interpreter machinery (e.g. queue) still holds a reference to the object. When I added interpreters.Queue, I dealt with that case (using an atexit hook) by silently removing all items from the queue that were added by the finalizing interpreter. Later, while working on concurrent.futures.InterpreterPoolExecutor (gh-116430), I noticed it was somewhat surprising when items were silently removed from the queue when the originating interpreter was destroyed. (See my comment on that PR.) It took me a little while to realize what was going on. I expect that users, which much less context than I have, would experience the same pain. My approach, here, to improving the situation is to give users three options: 1. return a singleton (interpreters.queues.UNBOUND) from Queue.get() in place of each removed item 2. raise an exception (interpreters.queues.ItemInterpreterDestroyed) from Queue.get() in place of each removed item 3. existing behavior: silently remove each item (i.e. Queue.get() skips each one) The default will now be (1), but users can still explicitly opt in any of them, including to the silent removal behavior. The behavior for each item may be set with the corresponding Queue.put() call. and a queue-wide default may be set when the queue is created. (This is the same as I did for "synconly".)
* gh-118297: Make Sure All Pending Calls Run in _Py_FinishPendingCalls() ↵Eric Snow2024-07-151-6/+28
| | | | (gh-118298)
* gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754)Rodrigo Girão Serrão2024-07-152-1/+2
|
* gh-121785: Remove unused code from codecs.py (GH-121787)Sebastian Rittau2024-07-151-15/+6
| | | | | It was only needed for non-Unicode Python builds, which aren't supported anymore.
* gh-84978: Add float.from_number() and complex.from_number() (GH-26827)Serhiy Storchaka2024-07-1510-46/+242
| | | | | | They are alternate constructors which only accept numbers (including objects with special methods __float__, __complex__ and __index__), but not strings.
* gh-117765: Improve documentation for `mocker.patch.dict` (#121755)Dominic H2024-07-153-2/+5
|
* fix outdated comments in asyncio (#121783)Kumar Aditya2024-07-153-5/+4
|
* gh-57141: Make shallow argument to filecmp.dircmp keyword-only (#121767)Jelle Zijlstra2024-07-144-4/+18
| | | | | | It is our general practice to make new optional parameters keyword-only, even if the existing parameters are all positional-or-keyword. Passing this parameter as positional would look confusing and could be error-prone if additional parameters are added in the future.
* Generalize reusable Windows CI jobs (#121766)Sviatoslav Sydorenko (Святослав Сидоренко)2024-07-142-45/+41
|
* gh-121731: Fix mimalloc compile error on GNU/Hurd (#121732)Samuel Thibault2024-07-142-0/+2
|
* gh-121621: Use PyMutex for writes to asyncio state (#121622)Ken Jin2024-07-141-1/+29
| | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-121660: Fix `ga_getitem` by explicitly checking for `NULL` result (#121661)sobolevn2024-07-141-0/+4
|
* Fix cache restoration for Hypothesis CI job (#121756)Sviatoslav Sydorenko (Святослав Сидоренко)2024-07-141-1/+1
|
* gh-121749: Fix discrepancy in docs for `PyModule_AddObjectRef` (GH-121750)Dominic H2024-07-142-1/+2
|
* gh-121698 Emscripten: Use updated WebAssembly type reflection proposal ↵Hood Chatham2024-07-141-2/+12
| | | | (GH-121699)
* gh-121700 Emscripten trampolines not quite right since #106219 (GH-121701)Hood Chatham2024-07-141-7/+1
|
* gh-121562: optimized hex_from_char (#121563)Bruno Lima2024-07-142-62/+34
| | | | | Performance improvement to `float.fromhex`: use a lookup table for computing the hexadecimal value of a character, in place of the previous switch-case construct. Patch by Bruno Lima.
* gh-64308: Remove TestProgram from the unittest docs (GH-121675)Jan Musílek2024-07-141-2/+2
|
* gh-121708: Improve test coverage for `unittest.util` (GH-121713)Tomas R2024-07-141-0/+33
|
* gh-120642: Move _PyCode_CODE() to the internal C API (#121644)Victor Stinner2024-07-132-3/+3
| | | | Move _PyCode_CODE() and _PyCode_NBYTES() macros to the internal C API since they use _Py_CODEUNIT which is only part of the internal C API.
* gh-73159 Added clarifications in multiprocessing docs on that objects are ↵Ulrik Södergren2024-07-131-0/+10
| | | | | pickled. (GH-121686) Added explicit comments about that objects are pickled when transmitted via multiprocessing queues and pipes.
* gh-121651: Fix pdb header test (#121724)Tian Gao2024-07-131-0/+5
|
* gh-121652: Handle `allocate_weakref` returning NULL (#121653)Sam Gross2024-07-131-0/+7
| | | | The `allocate_weakref` may return NULL when out of memory. We need to handle that case and propagate the error.
* gh-121711: Set `-m asyncio` return_code to 1 for ENOTTY (#121714)Milan Oberkirch2024-07-132-4/+5
| | | Set return_code to 1 for ENOTTY
* gh-121657: Display correct error message for yield from outside of a ↵Gregor2024-07-133-1/+8
| | | | | | function (GH-121680) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-120452: improve documentation about private name mangling (#120451)Bénédikt Tran2024-07-133-15/+69
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-120823: Fix doc for ftplib.FTP.retrbinary() (GH-121697)mirelagrigoras2024-07-131-1/+1
| | | Co-authored-by: Mirela Andreea GRIGORAS <magrigoras@bitdefender.com>
* gh-121605: Increase timeout in test_pyrepl.run_repl (#121606)Sam Gross2024-07-131-5/+8
| | | | We also need to close the `slave_fd` earlier so that reading from `master_fd` won't block forever when the subprocess finishes.
* gh-121671: Increase test coverage of `ast.get_docstring` (GH-121674)Tomas R2024-07-131-0/+9
| | | Increase test coverage for `ast.get_docstring`
* gh-96765: Update ConfigParser.read() docs with multi-file read example (#121664)Timon Viola2024-07-131-14/+44
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-121499: Fix multi-line history rendering in the REPL (#121531)Pablo Galindo Salgado2024-07-135-0/+62
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-121609: Fix pasting of characters containing unicode character joiner ↵Marta Gómez Macías2024-07-133-1/+7
| | | | (#121667)
* gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154)Serhiy Storchaka2024-07-132-15/+57
| | | | | | * The result has type Py_ssize_t, not intptr_t. * Type cast between unsigned and signdet integer types should be explicit. * Downcasting should be explicit. * Fix integer overflow check in sum().
* gh-99242 Ignore error when running regression tests under certain ↵Bas Bloemsaat2024-07-132-1/+7
| | | | | conditions. (GH-121663) Co-Authored-By: Kevin Diem <kg.diem@gmail.com>
* gh-121497: Make Pyrepl respect correctly the history with input hook set ↵Pablo Galindo Salgado2024-07-132-2/+4
| | | | (#121498)