]> granicus.if.org Git - python/commitdiff
Issue #28615: Backport imaginary/complex number text from 3.x.
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 12 Nov 2016 00:09:50 +0000 (19:09 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 12 Nov 2016 00:09:50 +0000 (19:09 -0500)
Patch by Mariatta Wijaya.

Doc/library/stdtypes.rst

index 60c570b7c12e879a42dadc1a349abab65da306e6..9f5255a58a4aa1cf4b39e4aff614ab819ea430fb 100644 (file)
@@ -266,9 +266,9 @@ represented as a plain integer, in which case they yield a long integer.
 Integer literals with an ``'L'`` or ``'l'`` suffix yield long integers (``'L'``
 is preferred because ``1l`` looks too much like eleven!).  Numeric literals
 containing a decimal point or an exponent sign yield floating point numbers.
-Appending ``'j'`` or ``'J'`` to a numeric literal yields a complex number with a
-zero real part. A complex numeric literal is the sum of a real and an imaginary
-part.
+Appending ``'j'`` or ``'J'`` to a numeric literal yields an imaginary number
+(a complex number with a zero real part) which you can add to an integer or
+float to get a complex number with real and imaginary parts.
 
 .. index::
    single: arithmetic