Re:Ask HN: Why Did Python Win?
by EdwardDiego on Tuesday August 29, 2023 @05:13PM
(#37314193)
I figure if Django built an entire framework around metaprogramming, I'm going to do it to Django model objects as a form of vengeance.
[ Parent
| on HN ]
I want to see the malicious wonders you can create!
Re:Ask HN: Why Did Python Win?
by EdwardDiego on Tuesday August 29, 2023 @05:34PM
(#37314448)
An easy way to start taking the fight back to the enemy is by overriding __new__ and tinkering with things before/after Django's metaclass __new__ does its own metafoolery.
Also overriding mro() is a fun way to monkey with the inner workings.