<div dir="ltr"><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 9:36 PM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve+comp.lang.python@pearwood.info" target="_blank">steve+comp.lang.python@pearwood.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Although PEP 8 is only compulsory for the Python standard library, many<br>
users like to stick to PEP 8 for external projects.<br></blockquote><div><br></div><div style="color:rgb(0,0,0)" class="gmail_default">But even the standard library breaks this rule on occasion.  e.g., /usr/lib/python2.7/urllib.py:1095 (I remember seeing others, but this is the first example I was able to find quickly).</div>
<div style="color:rgb(0,0,0)" class="gmail_default"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href="http://www.python.org/dev/peps/pep-0008/" target="_blank">http://www.python.org/dev/peps/pep-0008/</a><br>
<br>
With perhaps one glaring exception: many people hate, or ignore, PEP 8's<br>
recommendation to limit lines to 80 characters. (Strictly speaking, 79<br>
characters.)<br>
<br>
<br>
Here is a good defence of 80 char lines:<br>
<br>
<a href="http://wrongsideofmemphis.com/2013/03/25/80-chars-per-line-is-great/" target="_blank">http://wrongsideofmemphis.com/2013/03/25/80-chars-per-line-is-great/</a></blockquote><div><br></div><div style="color:rgb(0,0,0)" class="gmail_default">
Personally, I try my best to keep all lines at 80 character max (80 + newline, not 79).  In addition to liking my 84-character-width gvim windows (to allow a little leeway) side-by-side for code references, I'm definitely not above printing out some code to lay it out on a desk---that's not something you can do on-screen without a wall of monitors in front of you.</div>
<div style="color:rgb(0,0,0)" class="gmail_default"><br></div><div style="color:rgb(0,0,0)" class="gmail_default">The only time I regularly break my rule is for regular expressions (at some point I may embrace re.X to allow me to break those up, too).</div>
<div style="color:rgb(0,0,0)" class="gmail_default"><br></div><div style="color:rgb(0,0,0)" class="gmail_default">All the best,<br>Jason</div></div></div></div>