Re: cymbalic reference?
On Wed, 16 Jan 2013 16:03:47 +1100
Chris Angelico <email@example.com> wrote:
> On Wed, Jan 16, 2013 at 3:56 PM, rh <firstname.lastname@example.org>
> > 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 12:20 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.