-
Notifications
You must be signed in to change notification settings - Fork 332
POC: Allow take to handle slicing #120
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
Conversation
|
This is a cool extension of the API! I'm concerned about documenting this for students to use. Right now As an aside: This functionality probably wouldn't be taught to students (who already have a lot of trouble differentiating between when to use brackets and parens). |
|
We could teach the next cohort to only use square brackets for indexing Good point about the documentation, although I think I can fix that fairly
|
|
@stefanv, could you go into more detail about why you implemented a separate getitem method instead of just adding handling of slices to take.call (and sticking to the original method definition)? Sorry if this is a stupid question. :D |
|
Sure, it's because you cannot do |
|
Updated to alias |
|
The docstring also seems to be fine, at least from inside IPython. |
|
Does |
|
Fixed the Sphinx doc. |
09d53da to
e63948c
Compare
|
Now depends on PR #127 |
|
Sorry for the delay on merging this! So the verdict on this is that:
To that end, could we write examples that call |
e63948c to
bd4ff84
Compare
|
I've updated the documentation—let me know if that is what you had in mind. |
|
This looks great! Thanks for the hard work on this. |
POC: Allow take to handle slicing
Proof of concept: change
taketo handle slicing.See also #119 and #115