Y
Hacker News
new
|
ask
|
show
|
jobs
by
xapata
3460 days ago
You won't get exact compatibility, but a metaclass implementation would give almost all the features. I can't remember what exactly you give up, but I did that once and I lost some introspection friendliness.
1 comments
xapata
3459 days ago
Nevermind, all you need is type(). Metaclass unnecessary.
link