mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Forward port only Py3k relevant change in r65642 (giving it a Py3k NEWS entry anyway because of the difference in the changes between the two branches)
This commit is contained in:
parent
7d10c2baf9
commit
36f4952404
2 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,8 @@ class Number(metaclass=ABCMeta):
|
|||
If you just want to check if an argument x is a number, without
|
||||
caring what kind, use isinstance(x, Number).
|
||||
"""
|
||||
# Concrete numeric types must provide their own hash implementation
|
||||
__hash__ = None
|
||||
|
||||
|
||||
## Notes on Decimal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue