[docs] [issue22001] containers "same" does not always mean "__eq__".
report at bugs.python.org
Fri Jul 18 05:33:15 CEST 2014
Steven D'Aprano added the comment:
On Thu, Jul 17, 2014 at 07:39:21PM +0000, Jim Jewett wrote:
> Note, however, that containers will normally implement item equality
> as "a is b or a==b"
We can't say "will normally", since we don't know about the infinite
number of possible container types that people might create. The most we
can say is that *builtin* container types will [assuming that this is
the intent] or that general containers *may*.
Python tracker <report at bugs.python.org>
More information about the docs