[ZODB-Dev] Re: Python module namespace pollution

John Belmonte john at neggie.net
Tue Apr 20 09:31:10 EDT 2004


Jim Fulton wrote:
> John Belmonte wrote:
>> In terms of top level namespace pollution, a one letter name is about 
>> as bad as it gets.
> 
> Why do you say that? A bad name in a global namespace is one that is
> likely to conflict. Do you think it likely that someone else would
> pick "z"? At this point, the latter "z" is associated with Zope
> within the Python community. When you see a name beginning with "z",
> you assume it has something to do with Zope.

1) you'll never know if "z" clashes with someone's existing package 
until you release it.  Are you going to google for "Python z"?

2) using "zope" or "Zope" is explicit, while still being terse.

3) new Python programmers will have no idea than "z" stands for Zope.

4) use of "zope" and "Zope" is already established.  Fix the code and 
use one of those.

-John


-- 
http:// if  ile.org/



More information about the ZODB-Dev mailing list