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 rhettinger
Recipients Błażej Michalik, catherinedevlin, remi.lapeyre, rhettinger, tleonhardt, tuxtimo
Date 2019-01-14.21:35:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547501721.62.0.0185575969114.issue28657@roundup.psfhosted.org>
In-reply-to
Content
> Maybe the methods could all rely on `get_names` that
> return `dir(self.__class__)`,

Please read the previous posts on the subject.  The only reason to do this is if we want the module to explicitly support attaching methods directly to instances.  That practice has disadvantages (no access to self) and it is at odds with the design of the module (nothing we ever intended to explicitly support) and it is outside of usual Python norms (methods attached to classes).  AFAICT, the OP's need could be met using traditional (and supported) techniques such as class composition.  Accordingly, there isn't any need to go down this more unusual path.
History
Date User Action Args
2019-01-14 21:35:23rhettingersetrecipients: + rhettinger, catherinedevlin, tuxtimo, Błażej Michalik, tleonhardt, remi.lapeyre
2019-01-14 21:35:21rhettingersetmessageid: <1547501721.62.0.0185575969114.issue28657@roundup.psfhosted.org>
2019-01-14 21:35:21rhettingerlinkissue28657 messages
2019-01-14 21:35:21rhettingercreate