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

Method precmd

Lib/cmd.py:161–166  ·  view source on GitHub ↗

Hook method executed just before the command line is interpreted, but after the input prompt is generated and issued.

(self, line)

Source from the content-addressed store, hash-verified

159
160
161 def precmd(self, line):
162 """Hook method executed just before the command line is
163 interpreted, but after the input prompt is generated and issued.
164
165 """
166 return line
167
168 def postcmd(self, stop, line):
169 """Hook method executed just after a command dispatch is finished."""

Callers 1

cmdloopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected