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

Method __call__

Lib/_sitebuiltins.py:67–85  ·  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 self.__setup()
69 prompt = 'Hit Return for more, or q (and Return) to quit: '
70 lineno = 0
71 while 1:
72 try:
73 for i in range(lineno, lineno + self.MAXLINES):
74 print(self.__lines[i])
75 except IndexError:
76 break
77 else:
78 lineno += self.MAXLINES
79 key = None
80 while key is None:
81 key = input(prompt)
82 if key not in ('', 'q'):
83 key = None
84 if key == 'q':
85 break
86
87
88class _Helper(object):

Callers

nothing calls this directly

Calls 3

__setupMethod · 0.95
inputFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected