Skip to content
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

Add support for bytes? #90

Open
5frank opened this issue Jan 7, 2020 · 1 comment
Open

Add support for bytes? #90

5frank opened this issue Jan 7, 2020 · 1 comment

Comments

@5frank
Copy link

5frank commented Jan 7, 2020

Sorry if this is stupid question, but could not bytes be added to the following tuple of supported types?

if isinstance(var, (list, tuple, bytearray)):

Currently this raises txdbus.error.MarshallingError: List, Tuple, Bytearray, or Dictionary required for DBus array if bytes are used.

@WhyNotHugo
Copy link
Collaborator

As per the pythons docs, they're usually fairly interchangeable, so this makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants