Skip to content

Instantly share code, notes, and snippets.

@darvil82
Created July 25, 2022 18:59
Show Gist options
  • Save darvil82/139875c7ce9dca5aa35f80da78fe0eff to your computer and use it in GitHub Desktop.
Save darvil82/139875c7ce9dca5aa35f80da78fe0eff to your computer and use it in GitHub Desktop.
British python
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