Guido van Rossum wrote:
Bingo. That's why. (Though you are missing some colons in your examples. :-)

--Guido

On Thu, Jun 2, 2011 at 11:50 AM, Glenn Linderman <v+pyt...@g.nevcal.com> wrote:

One place a double indent is extremely nice is for lines that initiate a new
indentation, but are themselves continued:

if some_function(
       Some,
       Parameters,
       To,
       Pass,
       )
   If_True_Operations()

Another way to approach that is

if some_function(
    Some,
    Parameters,
    To,
    Pass,
    ):
        If_True_Operations()

i.e. indent the *body* one more place. This avoids the
jarriness of seeing an outdent that doesn't correspond
to the closing of a suite.

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to