About "Object in list" expression
joncle at googlemail.com
Mon Nov 2 11:46:10 CET 2009
On Nov 2, 10:41 am, Mirons <ilmir... at gmail.com> 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 does
> "in" implementation use for comparison (Python is 2.6)?
It would help showing an example...
More information about the Python-list