[Python-mode] bug lp:328842, flexible-indentation of multiline assignements

Barry Warsaw barry at python.org
Fri Mar 25 16:54:08 CET 2011


On Mar 25, 2011, at 09:51 AM, Andreas Röhler wrote:

>while considering the request valid, even if the current
>non-indent is an option,
>
>what's the recommendable indent?
>
>Would not choose the block-indent step, rather signal
>it's something different at stake.
>
>What about indenting it to the end of first element of
>previous line?
>
>;;;;;;;;;;;
>(longer, sequence, of_items,
>        that, needs, to_be, wrapped) = input_list
>
>packed_entry = (long, sequence, of_items,
>                 that, needs, to_be, wrapped)
>;;;;;;;;;;

I must be missing something because these two snippets get indented like this
for me, running r405:

-----snip snip-----
(longer, sequence, of_items,
 that, needs, to_be, wrapped) = input_list

packed_entry = (long, sequence, of_items,
                that, needs, to_be, wrapped)
-----snip snip-----

which seems exactly right to me!

If you do introduce a variable to control this, please do retain the current
behavior as default.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-mode/attachments/20110325/a90d673e/attachment.pgp>


More information about the Python-mode mailing list