[Python-ideas] New Python syntax for continuing definitions for existing classes

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 13 19:35:58 EDT 2016


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


More information about the Python-ideas mailing list