[Tutor] class awareness of variable name

Eric Abrahamsen eric at abrahamsen.com
Mon Sep 17 07:56:49 CEST 2007


When instantiating a class, is it possible for that instance to  
'know' (via the __init__ method, I suppose) the name of the variable  
it's been assigned to?

Thanks
E


More information about the Tutor mailing list