From: Terry Jan Reedy Date: Sat, 23 May 2015 20:16:23 +0000 (-0400) Subject: Make expression legal python by adding '1'. X-Git-Tag: v2.7.11rc1~299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13ab3a46ae8271cbd5b4f47908dd23dfdab2ecd7;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 8af9f582709c..f8f878071791 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -261,7 +261,7 @@ section. .. class:: complex([real[, imag]]) - Return a complex number with the value *real* + *imag*\*j or convert a string or + 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 may be any