Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: cymbalic reference? (http://www.velocityreviews.com/forums/t956556-re-cymbalic-reference.html)

Chris Angelico 01-16-2013 05:03 AM

Re: cymbalic reference?
 
On Wed, Jan 16, 2013 at 3:56 PM, rh <richard_hubbe11@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


All times are GMT. The time now is 01:47 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.