import namespace issues

Harald Kirsch kirschh at lionbioscience.com
Tue Jul 10 07:43:51 EDT 2001


"Alex Martelli" <aleaxit at yahoo.com> writes:

> "Harald Kirsch" <kirschh at lionbioscience.com> wrote in message
> news:yv2lmlxgnji.fsf at lionsp093.lion-ag.de...
> > QUESTION 2:
> > Is there a detailed description somewhere in the docs about the
> > namespaces (or dictionaries) used/created/shuffled during an import?
> 
> I think the documentation for __import__ is pretty clear about
> it, "the standard implementation does not use its locals argument
> at all, and uses its globals only to determine the package context
> of the import statement".

I sometimes find that the python docs seem to expect some prior
knowledge about `obvious behaviour' from the reader and consequently
are a bit terse. Therefore I believed the above statement only after
having read the code :-)

  Harald.

-- 
----------------+------------------------------------------------------
Harald Kirsch   | kirschh at lionbioscience.com | "How old is the epsilon?"
LION bioscience | +49 6221 4038 172          |        -- Paul Erdös
       *** Please do not send me copies of your posts. ***



More information about the Python-list mailing list