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

Function match_to_number

Lib/tomllib/_re.py:116–119  ·  view source on GitHub ↗
(match: re.Match[str], parse_float: ParseFloat)

Source from the content-addressed store, hash-verified

114
115
116def match_to_number(match: re.Match[str], parse_float: ParseFloat) -> Any:
117 if match.group("floatpart"):
118 return parse_float(match.group())
119 return int(match.group(), 0)

Callers 1

parse_valueFunction · 0.85

Calls 1

groupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…