[Twisted-Python] coding standard: column width?

Clark C. Evans cce at clarkevans.com
Wed Mar 5 13:15:24 EST 2003


So, would purely whitespace patches fixing lines that
go over 79 columns be accepted?

On Tue, Mar 04, 2003 at 11:44:53PM -0500, Steve Waterbury wrote:
| On Tue, 2003-03-04 at 23:33, Samuel Bronson wrote:
| > Clark C. Evans wrote:
| > >The (very clear) coding standards don't mention a preferred column width.  
| > >Could it be possible to add a 76 column code wrap requirement.  This is 
| > >useful for those of us who use your aged 80 column terminals, and more
| >  
| > Or code at the console, or prefer 80 column emacs windows ;-)
| 
| Right.  The Twisted coding standards are clear ... but they 
| shouldn't have to say everything:  in the absence of explicit 
| direction from the Twisted coding standard, the Python style 
| guidelines should be followed (PEP 8 and PEP 257).

| From PEP 8 (http://www.python.org/peps/pep-0008.html):
| 
|     There are still many devices around that are limited to 80
|     character lines; plus, limiting windows to 80 characters makes it
|     possible to have several windows side-by-side.  The default
|     wrapping on such devices looks ugly.  Therefore, please limit all
|     lines to a maximum of 79 characters (Emacs wraps lines that are
|     exactly 80 characters long).  For flowing long blocks of text
|     (docstrings or comments), limiting the length to 72 characters is
|     recommended.




More information about the Twisted-Python mailing list