MCPcopy Index your code
hub / github.com/python/cpython / InstanceProxy

Class InstanceProxy

Tools/gdb/libpython.py:447–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445
446
447class InstanceProxy(object):
448
449 def __init__(self, cl_name, attrdict, address):
450 self.cl_name = cl_name
451 self.attrdict = attrdict
452 self.address = address
453
454 def __repr__(self):
455 if isinstance(self.attrdict, dict):
456 kwargs = ', '.join(["%s=%r" % (arg, val)
457 for arg, val in self.attrdict.items()])
458 return '<%s(%s) at remote 0x%x>' % (self.cl_name,
459 kwargs, self.address)
460 else:
461 return '<%s at remote 0x%x>' % (self.cl_name,
462 self.address)
463
464def _PyObject_VAR_SIZE(typeobj, nitems):
465 if _PyObject_VAR_SIZE._type_size_t is None:

Callers 1

proxyvalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…