[docs] slight bug in the docs
Georg Brandl
georg at python.org
Sun Dec 4 10:41:18 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 29.11.2011 22:49, schrieb bill murphy:
>
> Hi,
>
> I'm not sure if this is a version difference, or simply a bug in the docs.
>
> Here's what your docs say:
> (http://docs.python.org/release/2.3.5/tut/node5.html)
>
>>>> # Integer division returns the floor:
> ... 7/3
>
>
> Here's what python on my machine says:
>
> C:\waggle\qa\server_auto>python Python 3.2.2 (default, Sep 4 2011,
> 09:51:08) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright",
> "credits" or "license" for more information.
>>>> 7/3
> 2.3333333333333335
>
> Seems not to be integer division going on... Though I'm not at all clear if
> this is my particular version, or some configuration thing.
Hi Bill,
this is indeed a version difference: the docs you're looking at are, well,
ancient :)
The division operator was changed to "true" division in Python 3; its docs
are at http://docs.python.org/py3k/.
cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
iEYEARECAAYFAk7bQD4ACgkQN9GcIYhpnLAIHgCglJVeqaK3PR1vbBdx83i7Fd4d
W0oAoIem/wm4Hv85lVedw53VVfDgeocy
=RU1Z
-----END PGP SIGNATURE-----
More information about the docs
mailing list