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 <rep...@bugs.python.org>
<http://bugs.python.org/issue16837>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to