Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: surprising behaviour of global dictionaries Date: Tue, 9 Oct 2012 15:53:15 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 14 Message-ID: References: <40ac555b-71c2-445e-814b-6bd1d037dbee@googlegroups.com> NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1349797995 26282 64.122.56.22 (9 Oct 2012 15:53:15 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 9 Oct 2012 15:53:15 +0000 (UTC) User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.lang.python:31043 On 2012-10-09, Peter Otten <__peter__@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