MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __repr__

Method __repr__

tools/python-3.11.9-amd64/Lib/symtable.py:49–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 self._symbols = {}
48
49 def __repr__(self):
50 if self.__class__ == SymbolTable:
51 kind = ""
52 else:
53 kind = "%s " % self.__class__.__name__
54
55 if self._table.name == "top":
56 return "<{0}SymbolTable for module {1}>".format(kind, self._filename)
57 else:
58 return "<{0}SymbolTable for {1} in {2}>".format(kind,
59 self._table.name,
60 self._filename)
61
62 def get_type(self):
63 """Return the type of the symbol table.

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected