IDLE vs Command Line

Jesse B. jburns131 at
Wed Aug 11 04:24:48 CEST 2004

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

I am just wondering why that is.

More information about the Python-list mailing list