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

Function _get_suffix

PC/layout/support/constants.py:29–34  ·  view source on GitHub ↗
(field4)

Source from the content-addressed store, hash-verified

27
28
29def _get_suffix(field4):
30 name = {0xA0: "a", 0xB0: "b", 0xC0: "rc"}.get(field4 & 0xF0, "")
31 if name:
32 serial = field4 & 0x0F
33 return f"{name}{serial}"
34 return ""
35
36
37def _read_patchlevel_version(sources):

Callers 2

check_patchlevel_versionFunction · 0.85
constants.pyFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…