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 eajames
Recipients eajames, eric.smith, mark.dickinson, r.david.murray
Date 2016-09-02.14:56:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472828189.91.0.0469973142334.issue27934@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks Mark, yes you installed the right package.

OK I didn't dig deep enough in the sub class. And yea, there shouldn't be any difference between float.__repr__ and float.__str__. Obviously repr calls the object's tp_repr method, while float.__repr__ calls the base float method, which is the one we want.

I didn't do any testing for python 3.x as I couldn't figure out how to import dbus into a local build of 3.x. My mistake here.

> For 2.7, we may want to consider processing float instances using `float.__repr__` instead of plain old `repr`

That should work! I'll upload a new patch for 2.7
History
Date User Action Args
2016-09-02 14:56:29eajamessetrecipients: + eajames, mark.dickinson, eric.smith, r.david.murray
2016-09-02 14:56:29eajamessetmessageid: <1472828189.91.0.0469973142334.issue27934@psf.upfronthosting.co.za>
2016-09-02 14:56:29eajameslinkissue27934 messages
2016-09-02 14:56:29eajamescreate