Created
July 25, 2022 18:59
-
-
Save darvil82/139875c7ce9dca5aa35f80da78fe0eff to your computer and use it in GitHub Desktop.
British python
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 BritishNaming(type): | |
def __new__(mcs, *args): | |
cls = super().__new__(mcs, *args) | |
cls.__init__ = cls.__innit__ | |
return cls | |
class MyBritishClass(metaclass=BritishNaming): | |
def __innit__(self): | |
print("I am british now ig") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment