Re: cymbalic reference?
On Wed, 16 Jan 2013 16:03:47 +1100
Chris Angelico <firstname.lastname@example.org> wrote:
> On Wed, Jan 16, 2013 at 3:56 PM, rh <email@example.com>
> > 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.
This works. Maybe not that nice to look at...but works.
|All times are GMT. The time now is 04:43 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.