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

Class LengthDict

extra_tests/snippets/builtin_dict.py:175–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175class LengthDict(dict):
176 def __getitem__(self, k):
177 return len(k)
178
179
180x = LengthDict()

Callers 1

builtin_dict.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected