[Python-Dev] Object customization

Greg Stein gstein@lyra.org
Mon, 17 Apr 2000 13:28:18 -0700 (PDT)


On Mon, 17 Apr 2000, Jeremy Hylton wrote:
> >>>>> "SM" == Skip Montanaro <skip@mojam.com> writes:
> 
>   Ken> We haven't even seen a satisfactory approach to referring to
>   Ken> the function, itself, from within the function.  Maybe it's not
>   Ken> even desirable to be able to do that - that's an interesting
>   Ken> question.
> 
>   SM> I hereby propose that within a function the special name __
>   SM> refer to the function.
> 
> I think the syntax is fairly obscure.  I'm neurtral on the whole idea
> of having a special way to get at the function object from within the
> body of the code.

I agree.

> Also, the proposal to handle security policies using attributes
> attached to the function seems wrong.

This isn't the only application of function attributes. Can't throw them
out because one use seems wrong :-)

Cheers,
-g

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