Re: About "Object in list" expression

2009-11-02 Thread Mirons
On 2 Nov, 11:46, Jon Clements wrote: > On Nov 2, 10:41 am, Mirons wrote: > > > Hi everybody! I'm having a very annoying problem with Python: I need > > to check if a (mutable) object is part of a list but the usual > > expression return True also if the object isn't there. I've > > implemented bo

Re: About "Object in list" expression

2009-11-02 Thread Jon Clements
On Nov 2, 10:41 am, Mirons wrote: > Hi everybody! I'm having a very annoying problem with Python: I need > to check if a (mutable) object is part of a list but the usual > expression return True also if the object isn't there. I've > implemented both __hash__ and __eq__, but still no result. what

About "Object in list" expression

2009-11-02 Thread Mirons
Hi everybody! I'm having a very annoying problem with Python: I need to check if a (mutable) object is part of a list but the usual expression return True also if the object isn't there. I've implemented both __hash__ and __eq__, but still no result. what does "in" implementation use for comparison