__contains__() and overload of in : Bug or Feature ???

Hrvoje Niksic hniksic at xemacs.org
Fri Sep 21 10:14:33 EDT 2007


"sebastien.lannez at gmail.com" <sebastien.lannez at gmail.com> writes:

>> The string "yop" evaluates to the boolean value True, as it is not
>> empty.
>
> Does it means that when overloading an operator, python just
> wrap the call to the method and keep control of the returned
> values ???

In case of 'in' operator, it does.



More information about the Python-list mailing list