We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0944249 commit 4a7a33eCopy full SHA for 4a7a33e
1 file changed
Doc/library/functions.rst
@@ -247,6 +247,13 @@ available. They are listed here in alphabetical order.
247
the function serves as a numeric conversion function like :func:`int`,
248
:func:`long` and :func:`float`. If both arguments are omitted, returns ``0j``.
249
250
+ .. note::
251
+
252
+ When converting from a string, the string must not contain whitespace
253
+ around the central ``+`` or ``-`` operator. For example,
254
+ ``complex('1+2j')`` is fine, but ``complex('1 + 2j')`` raises
255
+ :exc:`ValueError`.
256
257
The complex type is described in :ref:`typesnumeric`.
258
259
0 commit comments