[Python-ideas] [[Python-Dev] PyObject_RichCompareBool identity shortcut] About specializing comparing objects in collections
ZS
szport at gmail.com
Fri Apr 29 08:53:55 CEST 2011
Returning to the original topic post on the comparison of objects in
containers ...
Could be asked to enter a special method __equals__ of objects for
comparison in containers (by default, if it is not defined - use usual
method for compatibility), just as is done in C# (it's special
object's method Equals is used to compare items in the collection).
-----
Zaur
More information about the Python-ideas
mailing list