[Zope-dev] Coding style clarifications

Martijn Faassen faassen at startifact.com
Fri Feb 20 10:18:41 EST 2009


Hey,

Andreas Jung wrote:
> I followed the whole thread with some amusement. There are too many
> personal coding styles on the market which makes it impossible to
> regulate all all and everything. At least this  discussion about
> about how to write imports properly appears esoteric to me.

Yeah, I agree, this is a fairly useless religious discussion. I think we 
should just let packages have the structure their original creators 
intended to have them. For new packages people should pick their 
preference. It's pretty hopeless to start changing it now anyway, as 
each package has its own structure.

The only point where this really affects me is in package APIs, as I 
really like providing a brief API in a package's __init__.py, and 
certain import patterns will in various subtle ways create circular 
imports when I do this.

Regards,

Martijn



More information about the Zope-Dev mailing list