From: Terry Jan Reedy Date: Sat, 23 May 2015 20:16:28 +0000 (-0400) Subject: Make expression legal python by adding '1'. X-Git-Tag: v3.5.0b1~14^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43cba219d520d6c7449ac2900ca9528efa745c09;p=thirdparty%2FPython%2Fcpython.git Make expression legal python by adding '1'. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index d9e5cfb5fc91..5377335a6e6e 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -248,7 +248,7 @@ are always available. They are listed here in alphabetical order. .. class:: complex([real[, imag]]) - Return a complex number with the value *real* + *imag*\*j or convert a string + Return a complex number with the value *real* + *imag*\*1j or convert a string or number to a complex number. If the first parameter is a string, it will be interpreted as a complex number and the function must be called without a second parameter. The second parameter can never be a string. Each argument