MCPcopy Index your code
hub / github.com/numpy/numpy / _parse_local_version

Function _parse_local_version

numpy/_utils/_pep440.py:425–433  ·  view source on GitHub ↗

Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").

(local)

Source from the content-addressed store, hash-verified

423
424
425def _parse_local_version(local):
426 """
427 Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
428 """
429 if local is not None:
430 return tuple(
431 part.lower() if not part.isdigit() else int(part)
432 for part in _local_version_seperators.split(local)
433 )
434
435
436def _cmpkey(epoch, release, pre, post, dev, local):

Callers 1

__init__Method · 0.85

Calls 3

lowerMethod · 0.80
isdigitMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…