Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __repr__(self):
res = '???'
if self.initialized:
res = repr(''.join(self.serialize()))
ofs = '[%x]'%( self.getoffset() )
if ptype.isptype(self._object_):
obj = repr(self._object_)
else:
obj = repr(self._object_.__class__)
return ' '.join((ofs, self.name(), '%s[%d]'% (obj, len(self)), res))