Skip to content

Instantly share code, notes, and snippets.

@mahmoud
Created September 4, 2018 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmoud/42f68000cee765ca478f7f59f721f386 to your computer and use it in GitHub Desktop.
Save mahmoud/42f68000cee765ca478f7f59f721f386 to your computer and use it in GitHub Desktop.
>>> 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