detect interactivity

Roald de Vries rdv at roalddevries.nl
Tue Dec 29 10:09:58 EST 2009


Dear all,

Is it possible for a Python script to detect whether it is running  
interactively? It can be useful for e.g. defining functions that are  
only useful in interactive mode.

Kind regards, Roald





More information about the Python-list mailing list