Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; '*not*': 0.07; 'bug.': 0.07; 'javascript,': 0.07; 'referring': 0.07; 'subject:code': 0.07; 'python': 0.09; 'assumed': 0.09; 'notation': 0.09; 'ruby,': 0.09; 'sql,': 0.09; 'cc:addr:python-list': 0.10; 'language': 0.14; 'languages.': 0.15; 'filename:fname piece:signature': 0.16; 'finney': 0.16; 'wrote:': 0.17; 'equivalent': 0.20; 'error.': 0.21; 'java': 0.21; "i'd": 0.22; 'cc:2**0': 0.23; 'programming': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'language.': 0.27; 'to?': 0.27; 'chris': 0.28; 'this.': 0.29; 'program,': 0.34; 'ben': 0.35; 'received:192.168.0': 0.35; 'there': 0.35; '(i.e.': 0.36; "didn't": 0.36; 'uses': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'first': 0.61; 'jul': 0.65; 'fact,': 0.69; 'newcomer': 0.84; 'norm': 0.84; 'others:': 0.84; 'rexx,': 0.84 Date: Sat, 30 Jun 2012 23:45:25 -0500 From: Evan Driscoll User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Chris Angelico Subject: Re: Re: code review References: <6c39594f-79cb-4d4f-967e-bbc3f68cdbdf@f8g2000pbf.googlegroups.com> <4fed59b7$0$29978$c3e8da3$5496439d@news.astraweb.com> <2662370.TGmo96CKe1@PointedEars.de> <87wr2oecf6.fsf@dpt-info.u-strasbg.fr> <4FEF7117.7000109@jollybox.de> <87bok0qr62.fsf@benfinney.id.au> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA4E602B769153A04E8A3AB99" Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341117961 news.xs4all.nl 6851 [2001:888:2000:d::a6]:56970 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24723 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA4E602B769153A04E8A3AB99 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 6/30/2012 19:37, Chris Angelico wrote: > On Sun, Jul 1, 2012 at 10:08 AM, Ben Finney wrote: >> I know of no programming language that >> would give a newcomer to Python that expectation. So where is the norm= >> you're referring to? >=20 > C, SQL, REXX, and many other languages. Some others: Lua, Javascript, Ruby, O'Caml. In fact, the only language I can find that uses infix notation (i.e. no Lisp) where it's *not* true that "a < b < c" is equivalent to "(a < b) < c" is Haskell -- and that's because < is not associative and "a < b < c" is a syntax error. (FWIW this is my favorite approach.) You may also want to put Java in there as well, as < is effectively not commutative in that language. (I didn't try C#.) I've been programming in Python for a few years and this is the first time I've seen this. If I had seen that in a program, I'd have assumed it was a bug. Evan --------------enigA4E602B769153A04E8A3AB99 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJP79XuAAoJEAOzoR8eZTzgiXoH/jK9d3pZ5YSAlFB/KUChLPzX 4FkzVh5DSTTT69KcgaDpHnuigzL+0ltZmLK8BItEH3pd3LfcsegYbaJ7I6UExtUS BQhnGvQJS26Gc/8xDvaGdCSsYAFCxc1QvB/LR4LnwNmBAjHlKNLf0k79LP72FBc4 8dRopp11FL3TG2BXFnUO+6PCvEgICgWXzPQJc8odittJXjQX9Ticr2ZkhLYCnFdR e4csHh6x+g2m3JMu0jkzMXvDIZQ9F+o4CKJeBGt8Ag6YEsbV/w1t2JkskCn6uoVA AC6Em1HMYGV9ysUKJH6AjuRLcBDKXhsgYWxJIQTkSycdgyn+jYmVm4yKGLCD3Kw= =uFq6 -----END PGP SIGNATURE----- --------------enigA4E602B769153A04E8A3AB99--