semi colonic
Rob Cliffe
rob.cliffe at btinternet.com
Thu Feb 23 06:07:42 EST 2023
On 23/02/2023 02:25, Hen Hanna wrote:
>
> i sometimes put extra commas... as:
>
> [ 1, 2, 3, 4, ]
That is a good idea.
Even more so when the items are on separate lines:
[
"spam",
"eggs",
"cheese",
]
and you may want to change the order.
>
> so it is (or may be) easier to add things later.
>
> ----------- i can think of putting extra final ; for the same reason.
That may not be such a good idea. Writing multiple statements on one
line is generally discouraged (notwithstanding that IMO it is
occasionally appropriate).
Rob Cliffe
More information about the Python-list
mailing list