MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / __repr__

Method __repr__

bitcoin/core/__init__.py:113–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 return ((self.hash == b'\x00'*32) and (self.n == 0xffffffff))
112
113 def __repr__(self):
114 if self.is_null():
115 return 'COutPoint()'
116 else:
117 return 'COutPoint(lx(%r), %i)' % (b2lx(self.hash), self.n)
118
119 def __str__(self):
120 return '%s:%i' % (b2lx(self.hash), self.n)

Callers

nothing calls this directly

Calls 2

is_nullMethod · 0.95
b2lxFunction · 0.85

Tested by

no test coverage detected