Skip to content
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 object[Integer...] #150

Open
stevengj opened this issue Jul 28, 2015 · 1 comment
Open

implement object[Integer...] #150

stevengj opened this issue Jul 28, 2015 · 1 comment

Comments

@stevengj
Copy link
Member

Maybe make object[i,j,...] in Julia sugar for get(object, (i,j,...)), equivalent to object[i,j,...] in Python, for the common case of integer indexing (e.g. #149).

I would prefer to just make object[...] equivalent to object[...] in Python regardless of the index type, but then I wouldn't have a good syntax for Python's object.attribute (until some future Nirvana when dot overloading arrives in Julia).

@stevengj
Copy link
Member Author

Would also be good to accept Range objects, which should be converted in this context to Python slice objects, for slicing.

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

No branches or pull requests

1 participant