[issue4648] Fix n//x to n/x in the Docs
Martin v. Löwis
report at bugs.python.org
Sat Dec 13 01:19:00 CET 2008
Martin v. Löwis <martin at v.loewis.de> added the comment:
> For Python 2.x that example code is fine, but Python 3.0 has this
> switched now. Please read http://www.python.org/dev/peps/pep-0238/.
> True division in Python 3.0 is done with one division operator. Please
> fix that code example to reflect that.
I still don't understand. The example doesn't, and shouldn't, use true
division. It does, and should, use floor division, to display the
divisors of a non-prime.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list