Message321142
> That method would then perform an assignment with setattr() calls: setattr(self, "do_" + command, func).
Could this have been done with: setattr(self.__class__, "do_" + command, func)?
I'm concerned that attaching functions to the instance is fighting the Python norms and the design of the module. It seems like a can of worms. |
|
Date |
User |
Action |
Args |
2018-07-05 23:34:05 | rhettinger | set | recipients:
+ rhettinger, tuxtimo, Błażej Michalik, remi.lapeyre |
2018-07-05 23:34:05 | rhettinger | set | messageid: <1530833645.53.0.56676864532.issue28657@psf.upfronthosting.co.za> |
2018-07-05 23:34:05 | rhettinger | link | issue28657 messages |
2018-07-05 23:34:05 | rhettinger | create | |
|