True == 1 weirdness

Grant Edwards invalid at invalid.invalid
Wed Sep 16 13:44:42 EDT 2015


On 2015-09-16, Steven D'Aprano <steve at pearwood.info> wrote:
> On Thu, 17 Sep 2015 03:27 am, Grant Edwards wrote:
>
>> On 2015-09-16, Sven R. Kunze <srkunze at mail.de> wrote:
>>> On 16.09.2015 18:57, Random832 wrote:
>>>> I think that chaining should be limited to:
>>>>
>>>> A) all operators are "="
>>>> B) all operators are "is"
>
> [...] 
>> I'm not all that sure A and B should be allowed.
>
> You can take `x == y == z` off me when you pry it from my cold, dead hands.

Well, that case hadn't been mentioned yet. But, I agree that should be
added as case E and be allowed.

-- 
Grant Edwards               grant.b.edwards        Yow! ... or were you
                                  at               driving the PONTIAC that
                              gmail.com            HONKED at me in MIAMI last
                                                   Tuesday?



More information about the Python-list mailing list