True == 1 weirdness

Emile van Sebille emile at fenx.com
Wed Sep 16 20:46:45 CEST 2015


On 9/16/2015 10:42 AM, Marko Rauhamaa wrote:
> Steven D'Aprano <steve at pearwood.info>:
>
>> The main reason for supporting arbitrary chained operators is that
>> they could be overloaded and have some meaning that makes sense:
>
> Operator overloading is yet another unfortunate language feature.

dunder methods are there for consenting adults -- I don't consider it a 
wart.

Emile





More information about the Python-list mailing list