[SciPy-user] Namespace Questions

Bill Alexander scipy-user@scipy.net
19 Feb 2003 22:27:45 -0800


Straight from Page 2 of the _Python_Essential_Reference_, among other
places.  Sometimes secrets hide in the open.  I am quite embarrassed.

Many thanks.

- Bill

On Wed, 2003-02-19 at 22:18, David Ascher wrote:
> Bill Alexander wrote:
> 
> >Chalk these up to the "I want it like Matlab" category...  My apologies
> >for the length.
> >
> >What I'd like to do is invoke scripting commands from an interactive
> >python session from the global namespace.  In Matlab, all m-file scripts
> >are members of and operate within the invoking namespace, whereas
> >functions create a private interior namespace for operation.  I want to
> >be able to mimic the no-namespace-change scripts of Matlab from within
> >the Python interactive shell.
> >
> 
> Look at execfile()
> 
> --da
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user