"Joel Hedlund" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Below, you'll find some background info and an executable code example.
>
> In the code example I have two ways of doing the same thing. The problem 
> is
> that the "Neat" version doesn't work, and the "Ugly" version that works 
> gives
> me the creeps.

To me, your Ugly version is easier to read and understand than the 
so-called Neat version.  You change an attribute of a class to change its 
behavior without changing its identity.  I can imagine ways to hide this, 
but I would leave it simple and explicit.

Terry Jan Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to