summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149)Serhiy Storchaka2024-07-251-0/+3
| | | | | | Serializing objects with complex __qualname__ (such as unbound methods and nested classes) by name no longer involves serializing parent objects by value in pickle protocols < 4.
* gh-113785: csv: fields starting with escapechar are not quoted (GH-122110)Mikołaj Kuranowski2024-07-251-0/+1
|
* gh-122208: Don't delivery PyDict_EVENT_ADDED until it can't fail (#122207)Dino Viehland2024-07-241-0/+1
| | | Don't delivery PyDict_EVENT_ADDED until it can't fail
* Fix typo in news document (GH-122209)Xie Yanbo2024-07-241-1/+1
|
* gh-122029: Log call events in sys.setprofile when it's a method with c ↵Tian Gao2024-07-231-0/+1
| | | | | function (GH-122072) Log call events in sys.setprofile when it is a method with a C function.
* gh-119180: Add `annotationlib` module to support PEP 649 (#119891)Jelle Zijlstra2024-07-231-0/+4
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-122129: Improve support of method descriptors and wrappers in the help ↵Serhiy Storchaka2024-07-231-0/+1
| | | | title (GH-122157)
* gh-122163: Add notes for JSON serialization errors (GH-122165)Serhiy Storchaka2024-07-231-0/+2
| | | This allows to identify the source of the error.
* gh-122088: Copy the coroutine status of the underlying callable in ↵Sebastian Rittau2024-07-231-0/+3
| | | | | | `@warnings.deprecated` (#122086) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-121996: Introduce --disable-safety and --enable-slower-safety options ↵Donghee Na2024-07-231-0/+2
| | | | | | | | | | | | | (#122054) * gh-121996: Introduce --disable-safty and --enable-slower-safty * Update GA * fix * Address code review * Update CI
* gh-121637: Syntax error for optimized-away incorrect await (#121656)Jelle Zijlstra2024-07-221-0/+4
| | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-121795: Improve performance of set membership testing from set arguments ↵HarryLHW2024-07-221-0/+1
| | | | (#121796)
* gh-119698: deprecate ``symtable.Class.get_methods`` (#121902)Bénédikt Tran2024-07-221-0/+3
|
* gh-121957: Emit audit events for `python -i` and `python -m asyncio` (GH-121958)Łukasz Langa2024-07-221-0/+3
| | | | Relatedly, emit the `cpython.run_startup` event from the Python version of `PYTHONSTARTUP` handling.
* gh-120522: Apply App Store compliance patch during installation (#121947)Russell Keith-Magee2024-07-211-0/+2
| | | Adds a --with-app-store-compliance configuration option that patches out code known to be an issue with App Store review processes. This option is applied automatically on iOS, and optionally on macOS.
* GH-73991: Add `pathlib.Path.rmtree()` (#119060)Barney Gale2024-07-201-0/+1
| | | | | | | | | | | Add a `Path.rmtree()` method that removes an entire directory tree, like `shutil.rmtree()`. The signature of the optional *on_error* argument matches the `Path.walk()` argument of the same name, but differs from the *onexc* and *onerror* arguments to `shutil.rmtree()`. Consistency within pathlib is probably more important. In the private pathlib ABCs, we add an implementation based on `walk()`. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-122026: Fix identification of mismatched parentheses inside f-strings ↵Pablo Galindo Salgado2024-07-191-0/+2
| | | | (#122028)
* gh-118830: Bump pickle.DEFAULT_PROTOCOL to 5 (GH-119340)Rodrigo Oliveira2024-07-191-0/+1
|
* gh-121905: Consistently use "floating-point" instead of "floating point" ↵Serhiy Storchaka2024-07-198-8/+8
| | | | (GH-121907)
* gh-82017: Support as_integer_ratio() in the Fraction constructor (GH-120271)Serhiy Storchaka2024-07-191-0/+2
| | | | | Any objects that have the as_integer_ratio() method (e.g. numpy.float128) can now be converted to a fraction.
* gh-120289: Disallow disable() and clear() in external timer to prevent ↵Tian Gao2024-07-181-0/+2
| | | | use-after-free (#120297)
* gh-112301: Add fortify source level 3 to default compiler options (gh-121520)Nate Ohlson2024-07-181-0/+2
|
* gh-120930: Remove extra blank occuring in wrapped encoded words in email ↵Matthieu Caneill2024-07-181-0/+2
| | | | headers (GH-121747)
* gh-121921: Make bogus_code_obj.py crash the interpreter (#121922)Jelle Zijlstra2024-07-181-0/+2
|
* gh-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904)Alex Waygood2024-07-171-0/+3
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz (#121876)Terry Jan Reedy2024-07-171-0/+2
| | | | | | | Problem occurred when attribute xyz could not be pickled. Since this is not trivial to selectively fix, block all attributes (other than 'width'). IDLE does not access them and they are private implementation details.
* GH-120371: Add WASI SDK 22 support (GH-121870)Brett Cannon2024-07-161-0/+2
| | | Required disabling stub functions now provided by wasi-libc.
* gh-118934: Make PyEval_GetLocals return borrowed reference (#119769)Tian Gao2024-07-161-0/+1
| | | Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* gh-121860: Fix crash when materializing managed dict (#121866)Sam Gross2024-07-161-0/+1
| | | | The object's inline values may be marked invalid if the materialized dict was already initialized and then deleted.
* gh-121130: Fix f-string format specifiers with debug expressions (#121150)Pablo Galindo Salgado2024-07-161-0/+2
|
* gh-59022: Added tests for `pkgutil.extend_path` (#59022) (GH-121673)Andreas Stocker2024-07-161-0/+1
| | | | | This adds tests for the documented behaviour of `pkgutil.extend_path` regarding different argument types as well as for `*.pkg` files.
* gh-121160: Add some tests for readline.set_history_length (GH-121326)Petr Viktorin2024-07-161-0/+2
|
* gh-113993: Don't immortalize in PyUnicode_InternInPlace; keep immortalizing ↵Petr Viktorin2024-07-161-0/+12
| | | | | | | | | | | | | | | | | in other API (#121364) * Switch PyUnicode_InternInPlace to _PyUnicode_InternMortal, clarify docs * Document immortality in some functions that take `const char *` This is PyUnicode_InternFromString; PyDict_SetItemString, PyObject_SetAttrString; PyObject_DelAttrString; PyUnicode_InternFromString; and the PyModule_Add convenience functions. Always point out a non-immortalizing alternative. * Don't immortalize user-provided attr names in _ctypes
* gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal ↵Petr Viktorin2024-07-161-0/+2
| | | | | | (GH-121358) Older stable ABI extensions are allowed to make immortal objects mortal. Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
* gh-120522: Revert "Add a `--with-app-store-compliance` configure option to ↵Ned Deily2024-07-161-2/+0
| | | | | | patch out problematic code" (gh-120984) (#121844) This reverts commit 48cd104b0cf05dad8958efa9cb9666c029ef9201 prior to the release of 3.13.0b4 to allow for additional review time.
* gh-120831: Increase the default minimum supported iOS version to 13.0 (#121250)Russell Keith-Magee2024-07-161-0/+1
| | | | | Increases the default minimum iOS version to 13.0. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-121295: Fix blocked console after interrupting a long paste (GH-121815)Marta Gómez Macías2024-07-151-0/+2
|
* gh-121814: Only check f_trace_opcodes if Python frame exists (#121818)Tian Gao2024-07-151-0/+1
| | | Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
* gh-121794: Don't set `ob_tid` to zero in fast-path dealloc (#121799)Sam Gross2024-07-151-0/+2
| | | | | | | | | | | | 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-121245: Refactor site.register_readline() (GH-121659)Sergey B Kirpichev2024-07-151-0/+3
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754)Rodrigo Girão Serrão2024-07-151-0/+1
|
* gh-84978: Add float.from_number() and complex.from_number() (GH-26827)Serhiy Storchaka2024-07-151-0/+1
| | | | | | 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-151-0/+1
|
* gh-57141: Make shallow argument to filecmp.dircmp keyword-only (#121767)Jelle Zijlstra2024-07-141-0/+2
| | | | | | 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.
* gh-121731: Fix mimalloc compile error on GNU/Hurd (#121732)Samuel Thibault2024-07-141-0/+1
|
* gh-121749: Fix discrepancy in docs for `PyModule_AddObjectRef` (GH-121750)Dominic H2024-07-141-0/+1
|
* gh-121562: optimized hex_from_char (#121563)Bruno Lima2024-07-141-0/+2
| | | | | 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-121657: Display correct error message for yield from outside of a ↵Gregor2024-07-131-0/+2
| | | | | | 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-121499: Fix multi-line history rendering in the REPL (#121531)Pablo Galindo Salgado2024-07-131-0/+2
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-121609: Fix pasting of characters containing unicode character joiner ↵Marta Gómez Macías2024-07-131-0/+1
| | | | (#121667)