Monkeypatching idioms - elegant or ugly? Guido offers a decorator and a metaclass as syntactic sugar for monkeypatching existing Python classes.
Monkeypatching idioms - elegant or ugly? Guido offers a decorator and a metaclass as syntactic sugar for monkeypatching existing Python classes.
Ian Bicking - 30th January 2008 06:09 - #
This is really weird. I always thought meta-classes have to be classes themselves (typically a class which sub-classes 'type'). But Guido's meta-class (monkeypatch_class) is a function?