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 remi.lapeyre
Recipients Błażej Michalik, remi.lapeyre, rhettinger, tuxtimo
Date 2018-07-10.10:16:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531217792.65.0.56676864532.issue28657@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Raymond, would updating the attached PR to change https://github.com/remilapeyre/cpython/blob/7c78350f8903f162e5f70ee147c0e97cb1ed5181/Lib/cmd.py#L270 (and others) from `compfunc = getattr(self, 'complete_' + cmd)` to `compfunc = getattr(self.__class__, 'complete_' + cmd)` to have a consistent behavior for the help and the complection ?

Maybe the methods could all rely on `get_names` that return `dir(self.__class__)`, that way, the behavior would be more consistent and Błażej could override this method only to get its desired result.
History
Date User Action Args
2018-07-10 10:16:32remi.lapeyresetrecipients: + remi.lapeyre, rhettinger, tuxtimo, Błażej Michalik
2018-07-10 10:16:32remi.lapeyresetmessageid: <1531217792.65.0.56676864532.issue28657@psf.upfronthosting.co.za>
2018-07-10 10:16:32remi.lapeyrelinkissue28657 messages
2018-07-10 10:16:32remi.lapeyrecreate