diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2023-11-21 15:11:09 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-11-27 10:37:29 +0100 |
| commit | 9baaf89eed42f9e747c774bc79543f47ea9697f8 (patch) | |
| tree | 0a66089e01243075f358ce08b8599294c9e81f4c /django/utils | |
| parent | 174369a990c00d75cf40e0a06ab82bec9a89a7ef (diff) | |
Refs #34986 -- Added django.utils.version.PYPY.
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/version.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/version.py b/django/utils/version.py index 1e9c720299..ecd41dac89 100644 --- a/django/utils/version.py +++ b/django/utils/version.py @@ -6,6 +6,9 @@ import sys from django.utils.regex_helper import _lazy_re_compile +# Private, stable API for detecting the Python implementation. +PYPY = sys.implementation.name == "pypy" + # Private, stable API for detecting the Python version. PYXY means "Python X.Y # or later". So that third-party apps can use these values, each constant # should remain as long as the oldest supported Django version supports that |
