cpython/Misc/NEWS.d/next
Martijn Pieters edb59d5718
bpo-38364: unwrap partialmethods just like we unwrap partials (#16600)
* bpo-38364: unwrap partialmethods just like we unwrap partials

The inspect.isgeneratorfunction, inspect.iscoroutinefunction and inspect.isasyncgenfunction already unwrap functools.partial objects, this patch adds support for partialmethod objects as well.

Also: Rename _partialmethod to __partialmethod__.
Since we're checking this attribute on arbitrary function-like objects,
we should use the namespace reserved for core Python.

---------

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-02-15 12:08:45 +01:00
..
Build gh-114099: Refactor configure and Makefile to accomodate non-macOS frameworks (#115120) 2024-02-13 00:10:24 +01:00
C API gh-114626: add PyCFunctionFast and PyCFunctionFastWithKeywords (GH-114627) 2024-02-15 11:05:20 +01:00
Core and Builtins gh-112050: Make collections.deque thread-safe in free-threaded builds (#113830) 2024-02-15 09:22:47 +01:00
Documentation gh-115233: Fix an example in the Logging Cookbook (GH-115325) 2024-02-12 18:24:45 +02:00
IDLE gh-103820: IDLE: Do not interpret buttons 4/5 as scrolling on non-X11 (GH-103821) 2024-02-02 10:38:43 +00:00
Library bpo-38364: unwrap partialmethods just like we unwrap partials (#16600) 2024-02-15 12:08:45 +01:00
macOS GH-87804: Fix counter overflow in statvfs on macOS (#99570) 2024-02-10 11:16:45 +01:00
Security gh-115399: Upgrade bundled libexpat to 2.6.0 (#115431) 2024-02-14 16:29:06 +00:00
Tests gh-114099: Add test exclusions to support running the test suite on iOS (#114889) 2024-02-05 01:04:57 +01:00
Tools-Demos GH-113516: don't set LDSHARED when building for WASI (GH-115495) 2024-02-15 00:51:23 +00:00
Windows gh-89240: Enable multiprocessing on Windows to use large process pools (GH-107873) 2024-02-13 00:28:35 +00:00