Skip to content

Instantly share code, notes, and snippets.

@akshar-raaj
Created January 29, 2013 11:40
Show Gist options
  • Save akshar-raaj/4663647 to your computer and use it in GitHub Desktop.
Save akshar-raaj/4663647 to your computer and use it in GitHub Desktop.
In [17]: class A(object):
....: pass
....:
In [18]: aa = A()
In [19]: aa.__name__
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-19-f5dbf2ef814f> in <module>()
----> 1 aa.__name__
In [20]: A.__name__
Out[20]: 'A'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment