On Sun, 7 Aug 2011 01:35:06 -0600, Aaron Meurer <[email protected]> wrote:
> Oh, I forgot the main point I wanted to raise here.  With variables
> wrapped, and each subsequent line indented, it makes it harder for the
> eye to see what lines are wrapped and what lines are part of an
> expanded variable.  You get stuff like (I hope my indentation survives
> this email):
> 
> myvariable: [1,
>   2, 3, 4, 'a s
>   tring']
>   0: 1
>   1: 2
>   2: 3
>   3: 4
>   4: 'a strin
>     g'
> 
> (here, I made the column width 16 to make ie easier to type).
> 
> I suggest replacing the first of the two spaces in front of the first
> line in an internal variable with another character.  The best I can
> think of is +.  So it would look like:
> 
> myvariable: [1,
>   2, 3, 4, 'a s
>   tring']
> + 0: 1
> + 1: 2
> + 2: 3
> + 3: 4
> + 4: 'a strin
>     g'
> 
> Deeply nested items would look like:
> 
> alist: [1, [2, 3]]
> + 0: 1
> + 1: [2, 3]
> + + 0: 2
> + + 1: 3
> 
> This would be a trivial change to make, but I just want to know if you
> are OK with it first.

I'm ok with the plusses, but I'd only show at most one per line. (As in,
don't use plusses in front of nested lines.)

Andreas

Attachment: pgpigKhchmIFO.pgp
Description: PGP signature

_______________________________________________
Pudb mailing list
[email protected]
http://lists.tiker.net/listinfo/pudb

Reply via email to