[issue7633] decimal.py: type conversion in context methods

Mark Dickinson report at bugs.python.org
Fri Jan 29 21:25:18 CET 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

Re: canonical.  Yes, this made me pause for a second, too.  But I don't see the harm in allowing it to accept ints and longs.  Actually, it then provides a nice public version of _convert_other.

I'd probably also allow is_canonical and number_class to accept ints and longs, just on the basis that that gives fewer special cases.

----------

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


More information about the Python-bugs-list mailing list