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

Function parse_int

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

Source from the content-addressed store, hash-verified

589 found_dict = found.groupdict()
590 if locale_time.LC_alt_digits:
591 def parse_int(s):
592 try:
593 return locale_time.LC_alt_digits.index(s)
594 except ValueError:
595 return int(s)
596 else:
597 parse_int = int
598

Callers 2

_strptimeFunction · 0.85
_scan_onceFunction · 0.85

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…