Hello,

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)

So that:
>>>x = X()
>>>x.debug()
>>>My Instance var is x

( Without passing the name in like: x=X(name="x") ) 

Thx.
\d

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

Reply via email to