Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2c09057
add test for the predefined object's attributes
furkanonder Mar 25, 2023
9a71e36
Include the "object" type in the lists of documented types
furkanonder Mar 25, 2023
d327409
remove 'or' from augment tuple
furkanonder Mar 28, 2023
73698a5
📜🤖 Added by blurb_it.
blurb-it[bot] Mar 28, 2023
1064065
Add cross-reference to news
furkanonder Mar 30, 2023
ce4d192
Fix format for the function parameter
furkanonder Mar 30, 2023
aca2c04
Add space
furkanonder Mar 30, 2023
f6c12d8
add reference for the 'object'
furkanonder Mar 30, 2023
b1ab4a2
add reference for NotImplemented
furkanonder Mar 30, 2023
d709946
Change ref:`string <textseq>` as class:`str`
furkanonder Mar 31, 2023
105f331
remove hyphen from `newly-created`
furkanonder Mar 31, 2023
119e29b
Update Doc/reference/datamodel.rst
terryjreedy Jun 18, 2023
d8c1995
Merge branch 'main' into issue-60712
furkanonder Jun 7, 2024
7762a08
Update predefined attribute types in testPredefinedAttrs
furkanonder Jul 17, 2024
7ffed7c
Change `universal type` as `top type`
furkanonder Jul 17, 2024
5ad51b9
Merge branch 'main' into issue-60712
furkanonder Jul 20, 2024
71a2d43
Don't mention about the top type
furkanonder Aug 11, 2024
2d9f0a0
Update the description of richcmpfuncs
furkanonder Aug 11, 2024
10adcee
Update Doc/library/stdtypes.rst
furkanonder Aug 12, 2024
f9961eb
Merge branch 'main' into issue-60712
furkanonder Aug 12, 2024
ab5ef40
Revert: Hierarchy Section in Data Model Documentation
furkanonder Oct 17, 2024
6681f67
Revert to original explanations of __new__ and __init__ methods in da…
furkanonder Oct 20, 2024
7d68154
Merge branch 'main' into issue-60712
furkanonder Oct 20, 2024
3f41130
Update Doc/reference/datamodel.rst
furkanonder Oct 21, 2024
026e514
Remove blank line
furkanonder Oct 21, 2024
7181046
Use ref:`str <textseq>` instead of :class:`str
furkanonder Oct 21, 2024
69b710a
Merge branch 'main' into issue-60712
furkanonder Oct 21, 2024
55f8c6a
Revert changes the description of Other Built-in Types in stdtypes.rst
furkanonder Oct 21, 2024
b199746
Update Doc/reference/datamodel.rst
furkanonder Oct 22, 2024
cf6efa1
Merge branch 'main' into issue-60712
willingc Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/reference/datamodel.rst
Co-authored-by: Éric <merwok@netwok.org>
  • Loading branch information
furkanonder and merwok authored Oct 22, 2024
commit b19974615cca60d3a316614f8ffa222cbf6fb1f5
4 changes: 2 additions & 2 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2194,8 +2194,8 @@ Basic customization
immutable (if the object's hash value changes, it will be in the wrong hash
bucket).

User-defined classes (and the :class:`object` class itself) have :meth:`__eq__`
and :meth:`__hash__` methods by default; with them, all objects compare
User-defined classes have :meth:`__eq__` and :meth:`__hash__` methods
by default (inherited from the :class:`object` class); with them, all objects compare
unequal (except with themselves) and ``x.__hash__()`` returns an appropriate
value such that ``x == y`` implies both that ``x is y`` and ``hash(x) == hash(y)``.

Expand Down