surprising behaviour of global dictionaries

Grant Edwards invalid at invalid.invalid
Tue Oct 9 11:53:15 EDT 2012


On 2012-10-09, Peter Otten <__peter__ at web.de> wrote:

> Welcome to python -- this is a trap every newbie falls into ;)
>
> Seriously, you shouldn't use the main script as a library;

There must be something wrong with me.  It never even occurred to me
to try to import a file from within that same file.  I don't think
I've ever even heard of that before...

-- 
Grant Edwards               grant.b.edwards        Yow! The Korean War must
                                  at               have been fun.
                              gmail.com            



More information about the Python-list mailing list