MCPcopy
hub / github.com/rocky/python-uncompyle6 / get_code_name

Function get_code_name

uncompyle6/util.py:9–13  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

7from xdis.version_info import PYTHON_VERSION_TRIPLE
8
9def get_code_name(code) -> str:
10 code_name = code.co_name
11 if isinstance(code_name, UnicodeForPython3):
12 return code_name.value.decode("utf-8")
13 return code_name
14
15def is_negative_zero(n):
16 """Returns true if n is -0.0"""

Callers 4

ingestMethod · 0.90
n_classdef36Function · 0.90
n_mkfuncMethod · 0.90
n_mkfunc_annotateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected