Chris Angelico wrote:
It's a little bit magical, in that it looks up the original class using globals();
The way you've written it, monkeypatch() will only work if you call it from the module it's defined in. -- Greg _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/