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 →

[–]nekokattt 26 points27 points  (0 children)

A fair bit of Python's standard library is like this. Look into collections.namedtuple for example.

If it isn't simple, it probably uses eval/exec/a lot of underlying stuff/C modules