writing code over several lines
rzed
rzantow at ntelos.net
Sat Oct 18 11:00:47 EDT 2003
"Boris Boutillier" <boris.boutillier at arteris.net> wrote in message
news:pan.2003.10.17.14.09.55.145239 at arteris.net...
> Just some coding ideas :
> List = [
> [100,101,102]
> , [200,201,202]
> , [300,301,302]
> , .....
> ]
> Can make things clearer and sometimes worse.
>
Boris, you are aware that the last member of a Python list can have a
trailing comma, aren't you? In my opinion, this:
List = [
[100,101,102],
[200,201,202],
[300,301,302],
]
is at least as clear, and does not force the unnatural binding of a leading
comma to what follows.
--
rzed
More information about the Python-list
mailing list