[Python-Dev] object capability; func_closure; __subclasses__

Phillip J. Eby pje at telecommunity.com
Thu Jun 28 17:44:16 CEST 2007


At 04:14 PM 6/28/2007 +0100, tav wrote:
> > Well, there's no __self__ in 2.3 or 2.4; I guess that was added 
> in 2.5.  Darn.
>
>anyone know *why* it was added?
>
> > >Or, setting __call__.__doc__ ?
> >
> > What does that do?
>
>ah, i just wanted a way of providing documentation, and __call__'s
>__doc__ isn't writable...
>
> > If it works, you could probably do the same thing to remove 
> __call__.__self__.
>
>will look into that too...
>
> > In 3.0, I don't mind if the access method moves, I just want to keep
> > the access.  OTOH, I don't really care about __call__.__self__, since
> > I got along fine without it in 2.3/2.4 and didn't know it had been
> > added in 2.5.  :)
>
>w00p!
>
>so, suggestions as to how one can go about getting those 2 access 
>methods moved?

Post a proposal on the Python-3000 list and supply patches to do the moves.



More information about the Python-Dev mailing list