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

Method __repr__

Lib/os.py:736–741  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

734 return len(self._data)
735
736 def __repr__(self):
737 formatted_items = ", ".join(
738 f"{self.decodekey(key)!r}: {self.decodevalue(value)!r}"
739 for key, value in self._data.items()
740 )
741 return f"environ({{{formatted_items}}})"
742
743 def copy(self):
744 return dict(self)

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected