bdb: which class?
Stuart Zakon
zakons at objectsbydesign.com
Thu Jan 6 21:05:59 EST 2000
Stefan Schwarzer wrote:
>
> If I understand your question: What about
>
> class where_am_i:
> def name( self ):
> 'return the name of the class to which self belongs'
> return self.__class__.__name__
My class is derived from class Bdb in bdp.py. This is the Generic Python
debugger class. The code frame doesn't appear to have any reference to the class
where the method is running from.
Stuart Zakon
More information about the Python-list
mailing list