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

Method get_arg

Lib/_pyrepl/reader.py:526–532  ·  view source on GitHub ↗

Return any prefix argument that the user has supplied, returning `default' if there is None. Defaults to 1.

(self, default: int = 1)

Source from the content-addressed store, hash-verified

524 return len(self.screeninfo) - 1
525
526 def get_arg(self, default: int = 1) -> int:
527 """Return any prefix argument that the user has supplied,
528 returning `default' if there is None. Defaults to 1.
529 """
530 if self.arg is None:
531 return default
532 return self.arg
533
534 def get_prompt(self, lineno: int, cursor_on_line: bool) -> str:
535 """Return what should be in the left-hand margin for line

Callers 15

doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45
doMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected