Bug 24428 - Should enforce the type of properties (and other a{sv})
Summary: Should enforce the type of properties (and other a{sv})
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-python (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-09 13:58 UTC by Olivier Crête
Modified: 2019-12-03 19:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.