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

Method __repr__

Lib/symtable.py:67–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self._symbols = {}
66
67 def __repr__(self):
68 if self.__class__ == SymbolTable:
69 kind = ""
70 else:
71 kind = "%s " % self.__class__.__name__
72
73 if self._table.name == "top":
74 return "<{0}SymbolTable for module {1}>".format(kind, self._filename)
75 else:
76 return "<{0}SymbolTable for {1} in {2}>".format(kind,
77 self._table.name,
78 self._filename)
79
80 def get_type(self):
81 """Return the type of the symbol table.

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected