Nice one :)
By the way you can turn classes into functions too:
def __call__(self, a):
print(f"Calling with a=", a)
foo = Foo()
Great! That's the needed comment to complement this article!
By the way you can do this:
In : return_hello = lambda *args, **kwargs: 'hello'
In : class Foo(metaclass=return_hello): ...
In : Foo
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.