Fix Python – Importing a long list of constants to a Python file
In Python, is there an analogue of the C preprocessor statement such as?:
#define MY_CONSTANT 50
Also, I have a large list of constants I’d like to import to several classes. Is there an analogue of declaring the constants as a long sequence of statements like the above in a .py file and importing it to another .py file?
The file Constants.p….