MCPcopy Index your code
hub / github.com/python/cpython / __call__

Method __call__

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

Source from the content-addressed store, hash-verified

65 return "Type %s() to see the full %s text" % ((self.__name,)*2)
66
67 def __call__(self):
68 try:
69 from _pyrepl.pager import get_pager
70 except ModuleNotFoundError:
71 try:
72 from pydoc import get_pager
73 except ModuleNotFoundError:
74 def get_pager():
75 def _print(text, title=None):
76 print(text)
77 return _print
78
79 self.__setup()
80
81 pager = get_pager()
82 text = "\n".join(self.__lines)
83 pager(text, title=self.__name)
84
85
86class _Helper(object):

Callers

nothing calls this directly

Calls 4

__setupMethod · 0.95
get_pagerFunction · 0.90
pagerFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected