[Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods)

M.-A. Lemburg mal@lemburg.com
Fri, 14 Apr 2000 01:05:12 +0200


Gordon McMillan wrote:
> ...
> This is nowhere near as confusing as, say, putting a module
> named X in a package named X and then saying "from X
> import *", (hi, Marc-Andre!).

Users shouldn't bother looking into packages... only at the
documented interface ;-)

The hack is required to allow sibling submodules to import
the packages main module (I could have also written import
__init__ everywhere but that wouldn't have made things
clearer), BTW. It turned out to be very convenient during
development of all those mx packages.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/