Ka-Ping Yee <ping@lfw.org>: > __get__(index, ...) # I want an ITEM. > __getslice__(slice-object, ...) # I want a SLICE. I like this (although it would be safer if the new-style __getslice__ had a new name as well). > This would require detection of whether any of the components > of a multidimensional (i.e. tuple) index were slices Doesn't the parser know this already? By the way, if you're going to make a clear separation between items and slices, then either *none* or *all* of the members of a multidimensional index should be slices, and mixing them should be an error! Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4