I have a list of declarations in a python file.
a = 1
b = 2
c = 3
which I import from another file, and try to iterate over it.
import themodule
for key, value in themodule.__dict__.items():
if not key.startswith('_'):
...
However, it is critical that I get the declarations in the order they are written. Is there any way to guarantee this?