Hrvoje Niksic a écrit :
> Donn Ingle <[EMAIL PROTECTED]> writes:
> 
>> Is there a way I can, for debugging, access the instance variable name from
>> within a class?
>> E.g:
>> Class X: 
>>  def debug(self):
>>   print "My instance var is %s" % (some magic Python stuff)
> 
> As others have answered, an instance can live in many variables,

"be bound to many names" would be more accurate IMHO. Python's 
"variables" are name=>object bindings.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to