<p dir="ltr"><br>
On 1 Feb 2013 13:22, "ezio.melotti" <<a href="mailto:python-checkins@python.org">python-checkins@python.org</a>> wrote:<br>
><br>
> <a href="http://hg.python.org/cpython/rev/79a021beaf58">http://hg.python.org/cpython/rev/79a021beaf58</a><br>
> changeset: 81861:79a021beaf58<br>
> branch: 2.7<br>
> parent: 81859:8ee6d96a1019<br>
> user: Ezio Melotti <<a href="mailto:ezio.melotti@gmail.com">ezio.melotti@gmail.com</a>><br>
> date: Fri Feb 01 05:18:44 2013 +0200<br>
> summary:<br>
> #16128: clarify that instances of user-defined classes compare equal with themselves.<br>
><br>
> files:<br>
> Doc/glossary.rst | 3 ++-<br>
> 1 files changed, 2 insertions(+), 1 deletions(-)<br>
><br>
><br>
> diff --git a/Doc/glossary.rst b/Doc/glossary.rst<br>
> --- a/Doc/glossary.rst<br>
> +++ b/Doc/glossary.rst<br>
> @@ -330,7 +330,8 @@<br>
> All of Python's immutable built-in objects are hashable, while no mutable<br>
> containers (such as lists or dictionaries) are. Objects which are<br>
> instances of user-defined classes are hashable by default; they all<br>
> - compare unequal, and their hash value is their :func:`id`.<br>
> + compare unequal (except with themselves), and their hash value is their<br>
> + :func:`id`.</p>
<p dir="ltr">The hash(x) == id(x) behaviour is a CPython implementation detail. It shouldn't be mentioned here.</p>
<p dir="ltr">><br>
> IDLE<br>
> An Integrated Development Environment for Python. IDLE is a basic editor<br>
><br>
> --<br>
> Repository URL: <a href="http://hg.python.org/cpython">http://hg.python.org/cpython</a><br>
><br>
> _______________________________________________<br>
> Python-checkins mailing list<br>
> <a href="mailto:Python-checkins@python.org">Python-checkins@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/python-checkins">http://mail.python.org/mailman/listinfo/python-checkins</a><br>
><br>
</p>