bdb: which class?

Zakon, Stuart ZakonS at eccelerate.com
Thu Jan 6 09:48:56 EST 2000


Hi,
So far I am using the following within a subclass of Bdb:

	def where_am_i (self, frame):
		name = frame.f_code.co_name
		filename = frame.f_code.co_filename
		lineno = frame.f_code.co_firstlineno
		self.here_i_am = '%s, %s, %d' % (name, filename, lineno)

I would like to have the class name for methods of classes which are being
called but I didn't see it in the documentation for code objects. 
Anybody know if this can be found?

Thanks,
Stuart Zakon






More information about the Python-list mailing list