Finding the name of a class
Kirk Strauser
kirk at strauser.com
Tue Aug 1 11:56:52 EDT 2006
Larry Bates wrote:
> print print b.__class__.__name__ gives what you want
That doesn't seem to do it, though. Here's the result of importing a module
from my company's internally-developed library:
>>> from Daycos.TableCopier.copyfro import StateProcessor
>>> print StateProcessor.__class__.__name__
type
I'm looking for something that would print 'StateProcessor' but am not
having much luck.
--
Kirk Strauser
More information about the Python-list
mailing list