What's the use of module spaces? (was Re: Circular Inheritance)
aahz at pythoncraft.com
Wed Jul 2 17:03:48 CEST 2003
In article <mailman.1057124943.21695.python-list at python.org>,
Ian Bicking <ianb at colorstudy.com> wrote:
>You might encounter less problems if those classes go together in a
>single module, but module boundaries are just there to help the
>programmer organize code, they have little formal meaning.
That's not true. Modules define a namespace, and Python's execution
model makes heavy use of the "global" (read, current module's) namespace
for name resolution.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
If you're familiar with the song "Woad", try reading the Subject: line
More information about the Python-list