Howto: creating empty modules?
Huaiyu Zhu
huaiyu at gauss.almadan.ibm.com
Wed Jan 9 19:25:22 EST 2002
On 09 Jan 2002 11:57:06 +0200, Ville Vainio <vvainio at karhu.tp.spt.fi> wrote:
>How should I go about creating an empty module?
>
>I mean
>
>config = make_empty_module()
>config.someattr = "hi"
>
I guess you want to set config properties in one module and get them in
another. Assuming there is no reason not to use 'import config', I would
just create an empty file config.py and use 'import config' in both modules.
Or maybe you are after something completely different?
Huaiyu
More information about the Python-list
mailing list