Excellent, thanks! DG
--- On Fri, 8/14/09, Robert Kern <[email protected]> wrote: > From: Robert Kern <[email protected]> > Subject: Re: [Numpy-discussion] passing "import numpy as np" as python > command arg in 'doze > To: "Discussion of Numerical Python" <[email protected]> > Date: Friday, August 14, 2009, 3:23 PM > On Fri, Aug 14, 2009 at 17:18, David > Goldsmith<[email protected]> > wrote: > > Thanks, Skipper & Robert; perhaps I'm > misunderstanding what should happen, but this doesn't appear > to work in Windoze: > > > > Begin Terminal output: > > > > C:\Python26>python -c "import numpy as np" > > > > C:\Python26> > > > > End Terminal output. > > > > In other words, no error is returned, but python > doesn't "stay running". > > It's not supposed to, just like "python script.py" doesn't. > Instead, use > > python -i -c "import numpy as np" > > http://docs.python.org/using/cmdline.html > > If you just want to execute some things before entering > the > interpreter every time, use PYTHONSTARTUP instead. Or > IPython. > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, > a harmless > enigma that is made terrible by our own mad attempt to > interpret it as > though it had an underlying truth." > -- Umberto Eco > _______________________________________________ > NumPy-Discussion mailing list > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
