| 1026 | return '%s(%s)' % (self.__class__.__name__, ', '.join(temp)) |
| 1027 | |
| 1028 | class Value(object): |
| 1029 | def __init__(self, typecode, value, lock=True): |
| 1030 | self._typecode = typecode |
| 1031 | self._value = value |
| 1032 | def get(self): |
| 1033 | return self._value |
| 1034 | def set(self, value): |
| 1035 | self._value = value |
| 1036 | def __repr__(self): |
| 1037 | return '%s(%r, %r)'%(type(self).__name__, self._typecode, self._value) |
| 1038 | value = property(get, set) |
| 1039 | |
| 1040 | def Array(typecode, sequence, lock=True): |
| 1041 | return array.array(typecode, sequence) |