[issue1562] Decimal can't be subclassed useful
Mark Dickinson
report at bugs.python.org
Sat Dec 8 01:46:03 CET 2007
Mark Dickinson added the comment:
It's not clear to me that this would be the right behaviour. Unless I'm
missing something, Decimal behaves in just the same way as types like
int, float and str in this respect:
>>> class myint(int): pass
...
>>> a = myint(2)
>>> b = myint(3)
>>> a+b
5
>>> type(_)
<type 'int'>
Tim Peters had something to say on this subject at:
http://mail.python.org/pipermail/python-list/2005-January/300791.html
----------
nosy: +marketdickinson
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1562>
__________________________________
More information about the Python-bugs-list
mailing list