diff options
author | Guido van Rossum <guido@python.org> | 1999-03-25 21:23:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-03-25 21:23:26 (GMT) |
commit | cb1f2420ea48c76f84a4542886b869da008423d4 (patch) | |
tree | 0219930a4cf2523b79988a6b041235fb333469b0 /Doc/lib/libfuncs.tex | |
parent | b95227db4f028d2eae32898be368e7e301d0d759 (diff) | |
download | cpython-cb1f2420ea48c76f84a4542886b869da008423d4.zip cpython-cb1f2420ea48c76f84a4542886b869da008423d4.tar.gz cpython-cb1f2420ea48c76f84a4542886b869da008423d4.tar.bz2 |
Document complex() with string arg.
Diffstat (limited to 'Doc/lib/libfuncs.tex')
-rw-r--r-- | Doc/lib/libfuncs.tex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 5870978..f195740 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -134,11 +134,13 @@ class instances are callable if they have a \method{__call__()} method. \end{funcdesc} \begin{funcdesc}{complex}{real\optional{, imag}} - Create a complex number with the value \var{real} + \var{imag}*j. + Create a complex number with the value \var{real} + \var{imag}*j or + convert a string or number to a complex number. Each argument may be any numeric type (including complex). If \var{imag} is omitted, it defaults to zero and the function serves as a numeric conversion function like \function{int()}, - \function{long()} and \function{float()}. + \function{long()} and \function{float()}; in this case it also + accepts a string argument which should be a valid complex number. \end{funcdesc} \begin{funcdesc}{delattr}{object, name} |