code review

Chris Angelico rosuav at
Sun Jul 1 02:37:05 CEST 2012

On Sun, Jul 1, 2012 at 10:08 AM, Ben Finney <ben+python at> wrote:
> Thomas Jollans <t at> writes:
>> My sole point, really, is that "normally", one would expect these two
>> expressions to be equivalent:
>> a < b < c
>> (a < b) < c
> What norm gives you that expectation? That's not how those operators
> work in mathematical notation. I know of no programming language that
> would give a newcomer to Python that expectation. So where is the norm
> you're referring to?

C, SQL, REXX, and many other languages.


More information about the Python-list mailing list