summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-125277: Increase minimum supported Sphinx to 7.2.6 (#125368)Adam Turner2024-10-194-17/+19
|
* gh-124694: In test_interpreter_pool, Restore the Asyncio Event Loop Policy ↵Eric Snow2024-10-181-0/+13
| | | | | During Cleanup (gh-125708) This resolves a failure on the android buildbot.
* gh-125207: Fix MSVC 1935 build with JIT (#125209)Michael Droettboom2024-10-183-4/+7
| | | | | | | * gh-125207: Use {0} array initializers * Simplify, as suggested in PR * Revert change to explicitly specify length
* gh-125703: Correctly honour tracemalloc hooks on specialized DECREF paths ↵Pablo Galindo Salgado2024-10-182-0/+7
| | | | (#125704)
* gh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (gh-125605)Eric Snow2024-10-1826-346/+429
| | | | | | | | | | | | This is essentially a cleanup, moving a handful of API declarations to the header files where they fit best, creating new ones when needed. We do the following: * add pycore_debug_offsets.h and move _Py_DebugOffsets, etc. there * inline struct _getargs_runtime_state and struct _gilstate_runtime_state in _PyRuntimeState * move struct _reftracer_runtime_state to the existing pycore_object_state.h * add pycore_audit.h and move to it _Py_AuditHookEntry , _PySys_Audit(), and _PySys_ClearAuditHooks * add audit.h and cpython/audit.h and move the existing audit-related API there *move the perfmap/trampoline API from cpython/sysmodule.h to cpython/ceval.h, and remove the now-empty cpython/sysmodule.h
* Add tests for time.strftime() with invalid format string (GH-125696)Serhiy Storchaka2024-10-181-1/+12
|
* gh-124102: Clean up unsupported VS and WiX detections (GH-124784)Wulian2024-10-183-16/+11
|
* gh-123610: Added additional types to ctypes/wintypes.py (GH-124086)RUANG (Roy James)2024-10-181-0/+8
|
* gh-125660: Reject invalid unicode escapes for Python implementation of JSON ↵Nice Zombies2024-10-183-4/+16
| | | | decoder (GH-125683)
* gh-125682: Reject non-ASCII digits in the Python implementation of JSON ↵Nice Zombies2024-10-183-1/+9
| | | | decoder (GH-125687)
* gh-125620: Skip check_resource_tracker_death on NetBSD due to long wait for ↵Furkan Onder2024-10-181-0/+2
| | | | | SIGKILL process termination (GH-125621) * Skip test_resource_tracker_sigkill on NetBSD
* gh-125600: Only show stale code warning on source code display commands ↵Tian Gao2024-10-183-4/+40
| | | | (#125601)
* gh-125667: Statically Initialize the Arg Converter Data Values in ↵Eric Snow2024-10-171-9/+9
| | | | _interpqueuesmodule.c (gh-125668)
* gh-125017: Fix refleak from GH-125636 (GH-125664)Zachary Ware2024-10-171-0/+1
|
* gh-125541: Make Ctrl-C interrupt `threading.Lock.acquire()` on Windows (#125546)Sam Gross2024-10-174-8/+25
|
* gh-118986: expose `socket.IPV6_RECVERR` (#118987)chrysn2024-10-173-2/+6
|
* gh-125017: Fix crash on premature access to classmethod/staticmethod ↵Jelle Zijlstra2024-10-173-14/+43
| | | | annotations (#125636)
* gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed ↵George Pittock2024-10-173-5/+71
| | | | builtins (GH-113577)
* gh-52551: Fix encoding issues in strftime() (GH-125193)Serhiy Storchaka2024-10-175-232/+307
| | | | | | | | | | | | | Fix time.strftime(), the strftime() method and formatting of the datetime classes datetime, date and time. * Characters not encodable in the current locale are now acceptable in the format string. * Surrogate pairs and sequence of surrogatescape-encoded bytes are no longer recombinated. * Embedded null character no longer terminates the format string. This fixes also gh-78662 and gh-124531.
* gh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125626)Wulian2024-10-171-1/+1
|
* gh-123370: Fix the canvas not clearing after running turtledemo.clock (#123457)Wulian2024-10-172-13/+21
| | | | Rewriting the day and date every tick somehow prevented them from being removed either by clicking STOP or loading another example. The solution is to rewrite them only when they change.
* GH-99108: Make vectorized versions of Blake2 available on x86, too (#125244)Jonathan Protzenko2024-10-1712-359/+619
| | | | | | Accomplished by updating HACL* vendored code from hacl-star/hacl-star@a6a09496d9cff652b567d26f2c3ab012321b632a to hacl-star/hacl-star@315a9e491d2bc347b9dae99e0ea506995ea84d9d Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Zachary Ware <zach@python.org>
* gh-125644: Update `locations.md` reference (#125645)Emmanuel Ferdman2024-10-171-1/+1
| | | Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
* gh-123153: Fix PGO builds with free-threading on Windows (#125607)Michael Droettboom2024-10-171-6/+14
| | | | | * gh-123153: Fix PGO builds with free-threading * Redo how the #define works
* gh-95836: Add custom type converter examples to argparse tutorial (GH-125376)Savannah Ostrowski2024-10-171-0/+47
|
* gh-125542: Deprecate prefix_chars in ArgumentParser.add_argument_group() ↵Savannah Ostrowski2024-10-176-2/+52
| | | | (GH-125563)
* GH-99749: Add optional feature to suggest correct names (ArgumentParser) ↵Savannah Ostrowski2024-10-174-23/+144
| | | | (GH-124456)
* gh-124694: Add concurrent.futures.InterpreterPoolExecutor (gh-124548)Eric Snow2024-10-1612-38/+826
| | | | | | | | | | | | This is an implementation of InterpreterPoolExecutor that builds on ThreadPoolExecutor. (Note that this is not tied to PEP 734, which is strictly about adding a new stdlib module.) Possible future improvements: * support passing a script for the initializer or to submit() * support passing (most) arbitrary functions without pickling * support passing closures * optionally exec functions against __main__ instead of the their original module
* gh-125620: Remove unnecessary import of subprocess in spawnv_passfds (#125624)Furkan Onder2024-10-161-1/+0
| | | Remove unnecessary import of subprocess in multiprocessing.util.spawnv_passfds.
* gh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)Steve Dower2024-10-162-3/+8
|
* gh-115382: Fix cross compiles when host and target use same SOABIVincent Fazio2024-10-166-3/+19
| | | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-125615: Fix grammar nit in tutorial's interactive interpreter appendix ↵Cornelius Roemer2024-10-161-1/+1
| | | | | (GH-125617) Replace "without ... nor" with "with neither ... nor"
* gh-125451: Fix deadlock in ProcessPoolExecutor shutdown (#125492)Sam Gross2024-10-163-32/+23
| | | | | | | | | | There was a deadlock when `ProcessPoolExecutor` shuts down at the same time that a queueing thread handles an error processing a task. Don't use `_shutdown_lock` to protect the `_ThreadWakeup` pipes -- use an internal lock instead. This fixes the ordering deadlock where the `ExecutorManagerThread` holds the `_shutdown_lock` and joins the queueing thread, while the queueing thread is attempting to acquire the `_shutdown_lock` while closing the `_ThreadWakeup`.
* CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (#125592)Kirill Podoprigora2024-10-163-5/+3
| | | | | * Bump mypy to 1.12 & Python to 3.13 * Remove unnecessary `type: ignore`
* gh-125584: Require network resource in ↵Michał Górny2024-10-161-0/+1
| | | | ``test_urllib2.HandlerTests.test_ftp_error`` (#125586)
* gh-125444: Fix illegal instruction for older Arm architectures (#125574)Diego Russo2024-10-163-3/+4
| | | | | | | | On Arm v5 it is not possible to get the thread ID via c13 register hence the illegal instruction. The c13 register started to provide thread ID since Arm v6K architecture variant. Other variants of Arm v6 (T2, Z and base) don’t provide the thread ID via c13. For the sake of simplicity we group v5 and v6 together and consider that instructions for Arm v7 only.
* gh-125217: Turn off optimization around_PyEval_EvalFrameDefault to avoid ↵Michael Droettboom2024-10-161-0/+14
| | | | MSVC crash (#125477)
* gh-124872: Replace enter/exit events with "switched" (#125532)Kirill Podoprigora2024-10-166-114/+118
| | | | | | | | | | | | | | | | | | | | | | | | | Users want to know when the current context switches to a different context object. Right now this happens when and only when a context is entered or exited, so the enter and exit events are synonymous with "switched". However, if the changes proposed for gh-99633 are implemented, the current context will also switch for reasons other than context enter or exit. Since users actually care about context switches and not enter or exit, replace the enter and exit events with a single switched event. The former exit event was emitted just before exiting the context. The new switched event is emitted after the context is exited to match the semantics users expect of an event with a past-tense name. If users need the ability to clean up before the switch takes effect, another event type can be added in the future. It is not added here because YAGNI. I skipped 0 in the enum as a matter of practice. Skipping 0 makes it easier to troubleshoot when code forgets to set zeroed memory, and it aligns with best practices for other tools (e.g., https://protobuf.dev/programming-guides/dos-donts/#unspecified-enum). Co-authored-by: Richard Hansen <rhansen@rhansen.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* Merge remote-tracking branch 'upstream/main'Hugo van Kemenade2024-10-157-9/+86
|\
| * Update verison options in crash issue template (GH-125555)Zachary Ware2024-10-151-1/+1
| |
| * Issue template: Remove 3.8 and add 3.14 version (#125552)Kirill Podoprigora2024-10-151-1/+1
| |
| * gh-58956: Set f_trace on frames with breakpoints after setting a new ↵Tian Gao2024-10-153-0/+39
| | | | | | | | breakpoint (#124454)
| * gh-125115: Pass unknown pdb command line args to script instead of fail ↵Tian Gao2024-10-153-7/+45
| | | | | | | | | | (#125424) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* | Post 3.14.0a1Hugo van Kemenade2024-10-151-1/+1
| |
* | Python 3.14.0a1v3.14.0a1Hugo van Kemenade2024-10-15645-1993/+7739
|/
* gh-124218: Use per-thread refcounts for code objects (#125216)Sam Gross2024-10-1511-76/+119
| | | | | | | Use per-thread refcounting for the reference from function objects to their corresponding code object. This can be a source of contention when frequently creating nested functions. Deferred refcounting alone isn't a great fit here because these references are on the heap and may be modified by other libraries.
* gh-92953: Improve nextpool/prevpool comment. (gh-125545)Neil Schemenauer2024-10-151-2/+2
| | | | The meaning of these links depends on which list the pool is part of. They are only the same size class if on the "usedpools" list.
* gh-125206: Bug in ctypes with old libffi is fixed (#125322)Mikhail Efimov2024-10-1510-16/+121
| | | | | | Workaround for old libffi versions is added. Module ctypes now supports C11 double complex only with libffi >= 3.3.0. Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* gh-124375: Avoid calling `_PyMem_ProcessDelayed` on other thread states ↵Sam Gross2024-10-152-6/+13
| | | | | | | | | | | (#124459) This fixes a crash when running the PyO3 test suite on the free-threaded build. The `qsbr` field is initialized after the `PyThreadState` is added to the interpreter's linked list -- it might still be NULL. Instead, we "steal" the queue of to-be-freed memory blocks. This is always initialized (possibly empty) and protected by the stop the world pause.
* gh-125522 : add explicit exception types to bare excepts in tests (#125523)Irit Katriel2024-10-1511-38/+38
|