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

Function parse_int

Lib/_strptime.py:574–578  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

572 found_dict = found.groupdict()
573 if locale_time.LC_alt_digits:
574 def parse_int(s):
575 try:
576 return locale_time.LC_alt_digits.index(s)
577 except ValueError:
578 return int(s)
579 else:
580 parse_int = int
581

Callers 2

_strptimeFunction · 0.85
_scan_onceFunction · 0.85

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected