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

Method backup

Tools/cases_generator/plexer.py:26–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self.pos = pos
25
26 def backup(self) -> None:
27 # Back up position by 1
28 assert self.pos > 0
29 self.pos -= 1
30
31 def next(self, raw: bool = False) -> Token | None:
32 # Return next token and advance position; None if at EOF

Callers 15

peekMethod · 0.95
expectMethod · 0.95
test_bad_targetMethod · 0.80
test_simpleMethod · 0.80
test_progressMethod · 0.80

Calls

no outgoing calls