Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.linkpendium.com!news.linkpendium.com!panix!roy From: Roy Smith Newsgroups: comp.lang.python Subject: Re: How to fix those errors? Date: Sun, 16 Nov 2014 21:55:37 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Lines: 30 Message-ID: References: <61579529.uBKFXsbbfR@PointedEars.de> <1692646.8RgHztCiv6@PointedEars.de> <54694389$0$13001$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: localhost X-Trace: reader1.panix.com 1416192938 16625 127.0.0.1 (17 Nov 2014 02:55:38 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 17 Nov 2014 02:55:38 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: csiph.com comp.lang.python:80954 In article <54694389$0$13001$c3e8da3$5496439d@news.astraweb.com>, Steven D'Aprano 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,,,, > pass Wouldn't it make more sense to use four periods? def spam(arg).... for x in seq.... pass First, 2 colons is 4 dots, so it's conservation of punctuation. Second, it reads pretty well.