[Tutor] class awareness of variable name
Eric Abrahamsen
eric at abrahamsen.com
Mon Sep 17 16:07:32 CEST 2007
> This is pretty hard. For one thing, the object will not be bound to
> a name until after __init__() is finished.
Ah, that's a good thing to know...
> you could probably use the stack frame to find the point of call
> and inspect the byte codes there to find the name...
I was afraid the answer would be something like that! I will be
content with the normal way of doing things then. Thanks for the
explanation.
Yours,
Eric
More information about the Tutor
mailing list