MCPcopy Index your code
hub / github.com/RustPython/RustPython / _ClosedDict

Class _ClosedDict

Lib/shelve.py:66–74  ·  view source on GitHub ↗

Marker for a closed dict. Access attempts raise a ValueError.

Source from the content-addressed store, hash-verified

64__all__ = ["Shelf", "BsdDbShelf", "DbfilenameShelf", "open"]
65
66class _ClosedDict(collections.abc.MutableMapping):
67 'Marker for a closed dict. Access attempts raise a ValueError.'
68
69 def closed(self, *args):
70 raise ValueError('invalid operation on closed shelf')
71 __iter__ = __len__ = __getitem__ = __setitem__ = __delitem__ = keys = closed
72
73 def __repr__(self):
74 return '<Closed Dictionary>'
75
76
77class Shelf(collections.abc.MutableMapping):

Callers 1

closeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected