Hacker News new | ask | show | jobs
by vchynarov 3953 days ago
It's interesting how a search for "metaclasses" in the given link doesn't yield any results.
3 comments

That is advanced level stuff :) If you want to add it to this book then kindly go ahead. This book is open source.
It's certainly an arduous task to determine what is intermediate and what isn't! And I think you did an excellent job, from looking at the table of contents (I'll have to take a closer look and have booked marked it for later). Unlike some the above posters, I learned metaclasses relatively early, but there are definitely some things in this book which I haven't seen before. Thank you.
That's a pretty advanced topic. Like a lot of advanced (and some intermediate) topics, you read a bunch of varying documentation and play around with it yourself before you get a good grasp.

For me, one of the more useful things were these slides that talk more about the when and why instead of the how: http://www.vrplumber.com/programming/metaclasses.pdf

Perhaps the author thought metaclasses are Advanced Python.
I'd tend to agree. I've been writing Python for years, and I still haven't had a legitimate use for them. Not to say that there's no use for them, they're handy when implementing an ORM. However, it's not often that you'd need to do something like that.