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
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to