-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variant ('v') type does not handle {1: True, 2:False} #23
Comments
+1 Is there another way to over come this? |
Looks like this may have been a simple oversight in the marshalling logic. As to the mixed types in dictionaries, that was partially intentional. It's Tom On Mon, Mar 7, 2016 at 1:49 AM, neowulf33 [email protected] wrote:
|
Hi Tom, Thank you for the quick response. I was able to do the following to overcome this issue:
|
At least, in python2 (where
isinstance(True, int)
isTrue
) If I try to serialize{1: True, 2:False}
as DBUS's variant, it is really serialized as{1: 1, 2:0}
.And also txdbus allows mix of types in such dicts., for example,
{1:'s', 'd': True}
The text was updated successfully, but these errors were encountered: