A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20140428/6446da85/attachment.html below:

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Apr 27, 2014 at 1:40 PM, Barry Warsaw <span dir="ltr"><<a href="mailto:barry@python.org" target="_blank">barry@python.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On Apr 27, 2014, at 12:34 PM, Chris Barker wrote:<br>

>foo = long_function_name(var_one,<br>


> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â var_two,<br>
> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â var_three,<br>
> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â var_four)<br>
<br>
</div>Wow, do you really indent those 42 columns?<br></blockquote><div><br></div><div>No -- stupid variable-width font!</div><div><br></div><div>I don't think anyone should write code with variable width fonts, and I'd rather not do email that way either, but gmail is making it tough these days..</div>

<div><br></div><div>Sorry for the added confusion.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

This actually is forbidden because you're not using "vertical alignment" when<br>


there is an argument on the first line. Â You would have to line up `var_two`<br>
right under `var_one` to be compliant.</blockquote><div><br></div><div>yeah -- that was the intent.... </div><div><br></div><div>oh well.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class="">>That is, I find that if the argument list is too long for one line, then<br>


>splitting it out to only one argument per line is much more readable to me.<br>
<br>
</div>Sure. Â The PEP outlines ways to do that.</blockquote><div><br></div><div>not really -- it allows it:</div><div><br></div><font face="courier new, monospace"># Aligned with opening delimiter.<br>foo = long_function_name(var_one, var_two, <br>

  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â var_three, var_four)</font><div><br></div><div>but all the examples have more than one variable per line...my point is that I think that should be discouraged.</div><div><br></div><div>i.e. I think the above should be:</div>

<div><br></div><div><font face="courier new, monospace"># Aligned with opening delimiter.<br>foo = long_function_name(var_one,</font></div><div><font face="courier new, monospace">  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â var_two, <br>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â var_three,</font></div>

<div><font face="courier new, monospace">  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â var_four)</font><br></div><br>(done with fixed-width font this time -- but it may not look right in your mail reader..)</div><div class="gmail_quote"><br>


</div>
<div class="gmail_quote">though I doubt there would consensus on requiring that -- but many of us learn more from examples than the specification, so maybe I'll submit a patch with an example like that.</div><div class="gmail_quote">

<br><div>-Chris </div><div><br></div></div>-- <br><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R Â  Â  Â  Â  Â  Â (206) 526-6959   voice<br>7600 Sand Point Way NE Â Â (206) 526-6329   fax<br>

Seattle, WA Â 98115 Â  Â  Â Â (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a>


</div></div>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4