Python Grammar (was Re: A TYPICAL NEWBIE MISTAKE?)
Just van Rossum
just at letterror.com
Tue May 16 07:00:48 EDT 2000
At 1:22 AM -0700 16-05-2000, Dirck Blaskey wrote:
>> Theoretically, a colon is only necessary in things like
>>
>> if yes: print "yes"
>
>Oddly enough, the parser doesn't really need the colon here either.
>It can manage to figure out where the if expression ends without it.
Erm, how would you parse this?
if yes ()
That's either two expressions or just one...
Just
More information about the Python-list
mailing list