Created
September 4, 2018 21:20
-
-
Save mahmoud/42f68000cee765ca478f7f59f721f386 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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