PyWart: More surpises via "implict conversion to boolean" (and other steaming piles!)

Ned Batchelder ned at nedbatchelder.com
Mon Feb 10 23:00:14 CET 2014


On 2/10/14 4:12 PM, Rotwang wrote:
> On 10/02/2014 18:45, Rick Johnson wrote:
>> [...]
>>
>>      3. Implicit introspection is evil, i prefer all
>>      references to a callable's names to result in a CALL
>>      to that callable, not an introspection!
>
> So, for example, none of
>
>      isinstance(x, myclass)
>
>      map(myfunc, range(10))
>
>      x = property(x_get, x_set)
>
> would still work?

I guess neither would:

     except ValueError:

:(

-- 
Ned Batchelder, http://nedbatchelder.com




More information about the Python-list mailing list