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
Date 2016-09-01.20:20:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472761223.9.0.580662580928.issue27934@psf.upfronthosting.co.za>
In-reply-to
Content
JSON does not correctly encode dbus.Double types, even though all other dbus types are handled fine. I end up with output like this (0.25 is the floating point value): dbus.Double(0.25, variant_level=1)

Found that the encoding uses repr() for float objects but uses str() for integer objects. I propose a change to use str() for float objects as well. This could be ported back to 2.7 as well
History
Date User Action Args
2016-09-01 20:20:23eajamessetrecipients: + eajames
2016-09-01 20:20:23eajamessetmessageid: <1472761223.9.0.580662580928.issue27934@psf.upfronthosting.co.za>
2016-09-01 20:20:23eajameslinkissue27934 messages
2016-09-01 20:20:23eajamescreate