blob: f3c4ee7d8f65b408ce8729a4d6c9dc705ba8de68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import builtins
import enum
import sys
PY37_PLUS = sys.version_info >= (3, 7)
PY38_PLUS = sys.version_info >= (3, 8)
PY39_PLUS = sys.version_info >= (3, 9)
PY310_PLUS = sys.version_info >= (3, 10)
class Context(enum.Enum):
Load = 1
Store = 2
Del = 3
# TODO Remove in 3.0 in favor of Context
Load = Context.Load
Store = Context.Store
Del = Context.Del
BUILTINS = builtins.__name__ # Could be just 'builtins' ?
|