From 8c5ca1131d31d1215148576d07173c3dbee176bf Mon Sep 17 00:00:00 2001 From: JMcB Date: Wed, 8 Dec 2021 12:39:45 +0000 Subject: [PATCH 1/4] Fix confusing kerning on period by adding a line break --- Doc/reference/datamodel.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 81dad77fab97a20..ea2a23826b6d62a 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1501,7 +1501,9 @@ Basic customization Called by built-in function :func:`hash` and for operations on members of hashed collections including :class:`set`, :class:`frozenset`, and - :class:`dict`. :meth:`__hash__` should return an integer. The only required + :class:`dict`. + + :meth:`__hash__` should return an integer. The only required property is that objects which compare equal have the same hash value; it is advised to mix together the hash values of the components of the object that also play a part in comparison of objects by packing them into a tuple and From 777f513e86eeb16ea6c9cb6dc5e05664b17b2c60 Mon Sep 17 00:00:00 2001 From: JMcB Date: Sat, 11 Dec 2021 23:49:37 +0000 Subject: [PATCH 2/4] Accept AlexWaygood and terryjreedy suggestions Co-authored-by: Alex Waygood --- Doc/reference/datamodel.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index ea2a23826b6d62a..3a1dec4e2d4d6ff 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1501,9 +1501,7 @@ Basic customization Called by built-in function :func:`hash` and for operations on members of hashed collections including :class:`set`, :class:`frozenset`, and - :class:`dict`. - - :meth:`__hash__` should return an integer. The only required + :class:`dict`. The__hash__ method should return an integer. The only required property is that objects which compare equal have the same hash value; it is advised to mix together the hash values of the components of the object that also play a part in comparison of objects by packing them into a tuple and From cb310d03683cde70b684100a1db31c672b62fc24 Mon Sep 17 00:00:00 2001 From: JMcB Date: Sat, 11 Dec 2021 23:51:09 +0000 Subject: [PATCH 3/4] Add missing space --- Doc/reference/datamodel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 3a1dec4e2d4d6ff..f75688005e663ec 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1501,7 +1501,7 @@ Basic customization Called by built-in function :func:`hash` and for operations on members of hashed collections including :class:`set`, :class:`frozenset`, and - :class:`dict`. The__hash__ method should return an integer. The only required + :class:`dict`. The __hash__ method should return an integer. The only required property is that objects which compare equal have the same hash value; it is advised to mix together the hash values of the components of the object that also play a part in comparison of objects by packing them into a tuple and From 6da08eac8f073eac097f6207a464038d7937e45d Mon Sep 17 00:00:00 2001 From: JMcB Date: Sun, 12 Dec 2021 00:06:06 +0000 Subject: [PATCH 4/4] Update Doc/reference/datamodel.rst Co-authored-by: Alex Waygood --- Doc/reference/datamodel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index f75688005e663ec..e48f28effbe5aa2 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1501,7 +1501,7 @@ Basic customization Called by built-in function :func:`hash` and for operations on members of hashed collections including :class:`set`, :class:`frozenset`, and - :class:`dict`. The __hash__ method should return an integer. The only required + :class:`dict`. The ``__hash__()`` method should return an integer. The only required property is that objects which compare equal have the same hash value; it is advised to mix together the hash values of the components of the object that also play a part in comparison of objects by packing them into a tuple and