Alex Martelli <aleax at aleax.it> wrote: > No, it would have substantially impoverished the language: > > class doubleface: > def __getitem__(self, name): > return "anitem" > def __call__(self, *args): > return "acall" Can you give me a practical example of why somebody would want to define a __getitem__ method for a class?