getting float from PyObject

Fredrik Lundh fredrik at pythonware.com
Mon Nov 24 05:01:01 EST 2003


Bostjan Jerko wrote:

> Is there a way to get C float from PyObject (in C extension)?

val = PyFloat_AsDouble(obj)

see:
http://www.python.org/doc/current/api/floatObjects.html

</F>








More information about the Python-list mailing list