summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-111485: Allow arbitrary annotations on instructions and micro-ops. ↵Mark Shannon2023-11-0710-63/+114
| | | | (GH-111697)
* gh-79932: raise exception if frame.clear() is called on a suspended frame ↵Irit Katriel2023-11-075-7/+27
| | | | (#111792)
* gh-110395: test: assert after the child dies. (#111816)Gregory P. Smith2023-11-071-1/+1
| | | based on review from Victor Stinner. I already made this edit in the 3.12 backport PR.
* gh-111729: update generic syntax for `typing.Concatenate` sample code in ↵方糖2023-11-071-5/+2
| | | | | `Doc/library/typing.rst` (#111734) use new generic syntax
* GH-111485: Make BEFORE_WITH a uop (GH-111812)Brandt Bucher2023-11-075-7/+56
|
* gh-76785: Move _Py_excinfo Functions Out of the Internal C-API (gh-111715)Eric Snow2023-11-064-199/+134
| | | | | I added _Py_excinfo to the internal API (and added its functions in Python/errors.c) in gh-111530 (9322ce9). Since then I've had a nagging sense that I should have added the type and functions in its own PR. While I do plan on using _Py_excinfo outside crossinterp.c very soon (see gh-111572/gh-111573), I'd still feel more comfortable if the _Py_excinfo stuff went in as its own PR. Hence, here we are. (FWIW, I may combine that with gh-111572, which I may, in turn, combine with gh-111573. We'll see.)
* gh-111698: Restrict Py_mod_multiple_interpreters to 3.12+ Under ↵Eric Snow2023-11-061-1/+3
| | | | | | | Py_LIMITED_API (gh-111707) This should have been done in gh-104148. (A similar fix has already be done for that slot's value macros, and backported to 3.12. See gh-110968.)
* simplify code to pop exception in frame_setlineno (#111702)Irit Katriel2023-11-061-5/+2
|
* gh-96954: Use skip_if_missing in test_makeunicodedata (GH-111764)Dennis Sweeney2023-11-061-1/+2
| | | skip_if_missing in test_makeunicodedata
* GH-111772: Specialize slot loads and stores for `_Py_T_OBJECT` (GH-111773)Mark Shannon2023-11-062-3/+4
|
* GH-111646: Simplify optimizer, by compacting uops when making executor. ↵Mark Shannon2023-11-062-117/+119
| | | | (GH-111647)
* gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out ↵Masayuki Moriyama2023-11-063-3/+53
| | | | of bounds (gh-111695)
* gh-109466: Add ipv6_mapped property to IPv4Address (#109467)Charles Machalow2023-11-055-0/+32
| | | | | Adds the `IPv4Address.ipv6_mapped` property. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111495: Add tests for PyComplex C API (GH-111591)Sergey B Kirpichev2023-11-052-0/+238
|
* gh-111495: Add tests for PyFloat C API (GH-111624)Sergey B Kirpichev2023-11-052-0/+191
|
* gh-111747: DOC: fix moved link to Documentation Translations (#111748)partev2023-11-051-1/+1
| | | | Update old link in bugs.rst to the table of doc translators and translation repositories at Github.
* gh-111719: Add extra check for alias command (#111720)Tian Gao2023-11-044-7/+51
|
* gh-110395: invalidate open kqueues after fork (#110517)Davide Rizzo2023-11-043-7/+157
| | | Invalidate open select.kqueue instances after fork as the fd will be invalid in the child.
* gh-80675: Set `f_trace_lines = True` on all frames upon `pdb.set_trace()` ↵Tian Gao2023-11-043-0/+32
| | | | (#110881)
* gh-96954: use a directed acyclic word graph for storing the unicodedata ↵CF Bolz-Tereick2023-11-048-30444/+18134
| | | | | | | codepoint names (#97906) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* GH-110829: Ensure Thread.join() joins the OS thread (#110848)Antoine Pitrou2023-11-0414-98/+671
| | | | | | | Joining a thread now ensures the underlying OS thread has exited. This is required for safer fork() in multi-threaded processes. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-111666: Speed up `BaseExceptionGroup.{derive,split,subgroup}` (#111667)Nikita Sobolev2023-11-042-20/+9
|
* gh-108303: Move `zip` and `tar` archives to `Lib/test/archivetestdata` (#111549)Nikita Sobolev2023-11-0414-23/+24
|
* gh-111159: Fix `SyntaxError` doctests for non-builtin exception classes ↵Nikita Sobolev2023-11-043-1/+24
| | | | (#111541)
* gh-111495: Test C API functions with extreme sizes and indices (GH-111631)Serhiy Storchaka2023-11-044-40/+134
|
* gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (#111725)Nikita Sobolev2023-11-041-0/+4
| | | Close database connection explicitly in test cleanup.
* gh-111644: Fix asyncio test_unhandled_exceptions() (#111713)Victor Stinner2023-11-041-2/+3
| | | | | | | | | Fix test_unhandled_exceptions() of test_asyncio.test_streams: break explicitly a reference cycle. Fix also StreamTests.tearDown(): the loop must not be closed explicitly, but using set_event_loop() which takes care of shutting down the executor with executor.shutdown(wait=True). BaseEventLoop.close() calls executor.shutdown(wait=False).
* gh-111644: Fix support threading_cleanup() (#111714)Victor Stinner2023-11-041-25/+28
| | | | | | | | | | | | | Copy the list of dangling threads to make sure that the list of "Dangling thread" is complete. Previously, the list was incomplete if threads completed just before the list was displayed. Changes: * Rewrite the warning to make it easier to understand. * Use support.sleeping_retry(). * threading_cleanup() no longer copies threading._dangling, but only counts the number of dangling thread. * Remove support.gc_support() call.
* gh-109649: Fix test_os.test_process_cpu_count_affinity() (#111689)Victor Stinner2023-11-031-4/+4
| | | | | | | | | | When CPUs are isolated on Linux, os.process_cpu_count() is smaller than os.cpu_count(). Fix the test for this case. Example with "isolcpus=5,11 rcu_nocbs=5,11" options passed to a Linux command line to isolated two logical CPUs: $ ./python -c 'import os; print(os.process_cpu_count(), "/", os.cpu_count())' 10 / 12
* Add a fuzz target for `_elementtree.XMLParser._parse_whole` (#111477)Brad Larsen2023-11-0360-0/+623
| | | * Add a fuzzer for `_elementtree.XMLParser._parse_whole`
* gh-111684: Avoid a Compiler Warning (gh-111706)Eric Snow2023-11-031-0/+4
|
* gh-111506: Implement Py_SET_REFCNT() as opaque function in limited C API ↵Victor Stinner2023-11-036-2/+26
| | | | | | | | (#111508) In the limited C API version 3.13, Py_SET_REFCNT() function is now implemented as an opaque function call. Add _Py_SetRefcnt() to the stable ABI.
* gh-103615: Use local events for opcode tracing (GH-109472)Tian Gao2023-11-039-8/+114
| | | | | | | * Use local monitoring for opcode trace * Remove f_opcode_trace_set * Add test for setting f_trace_opcodes after settrace
* gh-111652: Fix --enable-pystats build (GH-111653)Michael Droettboom2023-11-031-0/+2
|
* CI: Make macOS Intel required to succeed (GH-110362)Hugo van Kemenade2023-11-031-1/+0
|
* docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888)lefp2023-11-031-0/+1
| | | docs: specify return value on success
* gh-111681: minor fixes to typing doctests; remove unused imports in ↵Nikita Sobolev2023-11-032-7/+6
| | | | | `test_typing` (#111682) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106168: Revert the "size before item" setting (#111683)scoder2023-11-033-4/+2
| | | | gh-106168: Update the size only after setting the item, to avoid temporary inconsistencies. Also remove the "what's new" sentence regarding the size setting since tuples cannot grow after allocation.
* gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and ↵Irit Katriel2023-11-0316-338/+342
| | | | frame state (#111648)
* gh-90026: support XATTRs on Cygwin (GH-105075)Philippe Cerfon2023-11-032-3/+10
|
* gh-111490: Make the exception type check in test_pyexpat more specific ↵Nikita Sobolev2023-11-031-1/+1
| | | | (GH-111491)
* gh-108082: Remove _PyErr_WriteUnraisableMsg() (GH-111643)Serhiy Storchaka2023-11-0313-149/+87
| | | | Replace the remaining calls with PyErr_FormatUnraisable().
* gh-54434: Make difflib.rst doctests pass. (#111677)Terry Jan Reedy2023-11-031-3/+5
|
* gh-111654: remove redundant decref in LOAD_FROM_DICT_OR_DEREF (#111655)AN Long2023-11-035-6/+12
|
* gh-76785: Minor Fixes in crossinterp.c (gh-111671)Eric Snow2023-11-031-126/+267
| | | There were a few corner cases I didn't handle properly in gh-111530, which I've noticed while working on a follow-up PR. This fixes those cases.
* Fix typo in documentation of `SysLogHandler.createSocket` (#111665)LoipesMas2023-11-021-3/+1
|
* gh-111663: Restore the Tier 2 uop count pystats (#111664)Michael Droettboom2023-11-021-0/+2
|
* gh-110892: Return NULL for `PyTrace_RETURN` events caused by an exception ↵Tian Gao2023-11-023-23/+49
| | | | (GH-110909)
* GH-109369 Add vectorcall to `PyLong_Type` (GH-111642)Mark Shannon2023-11-021-0/+25
|
* gh-111482: Use Argument Clinic for clock_gettime() (#111641)Victor Stinner2023-11-023-32/+142
| | | | | | | | | | | | | | | | | | Use Argument Clinic for time.clock_gettime() and time.clock_gettime_ns() functions. Benchmark on time.clock_gettime_ns(): import time import pyperf runner = pyperf.Runner() runner.timeit( 'clock_gettime_ns(CLOCK_MONOTONIC_COARSE)', setup='import time; clock_gettime_ns=time.clock_gettime_ns; CLOCK_MONOTONIC_COARSE=6', stmt='clock_gettime_ns(CLOCK_MONOTONIC_COARSE)') Result on Linux with CPU isolation: Mean +- std dev: [ref] 134 ns +- 1 ns -> [change] 55.7 ns +- 1.4 ns: 2.41x faster