This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Błażej Michalik
Recipients Błażej Michalik, remi.lapeyre, rhettinger, tuxtimo
Date 2018-07-09.09:20:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531128050.06.0.56676864532.issue28657@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-07-09 09:20:50Błażej Michaliksetrecipients: + Błażej Michalik, rhettinger, tuxtimo, remi.lapeyre
2018-07-09 09:20:50Błażej Michaliksetmessageid: <1531128050.06.0.56676864532.issue28657@psf.upfronthosting.co.za>
2018-07-09 09:20:50Błażej Michaliklinkissue28657 messages
2018-07-09 09:20:49Błażej Michalikcreate