[Python-ideas] Suggestion for 2.7/3.[01] - sys.isinteractive()

Christian Heimes lists at cheimes.de
Sat Nov 15 02:05:07 CET 2008

skip at pobox.com wrote:
> So now I know the proper spelling in python-speak, but that seems like a
> very non-obvious way to do that (and a bit fragile since it's possible, if
> not exactly reasonable to "del sys.ps1".  It seems to me that it would be
> preferable if sys had an "interactive" attribute or an "isinteractive"
> method.  Maybe in 2.7 and 3.0 or 3.1?  Am I way off base?  I realize that
> would present two ways to do it, but in my mind one would be obvious, the
> other not.

+1 from me, skip!


More information about the Python-ideas mailing list