MCPcopy Create free account
hub / github.com/LUX-Core/lux / __new__

Method __new__

test/functional/test_framework/script.py:92–98  ·  view source on GitHub ↗
(cls, n)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
__new__Method · 0.45

Tested by

no test coverage detected