[Python-mode] [ python-mode-Patches-1815323 ] more flexible indentation of continued lists/tuples/dicts

SourceForge.net noreply at sourceforge.net
Wed Oct 17 21:57:11 CEST 2007


Patches item #1815323, was opened at 2007-10-17 15:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1815323&group_id=86916

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: A. MacLeod (allistermacleod)
Assigned to: Nobody/Anonymous (nobody)
Summary: more flexible indentation of continued lists/tuples/dicts

Initial Comment:
I wanted to be able to indent a continued tuple more than one column when the beginning of the tuple is just sitting on the line by itself:

(long, sequence, of_items,
    that, needs, to_be, wrapped) = input_list

^^^^ - I'd like to have it indent four spaces, rather than just one, but only in this case.. if it's not the first thing, I want normal behavior:

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

               ^^
In these cases the continuation lines up with the open parenthesis (or bracket or brace in the case of lists and dicts, respectively).

Thus, this patch, which introduces the custom variable py-indent-continuations-further (boolean).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1815323&group_id=86916


More information about the Python-mode mailing list