comparison runes.py @ 21:35f29952b51e

Remove deadwood.
author David Barts <n5jrn@me.com>
date Sat, 28 Dec 2019 06:32:53 -0800
parents be0fd5c8121d
children a771878f6cf4
comparison
equal deleted inserted replaced
20:be0fd5c8121d 21:35f29952b51e
97 raise TypeError("runes required") 97 raise TypeError("runes required")
98 98
99 def __delitem__(self, key): 99 def __delitem__(self, key):
100 del self.buffer[key] 100 del self.buffer[key]
101 101
102 def __del__(self):
103 # Paranoid
104 if hasattr(self, 'buffer') and isinstance(self.buffer, memoryview):
105 self.buffer.release()
106
107 def clear(self): 102 def clear(self):
108 del self[:] 103 del self[:]
109 104
110 def __iter__(self): 105 def __iter__(self):
111 return iter(self.buffer) 106 return iter(self.buffer)