summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* gh-41872: Fix quick extraction of module docstrings from a file in pydoc ↵Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2025-01-081-0/+3
| | | | | | | | | (GH-127520) It now supports docstrings with single quotes, escape sequences, raw string literals, and other Python syntax. Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-127809: Fix the JIT's understanding of ** (GH-127844)Brandt Bucher2025-01-081-0/+2
|
* gh-128552: fix refcycles in eager task creation (#128553)Thomas Grainger2025-01-071-0/+1
|
* gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284)Stephen Morton2025-01-072-0/+5
| | | | | | | | * Allow DOMParser.parse() to correctly handle DOMInputSource instances that only have a systemId attribute set. * Fix DOMEntityResolver.resolveEntity(), which was broken by the Python 3.0 transition. * Add Lib/test/test_xml_dom_xmlbuilder.py with few tests.
* gh-128146: Exclude os/log.h import on older macOS versions. (#128165)Russell Keith-Magee2025-01-071-0/+2
| | | | Reworks the handling of Apple system log handling to account for older macOS versions that don't provide os-log.
* gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors ↵Zanie Blue2025-01-071-0/+2
| | | | | | | | | | | | | (gh-128511) * Add `-skip-funcs` to BOLT options to fix computed goto errors Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com> * NEWS --------- Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
* gh-128559: Remove typing import from asyncio.timeouts (#128560)Michael H2025-01-061-0/+1
|
* gh-127350: Add Py_fopen() and Py_fclose() functions (#127821)Victor Stinner2025-01-061-0/+5
|
* gh-128340: add thread safe handle for `loop.call_soon_threadsafe` (#128369)Kumar Aditya2025-01-061-0/+1
| | | Adds `_ThreadSafeHandle` to be used for callbacks scheduled with `loop.call_soon_threadsafe`.
* gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has ↵RanKKI2025-01-062-0/+4
| | | | | | | | | | | extra text (#127547) Up to this point message handling has been very strict with regards to content encoding values: mixed case was accepted, but trailing blanks or other text would cause decoding failure, even if the first token was a valid encoding. By Postel's Rule we should go ahead and decode as long as we can recognize that first token. We have not thought of any security or backward compatibility concerns with this fix. This fix does introduce a new technique/pattern to the Message code: we look to see if the header has a 'cte' attribute, and if so we use that. This effectively promotes the header API exposed by HeaderRegistry to an API that any header parser "should" support. This seems like a reasonable thing to do. It is not, however, a requirement, as the string value of the header is still used if there is no cte attribute. The full fix (ignore any trailing blanks or blank-separated trailing text) applies only to the non-compat32 API. compat32 is only fixed to the extent that it now ignores trailing spaces. Note that the HeaderRegistry parsing still records a HeaderDefect if there is extra text. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-128137: Update PyASCIIObject to handle interned field with the atomic ↵Donghee Na2025-01-051-0/+2
| | | | operation (gh-128196)
* gh-128152: Argument Clinic: ignore pre-processor directives inside C ↵Erlend E. Aasland2025-01-041-0/+2
| | | | comments (#128464)
* gh-128400: Only show the current thread in `faulthandler` if the GIL is ↵Peter Bierma2025-01-031-0/+2
| | | | disabled (GH-128425)
* gh-127903: Fix a crash on debug builds when calling ↵Alexander Shadchin2025-01-031-0/+2
| | | | `Objects/unicodeobject::_copy_characters`` (#127876)
* gh-112015: Implement `ctypes.memoryview_at()` (GH-112018)Rian Hunter2025-01-031-0/+5
| | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-128317: Highlight today in colour in calendar CLI output (#128318)Hugo van Kemenade2025-01-031-0/+2
| | | | Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-115765: Upgrade to GNU Autoconf 2.72 (#128411)Erlend E. Aasland2025-01-031-0/+2
|
* gh-127529: Correct asyncio's `accept_connection` behaviour for handling ↵jb21702025-01-031-0/+4
| | | | | `ConnectionAbortedError` (#127532) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-128104: Remove `Py_STRFTIME_C99_SUPPORT`; require C99-compliant strftime ↵Zanie Blue2025-01-031-0/+3
| | | | (#128106)
* gh-128400: Stop-the-world when manually calling `faulthandler` (GH-128422)Peter Bierma2025-01-021-0/+2
|
* gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() ↵Zhikang Yan2025-01-021-0/+2
| | | | | (GH-128015) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-126624: Expose error code ``XML_ERROR_NOT_STARTED`` of Expat >=2.6.4 ↵Sebastian Pipping2025-01-021-0/+2
| | | | | | | | | (#126625) Expose error code ``XML_ERROR_NOT_STARTED`` in `xml.parsers.expat.errors` which was introduced in Expat 2.6.4. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-124130: Fix a bug in matching regular expression \B in empty string ↵Serhiy Storchaka2025-01-021-0/+4
| | | | (GH-127007)
* gh-123925: Fix building curses on platforms without libncursesw (GH-128405)Serhiy Storchaka2025-01-021-0/+2
|
* gh-95371: Add support for other image formats(e.g. PNG) to the turtle… ↵Shin-myoung-serp2025-01-021-0/+1
| | | | | | | | (#95378) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-121676: Raise a ``DeprecationWarning`` if the Python implementation of ↵Kirill Podoprigora2025-01-011-0/+3
| | | | | | | | | | | | | | | | | | ``functools.reduce`` is called with `function` or `sequence` as a keyword args (#121677) Python implementation of `functools` allows calling `reduce` with `function` or `sequence` as keyword args. This doesn't match behavior of our C accelerator and our documentation for `functools.reduce` states that `function`and `sequence` are positional-only arguments. Now calling a Python implementation of `functools.reduce` with `function` or `sequence` as keyword args would raise a `DeprecationWarning` and is planned to be prohibited in Python 3.16. Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-88834: Unify the instance check for typing.Union and types.UnionType ↵Serhiy Storchaka2024-12-311-0/+3
| | | | | | (GH-128363) Union now uses the instance checks against its parameters instead of the subclass checks.
* gh-128118: Speed up copy.copy with fast lookup for atomic and container ↵Pieter Eendebak2024-12-301-0/+2
| | | | types (#128119)
* gh-128321: Set LIBS instead of LDFLAGS when checking sqlite3 requirements ↵Zanie Blue2024-12-301-0/+3
| | | | | (#128322) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-123424: add `ZipInfo._for_archive` to set suitable default properties ↵Bénédikt Tran2024-12-291-0/+1
| | | | | | | (#123429) --------- Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* gh-128192: support HTTP sha-256 digest authentication as per RFC-7617 ↵Calvin Bui2024-12-282-0/+3
| | | | | | | | | (GH-128193) support sha-256 digest authentication Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-127586: multiprocessing.Pool does not properly restore blocked signals ↵Stephen Hansen2024-12-271-0/+3
| | | | | | | | | | | | | | (try 2) (GH-128011) Correct pthread_sigmask in resource_tracker to restore old signals Using SIG_UNBLOCK to remove blocked "ignored signals" may accidentally cause side effects if the calling parent already had said signals blocked to begin with and did not intend to unblock them when creating a pool. Use SIG_SETMASK instead with the previous mask of blocked signals to restore the original blocked set. Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-127537: Add __class_getitem__ to the python implementation of ↵CF Bolz-Tereick2024-12-271-0/+5
| | | | functools.partial (#127537)
* gh-126868: Add freelist for compact ints to `_PyLong_New` (#128181)Pieter Eendebak2024-12-261-0/+1
| | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-124761: add `socket.SO_REUSEPORT_LB` (#124961)Thomas Grainger2024-12-261-0/+1
|
* gh-128035: Add ssl.HAS_PHA to detect libssl PHA support (GH-128036)Will Childs-Klein2024-12-241-0/+1
| | | | | | * Add ssl.HAS_PHA to detect libssl Post-Handshake-Auth support Co-authored-by: Tomas R. <tomas.roun8@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-127847: Fix position in the special-cased zipfile seek (#127856)Dima Ryazanov2024-12-241-0/+1
| | | | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* gh-114203: Optimise simple recursive critical sections (#128126)T. Wouters2024-12-231-0/+1
| | | | | | | Add a fast path to (single-mutex) critical section locking _iff_ the mutex is already held by the currently active, top-most critical section of this thread. This can matter a lot for indirectly recursive critical sections without intervening critical sections.
* gh-126180: Remove getopt and optparse deprecation notices (GH-126227)Alyssa Coghlan2024-12-231-0/+6
| | | | | | | | | | | | | * Remove getopt and optparse deprecation notices * Add new docs sections for command line app helper libraries * Add guidance on choosing a CLI parsing library to the optparse docs * Link to the new guidance from the argparse and getopt docs * Reword intro in docs section for superseded stdlib modules * Reframe the optparse->argparse guide as a migration guide rather than as an upgrade guide --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-100384: Error on `unguarded-availability` in macOS builds (#128155)Zanie Blue2024-12-221-0/+2
| | | Generate a build error on ``unguarded-availability`` in portable macOS builds (i.e. using MACOSX_DEPLOYMENT_TARGET), preventing invalid use of symbols that are not available in older versions of the OS.
* gh-112328: Make EnumDict usable on its own and document it (GH-123669)Petr Viktorin2024-12-201-0/+1
| | | | | Co-authored-by: Rafi <rafi.promit@gmail.com> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-128049: Fix type confusion bug with the return value of a custom ↵Nico-Posada2024-12-201-0/+5
| | | | ExceptionGroup split function (#128079)
* GH-127705: Add debug mode for `_PyStackRef`s inspired by HPy debug mode ↵Mark Shannon2024-12-201-0/+4
| | | | (GH-128121)
* gh-127946: Use a critical section for `CFuncPtr` attributes (GH-128109)Peter Bierma2024-12-201-0/+2
|
* gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (#128047)Shantanu2024-12-201-0/+1
| | | | | I missed the extra `PyModule_Check` in #127660 because I was looking at 3.12 as the base implementation for import from. This meant that I missed the `PyModuleCheck` introduced in #112661.
* gh-127274: Defer nested methods (#128012)mpage2024-12-191-0/+3
| | | | | | | Methods (functions defined in class scope) are likely to be cleaned up by the GC anyway. Add a new code flag, `CO_METHOD`, that is set for functions defined in a class scope. Use that when deciding to defer functions.
* gh-128062: Fix the font size and shortcut display of the turtledemo menu ↵Zhikang Yan2024-12-191-0/+2
| | | | | | | | | (#128063) Leave the font of the menu bar the default to keep it consistent with the rest of the world. Display the shortcut keys in the right way, using the 'accelerator' option. --------- Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* GH-122548: Implement branch taken and not taken events for sys.monitoring ↵Mark Shannon2024-12-191-0/+4
| | | | (GH-122564)
* gh-128008: Add `PyWeakref_IsDead()` (GH-128009)Sam Gross2024-12-191-0/+2
| | | | | | | | | The `PyWeakref_IsDead()` function tests if a weak reference is dead without any side effects. Although you can also detect if a weak reference is dead using `PyWeakref_GetRef()`, that function returns a strong reference that must be `Py_DECREF()`'d, which can introduce side effects if the last reference is concurrently dropped (at least in the free threading build).
* gh-127951: Add build option to enable pystats on Windows (GH-127952)Pieter Eendebak2024-12-191-0/+1
|