Skip to content

gh-149083: use sentinel to fix _functools.reduce() signature#149591

Open
skirpichev wants to merge 3 commits intopython:mainfrom
skirpichev:use-sentinel-in-c-reduce/149083
Open

gh-149083: use sentinel to fix _functools.reduce() signature#149591
skirpichev wants to merge 3 commits intopython:mainfrom
skirpichev:use-sentinel-in-c-reduce/149083

Conversation

@skirpichev
Copy link
Copy Markdown
Member

@skirpichev skirpichev commented May 9, 2026

@skirpichev skirpichev changed the title gh-149536: use sentinel to fix _functools.reduce() signature gh-149083: use sentinel to fix _functools.reduce() signature May 9, 2026
@skirpichev skirpichev force-pushed the use-sentinel-in-c-reduce/149083 branch from 6c65b61 to bbae869 Compare May 9, 2026 04:29
@skirpichev skirpichev marked this pull request as ready for review May 9, 2026 09:23
@skirpichev skirpichev requested a review from rhettinger as a code owner May 9, 2026 09:23
@skirpichev skirpichev requested a review from JelleZijlstra May 9, 2026 11:03
@skirpichev
Copy link
Copy Markdown
Member Author

CC @JelleZijlstra

AFAIK, it's the first case of using sentinel's in C extensions. I used it just to fix signature, NULL is fine as C default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants