◐ Shell
clean mode source ↗

Message 206368 - Python tracker

>   --> '%x' % 3.14  # calls __int__
>   '3'
> 
> One of those behaviours is wrong.  Which?

For '%x' and '%o', it probably doesn't make sense to convert the float
to an int.
(however, it does make sense for other formatters, such as '%d')