7 ms·
Keep in mind too that the new class decorators can do a lot of what metaclasses were good for, in a way much easier for the uninitiated to figure out. (Partly b
by jacobolus 16y ago
Keep in mind too that the new class decorators can do a lot of what metaclasses were good for, in a way much easier for the uninitiated to figure out. (Partly because once you understand function decorators class decorators seem obvious and straightforward.)
Metaclasses can do some pretty powerful stuff though. One of those features that you might never need, but if you do, you really do.