raw_input weirdness -- shell's fault?

Darrell Gallion darrell at dorb.com
Thu Sep 7 01:06:31 CEST 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