On Mon, 8 Dec 2014, Vincent Knight wrote:

I have Sage running a bunch of numerical experiments on a cluster. If this change of start up would stop some of those running (as I wouldn't input anything) I also don't think it's a good idea.

Python already knows if it is used interactively or not:

[jm58660@localhost ~]$ echo print 1+2 | python
3
[jm58660@localhost ~]$ python
Python 2.7.5 (default, Nov  3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
1+2
3


No version information in first case.

--
Jori Mäntysalo

Reply via email to