(self, key)
| 336 | return self[key] |
| 337 | |
| 338 | def has_key(self, key): |
| 339 | try: |
| 340 | return hasattr(self, key) or UserDict.__contains__(self, key) |
| 341 | except AttributeError: |
| 342 | return False |
| 343 | # This alias prevents the 2to3 tool from changing the semantics of the |
| 344 | # __contains__ function below and exhausting the maximum recursion depth |
| 345 | __has_key = has_key |
no test coverage detected