[Python-Dev] Re: LOAD_NAME & classes

Aahz aahz@pythoncraft.com
Tue, 23 Apr 2002 17:55:03 -0400

On Tue, Apr 23, 2002, Guido van Rossum wrote:
>> That's what I said earlier.  But where is this documented?
> Also, in this particular case, the question ("how do I share data
> between modules") and the answer ("put it in a module and import it")
> seems pretty obvious once you have a decent grip of module semantics.

Maybe.  I personally agree.  But I've seen too many people on c.l.py who
appear to be definitely past the newbie level miss the boat on this
topic.  We'll see whether the FAQ entry helps; it should be sufficient.
I noted in the FAQ entry that importing a module is also the Pythonic
answer to the Singleton design pattern, so people searching for
Singleton should find that.
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/

What if there were no rhetorical questions?