list_a-list_b
Michael Gilfix
mgilfix at eecs.tufts.edu
Wed Apr 17 23:09:12 EDT 2002
I think I'd be in favor of allowing some other grammer to extend
beyong a single line (not just () and [ ]). Something like = and ','
make sense to extend beyond one line and the extra indent is pretty
clear. I really like the idea, especially when assigning to object
instances with long names like:
self.long_object.something[ index + 1 % something ] =
blah
It sure beats '\'.
-- Mike
On Wed, Apr 17 @ 20:21, Bengt Richter wrote:
> If you want the form but not the looong one-liner:
>
> self.data[x][y].variable = (
> self.long_function_name(
> lots,
> of,
> arguments
> )
> )
>
> Hm, this makes me wonder if '=' could introduce an optionally indented expression block,
> using ident/dedent where the above is using = ( .. )
--
Michael Gilfix
mgilfix at eecs.tufts.edu
For my gpg public key:
http://www.eecs.tufts.edu/~mgilfix/contact.html
More information about the Python-list
mailing list