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

Method __new__

bitcoin/core/script.py:90–96  ·  view source on GitHub ↗
(cls, n)

Source from the content-addressed store, hash-verified

88 return 'CScriptOp(0x%x)' % self
89
90 def __new__(cls, n):
91 try:
92 return _opcode_instances[n]
93 except IndexError:
94 assert len(_opcode_instances) == n
95 _opcode_instances.append(super(CScriptOp, cls).__new__(cls, n))
96 return _opcode_instances[n]
97
98# Populate opcode instance table
99for n in range(0xff+1):

Callers

nothing calls this directly

Calls 1

__new__Method · 0.45

Tested by

no test coverage detected