Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
>>> class Lol:
... pass
>>> Lol()
<__main__.Lol instance at 0x7fb2bde403b0>
>>> x = Lol()
>>> x
<__main__.Lol instance at 0x7fb2bde403f8>
>>> x.__class__
<class __main__.Lol at 0x7fb2bde2ce88>
>>> type(x)
<type 'instance'>
>>> dir(x)
['__doc__', '__module__']
>>> x.__dict__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment