Skip to content

API: Remove legacy-inner-loop-selector#24271

Merged
charris merged 1 commit intonumpy:mainfrom
seberg:ufunc-internals-removal
Jul 27, 2023
Merged

API: Remove legacy-inner-loop-selector#24271
charris merged 1 commit intonumpy:mainfrom
seberg:ufunc-internals-removal

Conversation

@seberg
Copy link
Member

@seberg seberg commented Jul 27, 2023

Remove legacy-inner-loop-selector and clean up the masked one (This was effectivly removed a while ago, but a deprecation was added for ABI compatibility if compiling against a newer NumPy that still had the slot).

Removed the reservedX struct member docs, seems clear enough to not have them explicitly...

@seberg seberg force-pushed the ufunc-internals-removal branch from 441d65c to 823d5d9 Compare July 27, 2023 09:57
*out_needs_api = 1;

return 0;
}
Copy link
Member Author

@seberg seberg Jul 27, 2023

Choose a reason for hiding this comment

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

The default one works fine here. My guess is there was some historic reasons (maybe the needs api early on) of why it was explicit. Or just a micro-optimization, but if there is one loop to check that seems hardly necessary.

EDIT: Heureka: this must have pre-dated type-resolution. I.e. the loop selector was the promoter/type resolver. So this become unnecessary with the explicit type resolution step.

@seberg seberg added this to the 2.0.0 release milestone Jul 27, 2023
Remove legacy-inner-loop-selector and clean up the masked one
(This was effectivly removed a while ago, but a deprecation was added for
ABI compatibility if compiling against a newer NumPy that still had
the slot).

Removed the `reservedX` struct member docs, seems clear enough to not
have them explicitly...
@seberg seberg force-pushed the ufunc-internals-removal branch from 823d5d9 to 145065b Compare July 27, 2023 10:00
@charris charris merged commit 6647cfc into numpy:main Jul 27, 2023
@charris
Copy link
Member

charris commented Jul 27, 2023

Thanks Sebastian.

@seberg seberg deleted the ufunc-internals-removal branch July 27, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants