LWN.net Logo

Metaclasses are evil

Hans Nowak explains how Python metaclasses are evil. "My main gripe with metaclasses is that many people have difficulty understanding them, yet everybody and their daughter seems to use them, even for trivial problem that could have been easily solved without metaclasses. Why is that? Is it just for purposes of showing off? Or is it because it's like a shiny new toy and people absolutely want to use it, even if it's not necessary?"

That article is followed by the Metaclass reprise. "After my little rant about why metaclasses are evil, here's a legitimate use of them: reloadable classes by Ian Bicking."


(Log in to post comments)

Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds