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

Method number

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

Source from the content-addressed store, hash-verified

194
195 @memoize
196 def number(self) -> tokenize.TokenInfo | None:
197 tok = self._tokenizer.peek()
198 if tok.type == token.NUMBER:
199 return self._tokenizer.getnext()
200 return None
201
202 @memoize
203 def string(self) -> tokenize.TokenInfo | None:

Callers 1

target_atomMethod · 0.80

Calls 2

getnextMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected