__call__ in module?

ncf nothingcanfulfill at gmail.com
Tue Sep 27 17:19:13 EDT 2005


I have a feeling that this is highly unlikely, but does anyone in here
know if it's possible to directly call a module, or will I have to wrap
it up in a class?

i.e.,
import MyMod
MyMod.whatever = "Hi?"
MyMod("meow mix")


Thanks in advance
-Wes




More information about the Python-list mailing list