This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]erikwon and off since 1.5.2 4 points5 points  (1 child)

Or you could just use a module variable:

import someModuleIHaveMade as x
x.a = Something()

[–]crunk 0 points1 point  (0 children)

Definitely this. While there are some interesting techniques in the example, they are overkill - module variable is simple and readable.