[Tutor] class Clowning: saving references to other instances

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Mon, 17 Dec 2001 12:29:36 -0800 (PST)


On Mon, 17 Dec 2001 alan.gauld@bt.com wrote:
>
> > The reason why I'm doing this is just to save 
> > a little redundant processing. 
> 
> But you are introducing a heap of redundant 
> processing by calling exec!

And exec() can be extremely dangerous unless we're careful about it.  We
had a thread about it a while back in September:

    http://aspn.activestate.com/ASPN/Mail/Message/788238


There are usually alternatives to using exec() that are easier to read,
evaluate more quickly, and work out more nicely.