[Python-Dev] fileobj.read(float): warning or error?

"Martin v. Löwis" martin at v.loewis.de
Tue Jul 22 07:44:00 CEST 2008

Alex Martelli wrote:
> I thought that's what we had __index__ for -- reject arguments that
> don't SMOOTHLY turn into integers when an integer is actually
> required!

Sure. However, using that would create an incompatibility, that's why
you only get a warning when it falls back to not using __index__.


More information about the Python-Dev mailing list