This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients Viscaynot, georg.brandl
Date 2007-09-05.06:20:19
SpamBayes Score 0.013075614
Marked as misclassified No
Message-id <46DE4AA5.3010402@gmx.net>
In-reply-to <1188958843.33.0.414139103758.issue1106@psf.upfronthosting.co.za>
Content
Vizcaynot schrieb:
> New submission from Vizcaynot:
> 
> In python 3.0a1 under Win XP SP2:
> Typing next code:
> 
> import random
> s=range(10)

range() now returns an iterator, not a sequence, so random.shuffle() can't
work on it. Use list(range()) if you want a list.

Georg
History
Date User Action Args
2007-09-05 06:20:19georg.brandlsetspambayes_score: 0.0130756 -> 0.013075614
recipients: + georg.brandl, Viscaynot
2007-09-05 06:20:19georg.brandllinkissue1106 messages
2007-09-05 06:20:19georg.brandlcreate