From 43cba219d520d6c7449ac2900ca9528efa745c09 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 23 May 2015 16:16:28 -0400 Subject: Make expression legal python by adding '1'. --- Doc/library/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index d9e5cfb..5377335 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 -- cgit v0.12