Why self?

David LeBlanc whisper at oz.net
Wed Jul 10 15:50:41 EDT 2002


Louis;

I think he was proposing an idea. I don't believe you can import from self,
and i'm almost positive that "to ... export" isn't part of Python.

David LeBlanc
Seattle, WA USA

> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of Louis M. Pecora
> Sent: Wednesday, July 10, 2002 12:27
> To: python-list at python.org
> Subject: Re: Why self?
>
>
> 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.
> --
> http://mail.python.org/mailman/listinfo/python-list






More information about the Python-list mailing list