[Python-Dev] == on object tests identity in 3.x

2014年7月07日 18:53:24 -0700

Andreas Maier writes:
 > A class designer can directly implement what equality means to the
 > class, but he or she cannot implement an accessor method for the
 > value.
Of course she can! What you mean to say, I think, is that Python does
not insist on an accessor method for the value. Ie, there is no dunder
method __value__ on instances of class object.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to