[docs] Documentation error
Georg Brandl
georg at python.org
Sun Oct 6 09:21:58 CEST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 25.09.2013 14:35, schrieb Marc.Perlmutter at gdc4s.com:
> Found on:
>
> http://docs.python.org/2.7/tutorial/datastructures.html
>
>
>
> in Section 5.6. ?Looping Techniques?
>
>
>
> Correct the text from:
>
> *for*i *in*reversed(xrange(1,10,2)):
>
>
>
> to:
>
> *for* i *in* reversed(range(1,10,2)):
>
>
>
> Reason:
>
> Python 2.7 does not have xrange function
Hi Marc,
I think you're confusing Python 2 and 3; xrange is present in all 2.x
versions but not in 3.x.
cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (GNU/Linux)
iEYEARECAAYFAlJRD5YACgkQN9GcIYhpnLBGpACgrDsZIRqexaFI/v5uSNoF/gbG
//EAn2Q8chrL7oR2sshafXzPbrT0Afeq
=idSZ
-----END PGP SIGNATURE-----
More information about the docs
mailing list