(self, key)
| 416 | return self[key] |
| 417 | |
| 418 | def __getattr__(self, key): |
| 419 | # __getattribute__() is called first; this will be called |
| 420 | # only if an attribute was not already found |
| 421 | try: |
| 422 | return self.__getitem__(key) |
| 423 | except KeyError: |
| 424 | raise AttributeError, "object has no attribute '%s'" % key |
| 425 | |
| 426 | def __hash__(self): |
| 427 | return id(self) |
nothing calls this directly
no test coverage detected