MCPcopy Create free account
hub / github.com/LabPy/lantz / RetValue

Class RetValue

lantz/foreign.py:135–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134
135class RetValue(object):
136
137 def __init__(self, type):
138 try:
139 self.buffer = (TYPES[type] * 1)()
140 except KeyError:
141 raise KeyError('The type {} is not defined ()'.format(type, TYPES.keys()))
142
143 def __iter__(self):
144 yield self
145
146 @property
147 def value(self):
148 return self.buffer[0]
149
150
151class RetTuple(object):

Callers 15

versionMethod · 0.90
is_simulatedMethod · 0.90
product_numberMethod · 0.90
serial_numberMethod · 0.90
bus_typeMethod · 0.90
pci_bus_numberMethod · 0.90
pci_device_numberMethod · 0.90
pxi_slot_numberMethod · 0.90
pxi_chassis_numberMethod · 0.90
_load_taskMethod · 0.90
_create_taskMethod · 0.90
is_doneMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_return_valueMethod · 0.72