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 Viscaynot
Recipients Viscaynot
Date 2007-09-05.02:20:42
SpamBayes Score 0.13990346
Marked as misclassified No
Message-id <1188958843.33.0.414139103758.issue1106@psf.upfronthosting.co.za>
In-reply-to
Content
In python 3.0a1 under Win XP SP2:
Typing next code:

import random
s=range(10)
random.shuffle(s)

I have next error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\python30\lib\random.py", line 262, in shuffle
    x[i], x[j] = x[j], x[i]
TypeError: 'range' object does not support item assignment

It does not happen in python 2.5
History
Date User Action Args
2007-09-05 02:20:44Viscaynotsetspambayes_score: 0.139903 -> 0.13990346
recipients: + Viscaynot
2007-09-05 02:20:43Viscaynotsetspambayes_score: 0.139903 -> 0.139903
messageid: <1188958843.33.0.414139103758.issue1106@psf.upfronthosting.co.za>
2007-09-05 02:20:43Viscaynotlinkissue1106 messages
2007-09-05 02:20:42Viscaynotcreate