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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy.ufunc size check insists on exact size match #2799

Open
TimoRoth opened this Issue Jan 16, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@TimoRoth
Copy link

TimoRoth commented Jan 16, 2019

numpy.ufunc does not carry the "check_size ignore" flag, which in turn results in runtime failures if the size of the struct grows:
https://github.com/cython/cython/blob/master/Cython/Includes/numpy/__init__.pxd#L918

With numpy 1.16, after long years of that struct being untouched, it now gained 3 new fields and grew in size.

Judging by
https://github.com/numpy/numpy/blob/master/numpy/__init__.py#L177
It is clearly expected to just result in a warning. In reality, the module fails to load.

Am I missing something here, or is there simply the "check_size ignore" part missing for that class?

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