[Tutor] Random Number Question

Jeff Goodwin jeffbgoodwin at gmail.com
Thu Nov 25 03:34:06 CET 2010


Thanks Adam and Alan for responding, I'm very much a non-programmer, but my
14 year old son wants to learn, so I have to learn to teach him...slow
process lol.
Happy Thanksgiving!
Jeff



On Wed, Nov 24, 2010 at 8:27 PM, Alan Gauld <alan.gauld at btinternet.com>wrote:

>
> "Jeff Goodwin" <jeffbgoodwin at gmail.com> wrote
>
>  Ok, I found the problem, I had saved the file as random.py looks like
>> that
>> was a no-no. Its working now that I changed the name.
>>
>
> Yes that's a bad idea. You probably figured out why, but just in case...
>
>
>>>> import random
>>>>
>>>
> It tries to import itself, which then tries to import itself,
> which then..... infinite loop time...
>
>
> --
> Alan Gauld
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101124/02b5757e/attachment.html>


More information about the Tutor mailing list