Skip to content

Confirm integer marhsalling/unmarshalling #73

@exvito

Description

@exvito

Creating this ticket as a follow-up of a not 100% clear matter identified in #65 (comment).

Facts:

  • DBus has several int types, singed/unsigned, from 8- to 64- bit wide.
  • Python 3 unified Python int and longs into a common int. In either case, these are arbitrariliy long and may not fit in a 64-bit wide representation.
  • With Python 3 support #11 and associated tickets some changes have been made which may affect this.

What I'm trying to account for:

  • This code appropriately marshals/unmarshals whichever ints (or longs, in Python 2) into the appropriate DBus types or "fails" in a documented way (i.e.: when marshalling a value that does not fit the destination DBus type).

Maybe this is all correct, maybe not. Just leaving this here for future reference and to be checked by someone (me, who knows?) in the future.

Plan:

  • Ensure tests exist for all combinations of DBus integer types and valid/invalid Python integers for each of those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions