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

Method is_small_int

test/functional/test_framework/script.py:76–81  ·  view source on GitHub ↗

Return true if the op pushes a small integer to the stack

(self)

Source from the content-addressed store, hash-verified

74 return int(self - OP_1+1)
75
76 def is_small_int(self):
77 """Return true if the op pushes a small integer to the stack"""
78 if 0x51 <= self <= 0x60 or self == 0:
79 return True
80 else:
81 return False
82
83 def __str__(self):
84 return repr(self)

Callers 1

__iter__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected