Georg Brandl added the comment: 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 ---------- nosy: +georg.brandl resolution: -> invalid status: open -> closed __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1106> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com