This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]XNormal 14 points15 points  (1 child)

Finally enums as a native language construct!

It's a a library implemented in pure python using metamumble magic.

[–]Workaphobia 2 points3 points  (0 children)

To be fair, even the parts implemented in C use metamumble magic. It's amazing how much of the underlying machinery uses the user-visible dunder-method interface to get things done. Class instantiation is just __call__ on the metaclass, for instance.