[Python-checkins] cpython (2.7): Issue #28615: Backport imaginary/complex number text from 3.x.

terry.reedy python-checkins at python.org
Fri Nov 11 19:10:01 EST 2016


https://hg.python.org/cpython/rev/f8d12cb7d0fd
changeset:   105066:f8d12cb7d0fd
branch:      2.7
parent:      105062:2776720f549c
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Fri Nov 11 19:09:50 2016 -0500
summary:
  Issue #28615: Backport imaginary/complex number text from 3.x.
Patch by Mariatta Wijaya.

files:
  Doc/library/stdtypes.rst |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -266,9 +266,9 @@
 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list