]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.5] bpo-30361: Use better example for mixed-type operands (GH-1701) (#1857)
authorMariatta <Mariatta@users.noreply.github.com>
Mon, 29 May 2017 22:20:47 +0000 (15:20 -0700)
committerterryjreedy <tjreedy@udel.edu>
Mon, 29 May 2017 22:20:47 +0000 (18:20 -0400)
(cherry picked from commit e405d4b8dfb8b497e1c3d1f0f8e28030040c165e)

Doc/tutorial/introduction.rst

index af277cec19bb7ff0d6cd23583d5681e86307c2ee..85ba896eaa8ed55b1cd7678ec9540623e1693767 100644 (file)
@@ -100,10 +100,8 @@ give you an error::
 There is full support for floating point; operators with mixed type operands
 convert the integer operand to floating point::
 
-   >>> 3 * 3.75 / 1.5
-   7.5
-   >>> 7.0 / 2
-   3.5
+   >>> 4 * 3.75 - 1
+   14.0
 
 In interactive mode, the last printed expression is assigned to the variable
 ``_``.  This means that when you are using Python as a desk calculator, it is