[issue43376] Add PyComplex_FromString

Brandt Bucher report at bugs.python.org
Wed Mar 3 18:33:17 EST 2021


Brandt Bucher <brandtbucher at gmail.com> 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 converting *Python* strings, so just doing the equivalent of a "complex(s)" call is fine.

----------
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43376>
_______________________________________


More information about the Python-bugs-list mailing list