(self, type, length=1)
| 151 | class RetTuple(object): |
| 152 | |
| 153 | def __init__(self, type, length=1): |
| 154 | try: |
| 155 | self.buffer = (TYPES[type] * length)() |
| 156 | except KeyError: |
| 157 | raise KeyError('The type {} is not defined ()'.format(type, TYPES.keys())) |
| 158 | self.length = length |
| 159 | |
| 160 | def __iter__(self): |
| 161 | yield self |