[Python-Dev] Re: [Python-checkins] CVS: distutils/distutils cmd.py

Greg Stein gstein@lyra.org
Mon, 10 Apr 2000 01:18:20 -0700 (PDT)


[ damn... can't see the code... went and checked it out... ]

On Sun, 9 Apr 2000, Greg Ward wrote:
> Update of /projects/cvsroot/distutils/distutils
> In directory kaluha:/tmp/cvs-serv16575
> 
> Modified Files:
> 	cmd.py 
> Log Message:
> Added a check for the 'force' attribute in '__getattr__()' -- better than
>   crashing when self.force not defined.

This seems a bit silly. Why don't you simply define .force in the __init__
method?

Better yet: make the other guys crash -- the logic is bad if they are
using something that isn't supposed to be defined on that particular
Command object.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/