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
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