Re: [Python-ideas] Making colons optional?

Feb. 8, 2009
8:58 a.m.
On Sun, 8 Feb 2009 03:17:25 -0330 Riobard Zhan <yaogzhan@gmail.com> wrote:
Oops, I thought I missed a clause. The last sentence should be "Non- trailing semicolons can be omitted [if you put each statement in its own line], while non-trailing commas cannot, even if you put each item of [1,2,3] in separate lines." On 8-Feb-09, at 3:34 AM, Mike Meyer wrote:
I'm really confused by your words. Here is a list of statements. a = 1; # non-trailing semicolon of the list of statements b = 2; # trailing semicolon of the list of statements Both semicolons can be omitted. Wait a minute... What do you mean by a "list" of statements? Is this one list of length 2, or two lists of length 1? a = 1 b = 2
5883
Age (days ago)
5883
Last active (days ago)
0 comments
1 participants
participants (1)
-
Riobard Zhan