Skip to content

Commit 25d66d3

Browse files
author
rocky
committed
Add IS_C_PYTHON boolean
1 parent 8606b3c commit 25d66d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

xdis/version_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def get_python_implementation(
7272

7373

7474
PYTHON_IMPLEMENTATION = get_python_implementation()
75+
IS_C_PYTHON = PYTHON_IMPLEMENTATION == PythonImplementation.CPython
7576
IS_GRAAL = PYTHON_IMPLEMENTATION == PythonImplementation.Graal
7677
IS_PYPY = PYTHON_IMPLEMENTATION == PythonImplementation.PyPy
7778
IS_RUST = PYTHON_IMPLEMENTATION == PythonImplementation.RustPython

0 commit comments

Comments
 (0)