int('2.1') does not work while int(float('2.1')) does

Fredrik Lundh fredrik at pythonware.com
Fri Apr 16 06:12:16 EDT 2004


Joe Mason wrote:int out of this string.
>
> So why can't int(string) mean round toward zero?

because it isn't what it means.

why so obsessed with breaking existing code?  don't you have
anything better to do with your life?

</F>







More information about the Python-list mailing list