8000 ENH: Make _pointer_type_cache functional by udiboy1209 · Pull Request #7311 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Make _pointer_type_cache functional #7311

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

Merged
merged 1 commit into from
Feb 23, 2016
Merged

ENH: Make _pointer_type_cache functional #7311

merged 1 commit into from
Feb 23, 2016

Conversation

udiboy1209
Copy link
Contributor

Fix #2303
Cache queries wont miss because the whole tuple is cached as key and not just dtype
Adapted from patch submitted by Colin Hogben

Fix #2303
Cache queries wont miss because the whole tuple is cached as key
and not just dtype
Adapted from patch submitted by Colin Hogben
@njsmith
Copy link
Member
njsmith commented Feb 23, 2016

Looks fine to me; thanks @udiboy1209!

njsmith added a commit that referenced this pull request Feb 23, 2016
[PATCH] Make _pointer_type_cache functional
@njsmith njsmith merged commit ade4729 into numpy:master Feb 23, 2016
@charris charris changed the title [PATCH] Make _pointer_type_cache functional ENH: Make _pointer_type_cache functional Nov 16, 2016
eric-wieser added a commit to eric-wieser/numpy that referenced this pull request Nov 20, 2018
Fixes an alarming bug introduced in numpygh-7311 (1.12) where the following is true

    np.ctypeslib.ndpointer(ndim=2) is np.ctypeslib.ndpointer(shape=2)

Rework of numpygh-11536
@eric-wieser
Copy link
Member
eric-wieser commented Nov 20, 2018

This patch introduced a pretty alarming bug (fixed in #12424):

>>> from numpy.ctypeslib import ndpointer
>>> ndpointer(ndim=2) is ndpointer(shape=2)
True

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.

4 participants
0