Bug 24428

Summary: Should enforce the type of properties (and other a{sv})
Product: Telepathy Reporter: Olivier CrĂȘte <olivier.crete>
Component: tp-pythonAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Olivier CrĂȘte 2009-10-09 13:58:20 UTC
Since Python has dynamic typing, but dbus doesn't, we need to force the passed stuff to be the right type. Whenever the type of the variant is specified by the spec, there should be code to force the variant into the right type (or produce an exception). I just spent a week discovering that python was putting an int32 instead of a uint32 and it was confusing the UI.
Comment 1 GitLab Migration User 2019-12-03 19:36:00 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-python/issues/7.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.