Created
June 27, 2019 09:06
-
-
Save timthelion/bcd1d7ec45a5311b921eca37660feee1 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
| In [11]: class Abc: | |
| ...: def __init_subclass__(cls): | |
| ...: print(cls) | |
| ...: | |
| In [12]: class C(Abc): | |
| ...: pass | |
| ...: | |
| In [13]: C() | |
| Out[13]: <__main__.C at 0x7fcb8b44e630> | |
| In [14]: C() | |
| Out[14]: <__main__.C at 0x7fcb8b44e9e8> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment