[issue2002] Make int() fall back to trunc()

Jeffrey Yasskin report at bugs.python.org
Sun Feb 3 07:40:10 CET 2008


Jeffrey Yasskin added the comment:

Here's a patch to implement the fallback for both int and long. I'm
pretty sure that _PyNumber_ConvertIntegralToInt() is in the wrong place.
Where would be a better place for it?

----------
keywords: +patch
nosy: +rhettinger
Added file: http://bugs.python.org/file9352/int_fall_back_to_trunc.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2002>
__________________________________


More information about the Python-bugs-list mailing list