3 ms·
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
by xapata 10y 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.
- xapata 10y agoNevermind, all you need is type(). Metaclass unnecessary.