Is this possible in Python ?

andrew cooke andrew at acooke.org
Thu May 15 07:46:30 EDT 2003


"Helmut Jarausch" <jarausch at igpm.rwth-aachen.de> writes:

> Given a program with assignments like
> a=b+a
> one can say either
> monitor 'a' on the left
> or
> monitor 'a' on the right.

not directly (afaik), but you can define a class so that when a is an
instance of that class, the class implements this behaviour.

andrew

-- 
http://www.acooke.org






More information about the Python-list mailing list