2 ms·
Is this a joke on the namedtuple trick or is there actually such a module in the standard library?
by fulafel 9y ago
Is this a joke on the namedtuple trick or is there actually such a module in the standard library?
- nerdponx 9y agoNot a joke, but "code as data" was hyperbolic. You can do some pretty amazing metaprogramming in Python with metaclasses, and the inspect and ast modules give you access to the guts of the language.