Skip to content

Delete dead reduction promoter code - #121

Merged
SwayamInSync merged 1 commit into
numpy:mainfrom
ngoldbaum:delete-dead-code
Sep 15, 2026
Merged

SwayamInSync merged 1 commit into
numpy:mainfrom
ngoldbaum:delete-dead-code

Conversation

@ngoldbaum

Copy link
Copy Markdown
Member

These code paths have been dead since we removed the always-matching promoters last year. I replaced them with debug asserts stating the invariant.

@SwayamInSync SwayamInSync left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, merging this in!
Thanks Nathan!

new_op_dtypes[2] = &PyArray_BoolDType;
return 0;
}
assert(op_dtypes[0] != NULL);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, I didn't know that numpy in case of NULL, fills the 0th dtype slot with the Quad itself.

@SwayamInSync
SwayamInSync merged commit cb0ab45 into numpy:main Sep 15, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants