Created
August 18, 2020 19:27
-
-
Save miku/5469e0d8ad1866b34f44cb43b05b4770 to your computer and use it in GitHub Desktop.
Metaclass syntax Python 2 and 3
This file contains 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 A: | |
pass | |
class B(metaclass=A): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment