Assigning to self.__class__

Alex Martelli aleax at mail.comcast.net
Thu Jan 26 09:48:32 EST 2006


Heiko Wundram <modelnine at bit-bukket.org> wrote:

> bruno at modulix wrote:
> > Paul McGuire wrote:
> >> or am I taking advantage of a fortuitous accident, which may get
> >> undone at a future time?
> > 
> > It's certainly not  a fortuitous accident.
> 
> And even the (printed) cookbook has examples which assign to
> self.__class__... I guess this means this feature isn't going to go away

Hmmm, I'm the main decision-maker for what goes in the printed cookbook,
but it's Guido who decides what stays or goes in the language, and it's
not as if we always agree (though I will admit that when we disagree it
later usually turns out he's right, but that's another issue;-).  Still,
in this case I don't think we disagree!-)


Alex



More information about the Python-list mailing list