MCPcopy Index your code
hub / github.com/clips/pattern / __getattr__

Method __getattr__

pattern/web/feed/feedparser.py:418–424  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

__getitem__Method · 0.95

Tested by

no test coverage detected