Skip to content

Commit f6457e7

Browse files
committed
Complex can take a string, thanks AA-Turner.
1 parent 3dd97eb commit f6457e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/functions.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ are always available. They are listed here in alphabetical order.
364364

365365

366366
.. class:: complex(real=0, imag=0)
367+
complex(string, /)
367368

368369
Return a complex number with the value *real* + *imag*\*1j or convert a string
369370
or number to a complex number. If the first parameter is a string, it will

0 commit comments

Comments
 (0)