On Tue, Jul 27, 2010 at 11:49 AM, Michael Foord <fuzzyman@gmail.com> wrote:
On 27 July 2010 17:42, Alexander Belopolsky <alexander.belopolsky@gmail.com> wrote:On Tue, Jul 27, 2010 at 11:59 AM, Guido van Rossum <guido@python.org> wrote:
..
>> So it doesn't help that 'in' may return something else than a boolIt may kill a use case or two, but not the proposal. In the
>> because the method is called on the wrong object for your purposes.
>
> Well that pretty much kills the proposal. I can't believe nobody
> (including myself) figured this out earlier in the thread. :-(
libraries like numpy where all python containers get replaced, this is
not an issue. Also this problem invites __rcontains__ solution,
Wasn't the lack of an __rcontains__ a problem for the web-sig guys trying to work out the bytes / strings issue?