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

Method __add__

bitcoin/core/script.py:529–538  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

527 return other
528
529 def __add__(self, other):
530 # Do the coercion outside of the try block so that errors in it are
531 # noticed.
532 other = self.__coerce_instance(other)
533
534 try:
535 # bytes.__add__ always returns bytes instances unfortunately
536 return CScript(super(CScript, self).__add__(other))
537 except TypeError:
538 raise TypeError('Can not add a %r instance to a CScript' % other.__class__)
539
540 def join(self, iterable):
541 # join makes no sense for a CScript()

Callers

nothing calls this directly

Calls 2

__coerce_instanceMethod · 0.95
CScriptClass · 0.85

Tested by

no test coverage detected