How to fix those errors?
roy at panix.com
Mon Nov 17 03:55:37 CET 2014
In article <54694389$0$13001$c3e8da3$5496439d at news.astraweb.com>,
Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:
> Chris Angelico wrote:
> > You should be able to use two semicolons, that's equivalent to one colon
> > right?
> > ChrisA
> > (No, it isn't, so don't take this advice. Thanks.)
> Oooh! Python-ideas territory!
> I think the parser should allow two consecutive semi-colons, or four commas,
> as an alias for a colon. Then we could write code like:
> def spam(arg);;
> for x in seq,,,,
Wouldn't it make more sense to use four periods?
for x in seq....
First, 2 colons is 4 dots, so it's conservation of punctuation. Second,
it reads pretty well.
More information about the Python-list