[Python-ideas] New Python syntax for continuing definitions for existing classes
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Sep 14 01:40:07 EDT 2016
Chris Angelico wrote:
> Yes. You could tweak that by looking at cls.__module__ and grab it
> from sys.modules, but I kept the example simple. However, I would NOT
> use the standard name lookup mechanism.
Most classes in builtins won't let you monkeypatch them
anyway, so I'm not sure it's worth the bother of trying
to protect against that.
--
Greg
More information about the Python-ideas
mailing list