MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / __repr__

Method __repr__

suds/xsd/sxbase.py:477–489  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

475 return self.__repr__()
476
477 def __repr__(self):
478 s = []
479 s.append('<%s' % self.id)
480 for n in self.description():
481 if not hasattr(self, n):
482 continue
483 v = getattr(self, n)
484 if v is None:
485 continue
486 s.append(' %s="%s"' % (n, v))
487 s.append(' />')
488 myrep = ''.join(s)
489 return myrep
490
491 def __len__(self):
492 n = 0

Callers 2

__str__Method · 0.95
__unicode__Method · 0.95

Calls 2

descriptionMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected