Meta Class Maybe?

Dieter Maurer dieter at handshake.de
Sun Jul 23 13:01:31 EDT 2023


Chris Nyland wrote at 2023-7-22 19:12 -0400:
>So I am stuck on a problem. I have a class which I want to use to create
>another class without having to go through the boiler plate of subclassing.

Do you know about `__init_subclass__`?
It is called whenever a class is subclassed and can be used to
check/update the newly created class.


More information about the Python-list mailing list