[Python-3000-checkins] r62615 - python/branches/py3k/Doc/tutorial/controlflow.rst

georg.brandl python-3000-checkins at python.org
Thu May 1 20:06:51 CEST 2008


Author: georg.brandl
Date: Thu May  1 20:06:50 2008
New Revision: 62615

Log:
Don't output floats in prime example.


Modified:
   python/branches/py3k/Doc/tutorial/controlflow.rst

Modified: python/branches/py3k/Doc/tutorial/controlflow.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/controlflow.rst	(original)
+++ python/branches/py3k/Doc/tutorial/controlflow.rst	Thu May  1 20:06:50 2008
@@ -166,7 +166,7 @@
    >>> for n in range(2, 10):
    ...     for x in range(2, n):
    ...         if n % x == 0:
-   ...             print(n, 'equals', x, '*', n/x)
+   ...             print(n, 'equals', x, '*', n//x)
    ...             break
    ...     else:
    ...         # loop fell through without finding a factor


More information about the Python-3000-checkins mailing list