diff options
Diffstat (limited to 'Lib/bsddb/__init__.py')
-rw-r--r-- | Lib/bsddb/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py index 939700f..b2786d3 100644 --- a/Lib/bsddb/__init__.py +++ b/Lib/bsddb/__init__.py @@ -170,6 +170,9 @@ class _DBWithCursor(_iter_mixin): def __del__(self): self.close() + def __repr__(self): + return repr(dict(self.iteritems())) + def _checkCursor(self): if self.dbc is None: self.dbc = _DeadlockWrap(self.db.cursor) |