[Python-checkins] r69777 - in python/trunk/Doc:howto/doanddont.rst howto/webservers.rstincludes/sqlite3/adapter_datetime.py library/asyncore.rstlibrary/cgi.rst library/configparser.rstlibrary/cookielib.rst library/crypt.rst library/csv.rst li

Nick Coghlan ncoghlan at gmail.com
Fri Feb 20 10:18:33 CET 2009


Georg Brandl wrote:
> I had the feeling that following PEP 8 in our examples would be good; but I
> can see that brevity is also a virtue here.

Of the various guidelines in PEP 8, that's the one I probably break most
often in production code. Non-as imports of commonly used standard
library modules can create a lot of clutter if you follow it all the
time (especially for short module names like os, sys, time, re, etc).

The PEP guideline is still a good default rule though - it's just a
judgment call as to when the increased use of vertical screen real
estate from following it becomes excessive.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------


More information about the Python-checkins mailing list