Skip to content

Commit ff013f5

Browse files
committed
Clarify complex docs
1 parent b4b9574 commit ff013f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ are always available. They are listed here in alphabetical order.
417417
parts (the sign of the imaginary part is mandatory in this case).
418418
The string can optionally be surrounded by whitespaces and the round
419419
parentheses ``'('`` and ``')'``, which are ignored.
420-
The string must not contain whitespace between ASCII plus sign ``'+'``, ASCII hyphen minus
421-
``'-'``, Unicode minus sign ``'−'`` (U+2212), the ``'j'`` or ``'J'`` suffix, and the decimal
420+
The string must not contain whitespace between ASCII plus sign ``'+'`` or ASCII hyphen minus
421+
``'-'`` or Unicode minus sign ``'−'`` (U+2212), the ``'j'`` or ``'J'`` suffix, and the decimal
422422
number. For example, ``complex('1+2j')`` is fine, but ``complex('1 + 2j')`` raises
423423
:exc:`ValueError`.
424424
More precisely, the input must conform to the :token:`~float:complexvalue`

0 commit comments

Comments
 (0)