cymbalic reference?

Chris Angelico rosuav at gmail.com
Wed Jan 16 00:03:47 EST 2013


On Wed, Jan 16, 2013 at 3:56 PM, rh <richard_hubbe11 at lavabit.com> wrote:
> While I'm at it what magic could I use to print "the-class-I-am-in good"
> instead of hard-coding "Abc good"? I tried __class_ and self.__class__

Almost there! Try self.__class__.__name__ to get the name as a string.

ChrisA



More information about the Python-list mailing list