MCPcopy Create free account
hub / github.com/apache/qpid-proton / put

Method put

python/tests/proton_tests/codec.py:126–138  ·  view source on GitHub ↗

More informative exception from putters, include bad value

(self, putter, v)

Source from the content-addressed store, hash-verified

124 assert not self.data.exit()
125
126 def put(self, putter, v):
127 """More informative exception from putters, include bad value"""
128 try:
129 putter(v)
130 except Exception:
131 etype, value, trace = sys.exc_info()
132 v = etype("%s(%r): %s" % (putter.__name__, v, value))
133 if trace is None:
134 raise v
135 else:
136 raise v.with_traceback(trace)
137
138 return putter
139
140 # (bits, signed) for each integer type
141 INT_TYPES = {

Callers 2

_testArrayMethod · 0.95
_testMethod · 0.95

Calls 1

putterClass · 0.85

Tested by

no test coverage detected