Re: proposal: give delattr ability to ignore missing attribute

2008-06-10 Thread Fuzzyman
On Jun 10, 4:55 pm, Lie <[EMAIL PROTECTED]> wrote: > On Jun 10, 10:06 pm, Gary Wilson <[EMAIL PROTECTED]> wrote: > > > > > I would like to propose that functionality be added to delattr to > > handle the case when the attribute does not exist. > I've never once needed that functionality. In fact I

Re: proposal: give delattr ability to ignore missing attribute

2008-06-10 Thread Lie
On Jun 10, 10:06 pm, Gary Wilson <[EMAIL PROTECTED]> wrote: > I would like to propose that functionality be added to delattr to > handle the case when the attribute does not exist. > > First off, getattr handles this nicely with the default parameter: > > value = getattr(obj, 'foo', False) > > inst