MCPcopy Index your code
hub / github.com/python/cpython / _ClosedDict

Class _ClosedDict

Lib/shelve.py:70–78  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

68
69
70class _ClosedDict(collections.abc.MutableMapping):
71 'Marker for a closed dict. Access attempts raise a ValueError.'
72
73 def closed(self, *args):
74 raise ValueError('invalid operation on closed shelf')
75 __iter__ = __len__ = __getitem__ = __setitem__ = __delitem__ = keys = closed
76
77 def __repr__(self):
78 return '<Closed Dictionary>'
79
80
81class Shelf(collections.abc.MutableMapping):

Callers 1

closeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…