At Google we use the following rule (from <a href="http://google-styleguide.googlecode.com/svn/trunk/pyguide.html#Indentation">http://google-styleguide.googlecode.com/svn/trunk/pyguide.html#Indentation</a>):<br><br><span style="font-family: courier new,monospace;">Yes:  # Aligned with opening delimiter</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">       foo = long_function_name(var_one, var_two,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                                var_three, var_four)</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">       # 4-space hanging indent; nothing on first line</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">       foo = long_function_name(</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">           var_one, var_two, var_three,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">           var_four)</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">No:   # Stuff on first line forbidden</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">       foo = long_function_name(var_one, var_two,</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">           var_three, var_four)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">       # 2-space hanging indent forbidden</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">       foo = long_function_name(</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">         var_one, var_two, var_three,</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">         var_four)</span><br style="font-family: courier new,monospace;"><font face="arial,helvetica,sans-serif"><br>I propose we somehow incorporate these two allowed alternatives into PEP 8. They both serve a purpose.<br>

</font><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)<br><br>