Merge from master

This commit is contained in:
rocky
2023-07-01 10:33:04 -04:00
parent 47f0d5cd69
commit df1772164c
9 changed files with 274 additions and 211 deletions

View File

@@ -3,8 +3,14 @@
# More could be done here though.
from math import copysign
from xdis.codetype import UnicodeForPython3
from xdis.version_info import PYTHON_VERSION_TRIPLE
def get_code_name(code) -> str:
code_name = code.co_name
if isinstance(code_name, UnicodeForPython3):
return code_name.value.decode("utf-8")
return code_name
def is_negative_zero(n):
"""Returns true if n is -0.0"""