MCPcopy Create free account
hub / github.com/numpy/numpy / _parse_local_version

Function _parse_local_version

numpy/_utils/_pep440.py:426–434  ·  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

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

Callers 1

__init__Method · 0.85

Calls 3

lowerMethod · 0.80
isdigitMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected