[Zope3-dev] directory hierarchy proposal
holger krekel
pyth@devel.trillke.net
Sun, 15 Dec 2002 21:14:35 +0100
Jim Fulton wrote:
> Martijn Faassen wrote:
> > Jim Fulton wrote:
> > [snip]
> >
> >>OK, I agree with that. Now, ZODB must be a *namespace* package, according
> >>to my "namespace" vs "module" package distinction.
> >>
> >
> > Hey Jim; good to see you made it back. I'm back in the Netherlands again
> > myself now.
>
> I had a nice uneventful and comfortable pair of flights back, despite the date. ;)
>
>
> > What about the convention that namespace package __init__.py say something
> > like this:
> >
> > # this is a namespace package, please keep __init__.py empty of code
> >
> > This way anybody tempted to add stuff to an __init__.py where they shouldn't
> > will be made aware immediately that they shouldn't do that.
>
> This is a good idea, It will need to be modified slightly, since it will
> contain some boilerplate code to knit all directories of the same name on the
> Python path into a single logical module.
I am bit uneasy about implicitly collecting modules from several places into
one namespace package. In which places would a namespace package look?
How is this configured?
holger