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

Method is_small_int

bitcoin/core/script.py:74–79  ·  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

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

Callers 2

__iter__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected