PyPlot.jl icon indicating copy to clipboard operation
PyPlot.jl copied to clipboard

implement object[Integer...]

Open stevengj opened this issue 10 years ago • 1 comments
trafficstars

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 avatar Jul 28 '15 19:07 stevengj

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

stevengj avatar Jul 30 '15 18:07 stevengj