Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/pandas/compat/_constants.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

12 statements  

1""" 

2_constants 

3====== 

4 

5Constants relevant for the Python implementation. 

6""" 

7 

8from __future__ import annotations 

9 

10import platform 

11import sys 

12import sysconfig 

13 

14IS64 = sys.maxsize > 2**32 

15 

16PY310 = sys.version_info >= (3, 10) 

17PY311 = sys.version_info >= (3, 11) 

18PY312 = sys.version_info >= (3, 12) 

19PYPY = platform.python_implementation() == "PyPy" 

20ISMUSL = "musl" in (sysconfig.get_config_var("HOST_GNU_TYPE") or "") 

21REF_COUNT = 2 if PY311 else 3 

22 

23__all__ = [ 

24 "IS64", 

25 "ISMUSL", 

26 "PY310", 

27 "PY311", 

28 "PY312", 

29 "PYPY", 

30]