[Zope3-dev] directory hierarchy proposal

Jim Fulton jim@zope.com
Sun, 15 Dec 2002 09:47:42 -0500


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.

Jim


-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (888) 344-4332            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org