> Use MetaClasses to self-register classes upon code initialization
Avoid metaclasses....
> Swap out True and False
Not possible anymore
> Add functions to the list of built-in functions
What are the practical reasons?
> Overload operators via magic methods
Useful but also recommend don’t. I can see someone writting numpy would do that, but most applications don’t have a reason
Profile profile profile! Find the bottlenecks.
Good luck finding a Python library that doesn't use metaclasses anywhere!
https://github.com/requests/requests/search?utf8=%E2%9C%93&q...
> Use MetaClasses to self-register classes upon code initialization
Avoid metaclasses....
> Swap out True and False
Not possible anymore
> Add functions to the list of built-in functions
What are the practical reasons?
> Overload operators via magic methods
Useful but also recommend don’t. I can see someone writting numpy would do that, but most applications don’t have a reason
Profile profile profile! Find the bottlenecks.