comparison sat/memory/persistent.py @ 3653:d2b17f0f2615

core (memory/persistent): implement `__repr__` (via `__str__`)
author Goffi <goffi@goffi.org>
date Wed, 08 Sep 2021 11:17:04 +0200
parents be6d91572633
children cbb988a6f507
comparison
equal deleted inserted replaced
3652:6e34307319c0 3653:d2b17f0f2615
184 184
185 def all(self): 185 def all(self):
186 return self.storage.getPrivates(self.namespace, binary=self.binary, profile=self.profile) 186 return self.storage.getPrivates(self.namespace, binary=self.binary, profile=self.profile)
187 187
188 def __repr__(self): 188 def __repr__(self):
189 raise NotImplementedError 189 return self.__str__()
190 190
191 def __str__(self): 191 def __str__(self):
192 return "LazyPersistentBinaryDict (namespace: {})".format(self.namespace) 192 return "LazyPersistentBinaryDict (namespace: {})".format(self.namespace)
193 193
194 def __lt__(self, other): 194 def __lt__(self, other):