IDLE vs Command Line

Jesse B. jburns131 at adelphia.net
Wed Aug 11 14:56:59 EDT 2004


Thanks for the feedback. It's happened before, but I was prob using the same
mistake.

"Tom B." <sbabbitt at commspeed.net> wrote in message
news:1092193503.54033 at news.commspeed.net...
>
> "Jesse B." <jburns131 at adelphia.net> wrote in message
> news:8PidncxTb4muxITcRVn-oQ at adelphia.com...
> > I like to work with xemacs, so I've been coding modules with xemacs and
> > running them using the dos prompt (using windows port of xemacs). Some
> > scripts that work fine with IDLE don't work at the dos prompt. For
> example:
> >
> > import random
> >
> > for i in range(10):
> >     x = random.random()
> >     print x
> >
> > This simple script doesn't work if  I use the command prompt, with this
> > syntax: python random.py
> >
> > I am just wondering why that is.
> >
>  It is running the copy of random.py from the python lib not your
random.py
>
> Tom
>
> P.S. it is not trying to import itself!
>
>





More information about the Python-list mailing list