keyword in package name.

Christian Heimes lists at cheimes.de
Sun Oct 19 19:31:37 EDT 2008


Marc 'BlackJack' Rintsch wrote:
> `com_spam.app1`!?  I would even recommend this with domains that don't 
> clash with keywords because if several people start to use this package 
> name convention you will get name clashes at package level.  Say there 
> are two vendors with a `com` TLD, how do you install their packages?  
> Into the same `com/` subdirectory?  The `__init__.py` of which vendor 
> should live at the `com/` directory level?  If you install them into two 
> different directories but want to import modules from both vendors -- how?

It's possible with name space packages but every vendor must define the 
com package as a name space package w/o putting any code into the 
__init__.py except the name space declaration.

Christian




More information about the Python-list mailing list