import namespace issues
rnd at onego.ru
Tue Jul 10 08:17:21 EDT 2001
On 10 Jul 2001, Harald Kirsch wrote:
> "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
Probably because one learns about import statement first, and
then (if at all) learns about __import__() function.
> are a bit terse. Therefore I believed the above statement only after
> having read the code :-)
Sincerely yours, Roman A.Suzi
- Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
More information about the Python-list