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

Method showpeek

Tools/peg_generator/pegen/parser.py:184–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182 pass
183
184 def showpeek(self) -> str:
185 tok = self._tokenizer.peek()
186 return f"{tok.start[0]}.{tok.start[1]}: {token.tok_name[tok.type]}:{tok.string!r}"
187
188 @memoize
189 def name(self) -> tokenize.TokenInfo | None:

Callers 3

logger_wrapperFunction · 0.80
memoize_wrapperFunction · 0.80
memoize_left_rec_wrapperFunction · 0.80

Calls 1

peekMethod · 0.45

Tested by

no test coverage detected