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

Method __call__

tools/python-3.11.9-amd64/Lib/pydoc.py:2091–2105  ·  view source on GitHub ↗
(self, request=_GoInteractive)

Source from the content-addressed store, hash-verified

2089
2090 _GoInteractive = object()
2091 def __call__(self, request=_GoInteractive):
2092 if request is not self._GoInteractive:
2093 try:
2094 self.help(request)
2095 except ImportError as e:
2096 self.output.write(f'{e}\n')
2097 else:
2098 self.intro()
2099 self.interact()
2100 self.output.write('''
2101You are now leaving help and returning to the Python interpreter.
2102If you want to ask for help on a particular object directly from the
2103interpreter, you can type "help(object)". Executing "help('string')"
2104has the same effect as typing a particular string at the help> prompt.
2105''')
2106
2107 def interact(self):
2108 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