About IDLE?

Nick Smallbone nick.smallbone at gmail.com
Thu Mar 9 13:59:56 EST 2006


Sybren Stuvel wrote:
> Dr. Pastor enlightened us with:
> > When I select Run Module in the Edit window, I got only
> > two >>> after the RESTART line.
> > I expected to see the output of several commands!
>
> You never gave it any commands that print output.
>
> I suggest reading the Python tutorial.
>

To be more specific, when you type in an expression at the Python
prompt, it will evaluate it and then print it (if it doesn't evaluate
to None). In a module it doesn't do that, as then you'd have all sorts
of things printed out modules were imported.




More information about the Python-list mailing list