Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork10.9k
MAINT: Convert pocketfft_umath to multi-phase init (PEP 489)#29028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
074fb12
to14b4169
Comparecc@seberg. We prevent multiple inits because the static function and type arrays are used in the A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks fine with the decref fixed.
FWIW, while I think it's likely a bad idea to create these ufuncs multiple times, I don't actually think it's a problem and this module is actually safe to delete and reload.
(Not saying it will actually get all cleaned up, I would be surprised, but for the most part.)
Sorry for that, remnants of experimentation. |
Fair enough, I admit I haven't tried. I think keeping this PR as-is and looking to relax the restriction in a followup may be prudent, though? |
NULL, /* m_doc */ | ||
0, /* m_size */ | ||
NULL, /* m_methods */ | ||
_pocketfft_umath_slots, /* m_slots */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Now that I scroll through, I would have liked to use.m_base =
, etc. but a cleanup for another day.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Designated initialisers are only supported for C++20 -- hence the legacy style.
A
5ab56f6
intonumpy:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.