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, remi.lapeyre, rhettinger, tuxtimo
Date 2018-07-02.00:52:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530492764.75.0.56676864532.issue28657@psf.upfronthosting.co.za>
In-reply-to
Content
Okay, I'll mark this as on-hold until you find the relevant code.

I'm not sure why you think modifying the class definition would look weird.  That is the normal and intended place to put methods.  Likely, the only reason that you had any success at all when attaching a function to an instance was that it didn't need access to either "self" or "class".
History
Date User Action Args
2018-07-02 00:52:44rhettingersetrecipients: + rhettinger, tuxtimo, Błażej Michalik, remi.lapeyre
2018-07-02 00:52:44rhettingersetmessageid: <1530492764.75.0.56676864532.issue28657@psf.upfronthosting.co.za>
2018-07-02 00:52:44rhettingerlinkissue28657 messages
2018-07-02 00:52:43rhettingercreate