Another C API Question

Farshid Lashkari no at spam.com
Fri Jul 27 18:37:55 CEST 2007


beginner wrote:
> This works with PyFloat only. It does not work with integers.

Did you try it out? I have used it on ints, bools, and objects that 
implement the __float__ method. It does not work on strings though.



More information about the Python-list mailing list