raw_input weirdness -- shell's fault?

Darrell Gallion darrell at dorb.com
Wed Sep 6 19:06:31 EDT 2000


"Piet van Oostrum" <piet at cs.uu.nl> wrote:
>
> By the way does anybody know a way for a python program on Windows to find
> out if it is running interactively?

Maybe something like this.
>>> print sys.modules['__main__']
<module '__main__' (built-in)>

--Darrell





More information about the Python-list mailing list