append to non-existing list

Fredrik Lundh fredrik at pythonware.com
Wed Nov 9 18:55:00 CET 2005


Mike Meyer wrote:

> Float doesn't handle implicit conversion to anything but but builtin types.
> In particular, it doesn't check to see if the object beinng added has a
> __float__ method, and invoke that to do the conversion if it does.

that's because __float__ is there to let you control what float() does,
not to get automatic type conversion for mixed operations.

</F> 






More information about the Python-list mailing list