Why self?

Louis M. Pecora pecora at anvil.nrl.navy.mil
Wed Jul 10 15:26:47 EDT 2002


In article <slrnaiov1i.9ea.huaiyu at gauss.almadan.ibm.com>, Huaiyu Zhu
<huaiyu at gauss.almadan.ibm.com> wrote:

> The Pythonic way to use namespace is :-)
> 
> from self import x, y, z, a, tseries
> y= x**2 * t/z + a * FFT(tseries)
> to self export y  

Hmmmm....never thought that way.  Very interesting.

> Any change that persists beyond local namespace is mentioned explicitly.
> Does it solve all the problems mentioned below?

Don't know.

-- 
Lou Pecora
  - My views are my own.



More information about the Python-list mailing list