|
|||||
|
|
#1 |
|
|
>Hello All, > >If "__call__" allows anobject() and "__getitem__" allows anobject[arange], why >not have "__brace__" (or some other, better name) for anobject{something}. >Such braces might be useful for cross-sectioning nested data structures: > See Numeric Python, which uses index slices in multiple dimensions to satisfy this use case. While a new syntactic construct could be introduced to provide this feature, the "minimal core, rich library" school of language design suggests that doing so would not be a great idea. Jp |