[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1
report at bugs.python.org
Sun Oct 11 20:08:01 CEST 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
Carl, thanks for that. I was just thinking about abandoning this issue
as not worth fixing.
I need to look at Victor's patch again, but I recall that there were
still some issues: e.g., if the __int__ method of some class returns a
bool, that still ends up getting returned as a bool rather than an int.
Getting everything exactly right seemed fiddly enough to make it not
worth the effort.
Would the bool/int distinction matter to PyPy?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list