On 3/31/21 4:14 PM, Chris Angelico wrote:
I think this code makes some sort of argument in the debate about whether Python has too much flexibility or if it's the best metaprogramming toolset in the world. I'm not sure which side of the debate it falls on, though.
Well, `__init_subclass__` is there to provide metaclass power without needing a full-blown metaclass. I vote elegant hack. :) -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list