What is module initialization?

Wojtek Walczak gminick at bzt.bzt
Tue Sep 2 16:46:44 CEST 2008


On Tue, 2 Sep 2008 15:32:07 +0100, dudeja.rajat at gmail.com wrote:

> But if I do :-
>#question.py
> from myglobals import *
> myglobals.answer = "WTF ?"
>
> will this work?

Why won't you try? In this case you should receive NameError.

-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/



More information about the Python-list mailing list