From: Perry G. <pe...@st...> - 2004-12-13 20:10:08
|
On Dec 13, 2004, at 2:57 PM, Ted Drain wrote: > John, > I think the push/pop functions are going to be fairly useful (ipush > and ipop??). We're going to be writing a lot scripts (i.e. functions) > that generate plots for our users. There is no way to tell inside the > script if it's going to be used by a user in interactive mode or by > another script (like a batch report generator). Having push/pop would > let me do: > > def stdPlot( [inputs] ): > ipush( False ) > try: > [ create plot ] > finally: > ipop() > > Of course it's pretty easy to roll your own but I think it would be > nice to have it in the standard set of commands. > Yes, this was exactly the kind of usage I was envisioning. In other words, I don't care what mode the user is using, I want this to run in "noninteractive" mode (according to its current meaning), but I don't want to screw up their state. Perry |