Brandt Bucher added the comment:
Hm, I didn't realize until now that PyFloat_FromString parses a Python string,
while PyLong_FromString parses a C string (with very different signatures).
That's a bit annoying.
Regardless, I misunderstood the original issue: in this particular case we are
Mark Dickinson added the comment:
I'd imagine "PyComplex_FromString" would be of limited utility in parsing
complex data produced by something other than Python, because of Python's
quirks with "j" rather than "i". But I guess you're talking about a case where
the creation of the text file
New submission from Brandt Bucher :
I recently came across a case where this functionality would be quite useful
(parsing complex values from delimited text files). We have PyLong_FromString
and PyFloat_FromString, but no PyComplex_FromString (I can't find a reason why
it might have been