Beginner Question

Kevin Reeder avail at uponrequest.org
Fri Mar 28 16:04:57 EST 2003


On Fri, 28 Mar 2003 03:08:01 -0800, Alex Martelli wrote:

> Kevin Reeder wrote:
> 
>> On Thu, 27 Mar 2003 20:45:04 -0800, Lee Harr wrote:
>> 
>>> Well... it is not just the last line, but I think the best way would
>>> be:
>>> 
>>> import random
>>> def shuffle(self):
>>>     random.shuffle(self.cards)
>> 
>> This one failed to work with the exception: Attribute error: shuffle.
>> Probably something I'm not seeing.
> 
> Weird.  Can you please try to reproduce the error "in the small" and
> just copy and paste it to a post rather than summarizing it?  For me it
> works just fine, e.g.:
> 
> 
I upgraded to 2.2.1 and the function is now working as it should. Thanks.

Kevin




More information about the Python-list mailing list