[New-bugs-announce] [issue1106] Error in random.shuffle

Vizcaynot report at bugs.python.org
Wed Sep 5 04:20:44 CEST 2007

New submission from Vizcaynot:

In python 3.0a1 under Win XP SP2:
Typing next code:

import random

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

components: Library (Lib)
messages: 55653
nosy: Viscaynot
severity: normal
status: open
title: Error in random.shuffle
type: crash
versions: Python 3.0

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list