summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* gh-111625: Fix link to Info-ZIP homepage (#111626)partev2023-11-022-4/+4
|
* build(deps): bump hypothesis from 6.87.1 to 6.88.1 in /Tools (#111596)dependabot[bot]2023-11-021-1/+1
| | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.87.1 to 6.88.1. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.87.1...hypothesis-python-6.88.1) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump actions/setup-node from 3 to 4 (#111594)dependabot[bot]2023-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * build(deps): bump actions/setup-node from 3 to 4 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump to Node.js 20 Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 ↵Irit Katriel2023-11-0218-339/+362
| | | | (#111459)
* gh-108082: Use PyErr_FormatUnraisable() (GH-111580)Serhiy Storchaka2023-11-0218-114/+83
| | | | | | Replace most of calls of _PyErr_WriteUnraisableMsg() and some calls of PyErr_WriteUnraisable(NULL) with PyErr_FormatUnraisable(). Co-authored-by: Victor Stinner <vstinner@python.org>
* Remove unnecessary includes (GH-111633)Serhiy Storchaka2023-11-022-2/+0
|
* GH-110894: Call loop exception handler for exceptions in client_connected_cb ↵Kumar Aditya2023-11-023-0/+41
| | | | | (#111601) Call loop exception handler for exceptions in `client_connected_cb` of `asyncio.start_server` so that applications can handle it.
* gh-111544: Fix mimalloc build on AIX (#111593)Ayappan Perumal2023-11-021-2/+2
|
* GH-111435: Add Support for Sharing True and False Between Interpreters ↵Anthony Shaw2023-11-024-4/+33
| | | | | (gh-111436) This only affects users of the APIs in pycore_crossinterp.h (AKA _xxsubinterpretersmodule.c and _xxinterpchannels.c).
* gh-76785: Crossinterp utils additions (gh-111530)Eric Snow2023-11-0111-471/+1308
| | | | | | | | | | | | This moves several general internal APIs out of _xxsubinterpretersmodule.c and into the new Python/crossinterp.c (and the corresponding internal headers). Specifically: * _Py_excinfo, etc.: the initial implementation for non-object exception snapshots (in pycore_pyerrors.h and Python/errors.c) * _PyXI_exception_info, etc.: helpers for passing an exception beween interpreters (wraps _Py_excinfo) * _PyXI_namespace, etc.: helpers for copying a dict of attrs between interpreters * _PyXI_Enter(), _PyXI_Exit(): functions that abstract out the transitions between one interpreter and a second that will do some work temporarily Again, these were all abstracted out of _xxsubinterpretersmodule.c as generalizations. I plan on proposing these as public API at some point.
* gh-111089: Use PyUnicode_AsUTF8() in getargs.c (#111620)Victor Stinner2023-11-011-6/+2
| | | | Replace PyUnicode_AsUTF8AndSize() with PyUnicode_AsUTF8() to remove the explicit check for embedded null characters.
* High level docs for the VM state (#111621)Guido van Rossum2023-11-011-0/+90
|