-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Implement libinternals #19293
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
Implement libinternals #19293
Conversation
pls just do a move. do a followup to change things. when you move a file its impossible to tell diffs. |
OK, just changed to be pure cut/paste, will do optimizations in follow-up. |
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.
this is fine. waiting on travis. certainly take optimzations (pls back it up with a timeit run as you asv seem broken :<). and doc-strings in a followup.
|
||
|
||
cdef class BlockPlacement: | ||
# __slots__ = '_as_slice', '_as_array', '_len' |
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.
in followup is fine, pls add doc-strings
return BlockPlacement(np.concatenate([self.as_array] + | ||
[o.as_array for o in others])) | ||
|
||
cdef iadd(self, other): |
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.
these should prob be typed
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.
Yep. Bunch of small things like this I'll do in the next pass. For now it's pure cut/paste.
shouldn't this be called internals and not libinternals? |
The filename is "internals.pyx". I've gotten used to the convention |
thanks! |
follow up for docs and small optimizations ok |
Huh? Was this meant to be closed or merged? |
it is merged see the hash above |
A bunch of functions from
lib
that are only used in core.internals, have light dependencies.Small optimizations: made
slice_getitem
acdef
instead ofdef
, use PySlice_Check instead of isinstance.