Brandt Bucher <brandtbuc...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43376>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to