Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Yes:   # Aligned with opening delimiter
   foo = long_function_name(var_one, var_two,
                                                     var                                               var_three, var_four)
   # 4-space hanging indent; nothing on first line
   foo = long_function_name(
                            var         var_one, var_two, var_three,
                            varvar_four)

No: foo = long_function_name(var_one, var_two,
                       var_three, var_four)
   # 2-space hanging indent forbidden
   foo = long_function_name(
             var      var_one, var_two, var_three,
             varvar_four)

Blank Lines: Two blank lines between top-level definitions, one blank line between method definitions. Two blank lines between top-level definitions, be they function or class definitions. One blank line between method definitions and between the class line and the first method. Use single blank lines as you judge appropriate within functions or methods.

...