[New-bugs-announce] [issue16837] Number ABC can be instantiated

Alexander Belopolsky report at bugs.python.org
Wed Jan 2 00:26:03 CET 2013


New submission from Alexander Belopolsky:

According to the reference manual, "None of the types defined in [numbers] module can be instantiated."  However,

>>> from numbers import *
>>> Number()
<numbers.Number object at 0x1005e5080>

This can probably be fixed by making Number.__hash__ an abstract method.

----------
messages: 178785
nosy: belopolsky
priority: normal
severity: normal
status: open
title: Number ABC can be instantiated
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16837>
_______________________________________


More information about the New-bugs-announce mailing list