-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Assorted cleanups #29175
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
CLN: Assorted cleanups #29175
Conversation
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 good minor question
@@ -284,7 +284,7 @@ cdef slice_get_indices_ex(slice slc, Py_ssize_t objlen=PY_SSIZE_T_MAX): | |||
return start, stop, step, length | |||
|
|||
|
|||
def slice_getitem(slice slc not None, ind): | |||
cdef slice_getitem(slice slc, ind): |
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.
Do we have a not None
check elsewhere?
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.
not None
is not allowed in a cdef function. we only call this from one place in this module, and it is immediately after checking that we do in fact have a slice
thanks |
No description provided.