Błażej Michalik <assassink...@gmail.com> added the comment: It seems to me as if the current implementation forces the user to violate SRP, but I'm not going to argue about that. I don't feel equipped well enough to judge.
> Could this have been done with: setattr(self.__class__, "do_" + command, > func)? Isn't that worse than doing that on an instance? It will work as long as there's only one. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue28657> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com