self

Vojin Jovanovic vjovanov at stevens-tech.edu
Thu Jun 6 10:40:39 EDT 2002


> So ':=' variables would first try to evaluate their expressions in their
> normal namespace (that of the class, the problem you're dealing with now)
and
> would then look for 'normal' variable names to resolve. Only if a name
> wasnt't found in either would a NameError be raised.

Your idea is good.  It would be exactly what I need.  It would bring a lot
to python; a kind of symbolic manipulation capability.  Unfortunately, I
don't think that my current knowledge of Python is sufficient to implement
this in a general way you are suggesting.

V.J.





More information about the Python-list mailing list