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

Method __call__

Lib/pydoc.py:2054–2068  ·  view source on GitHub ↗
(self, request=_GoInteractive)

Source from the content-addressed store, hash-verified

2052
2053 _GoInteractive = object()
2054 def __call__(self, request=_GoInteractive):
2055 if request is not self._GoInteractive:
2056 try:
2057 self.help(request)
2058 except ImportError as err:
2059 self.output.write(f'{err}\n')
2060 else:
2061 self.intro()
2062 self.interact()
2063 self.output.write('''
2064You are now leaving help and returning to the Python interpreter.
2065If you want to ask for help on a particular object directly from the
2066interpreter, you can type "help(object)". Executing "help('string')"
2067has the same effect as typing a particular string at the help> prompt.
2068''')
2069
2070 def interact(self):
2071 self.output.write('\n')

Callers

nothing calls this directly

Calls 4

helpMethod · 0.95
introMethod · 0.95
interactMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected