Writing floats with PyString_FromFormat
Joakim Hove
hove at phys.ntnu.no
Fri Aug 16 07:38:23 EDT 2002
Hello,
I am writing a small extension-type, where the underlying C
datastructure contains variables of type "double", and in the object
representation I would like to build a string representation of these
doubles. However the "PyString_FromFormat" function seems only accept
the formats:
%(c,d,ld,i,x,s,p,%),
and in particular no %f - how come?
Any suggestions highly appreciated,
Regards
Joakim Hove
--
==== Joakim Hove www.phys.ntnu.no/~hove/ =======================
|| Institutt for fysikk (735) 93637 / E3-166 | Skøyensgate 10D ||
|| N - 7491 Trondheim hove at phys.ntnu.no | N - 7030 Trondheim ||
================================================= 73 93 31 68 =========
More information about the Python-list
mailing list