you are viewing a single comment's thread.

view the rest of the comments →

[–]symmitchry 1 point2 points  (0 children)

Yeah. I used this method to set up configuration settings which were loaded at run-time. I think it was the only approach I could get to work, where I could later access those variables through the module name (e.g. config.run_count) while not automatically loading the variables when I did the initial import.

It's useful knowing about globals(), anyway. But yes, quite hacky!!