TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The origins of the class Meta idiom in python

6 pointsby mapleoinabout 9 years ago

1 comment

coleiferabout 9 years ago
Nice post! I think to put it concisely, you could say it provides namespacing. Unfortunately, when your classes have inheritance, you end up hand-implementing inheritance for the Meta attributes. I've gone back and forth on what's better, but Meta seems here to stay.