[Python-3000] More PEP 3101 changes incoming
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Aug 14 03:36:48 CEST 2007
Eric Smith wrote:
> It's not clear to me if __int__ or __index__ is correct, here. I think
> it's __int__, since float won't have __index__, and we want to be able
> to convert float to int (right?).
This issue doesn't arise if the object itself does the
fallback conversion, as in the example I posted, rather
than leave it to generic code in format().
--
Greg
More information about the Python-3000
mailing list