list, object and matching...
Shagshag
shagshag13 at yahoo.fr
Fri May 10 03:45:15 EDT 2002
Hello,
Newbie in python, not fluent in english...
Having a class with, for example, 3 private attributes a, b, c.
Having a python list (or maybe something which inherits from it) which
contains objects from this class.
How can i do to have :
- objecti == objectj only if attribute a and b are equal (c doesn't
need to be checked)
- list.index(objectk) => searching for an object contained in list but
which match only attribute a and b
Thanks in advance...
More information about the Python-list
mailing list