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 radsquirrel
Recipients radsquirrel
Date 2018-06-07.16:32:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
JSON does not correctly encode dbus.Byte from dbus-python on 2.7:

dbus.Byte is a subclass of int with its own __str__ implementation.

>>> import json
>>> import dbus
>>> json.dumps(dbus.Byte(0))

On 3.x:

>>> import json
>>> import dbus
>>> json.dumps(dbus.Byte(0))

This seems to have been fixed in 3.x here:
and subsequently:

I'm interested in backporting these but they are marked as enhancements.  However a backport for a similar issue:

was accepted.  Would the maintainers be amenable to a backport of 18264 & 26719?
Date User Action Args
2018-06-07 16:32:41radsquirrelsetrecipients: + radsquirrel
2018-06-07 16:32:41radsquirrelsetmessageid: <>
2018-06-07 16:32:41radsquirrellinkissue33797 messages
2018-06-07 16:32:41radsquirrelcreate