Active Topics

 


Reply
Thread Tools
Posts: 17 | Thanked: 40 times | Joined on Jan 2010 @ Aus
#1
In the python-location docs the section about "Fix attribute members" makes it sounds like we should be able to access the data in GPSDevice.fix using the normal attribute syntax (the dot), but GPSDevice.fix is just a tuple with no extra attributes.

Is this just a style of documentation that I'm not used to, or is GPSDevice.fix supposed to be an object I can access these attributes on? Is there a way to access these attributes by name? Writing things like
Code:
device.fix[1]
(as in the examples on the wiki) doesn't exactly make it clear what you're doing.
 
Posts: 53 | Thanked: 90 times | Joined on Nov 2009 @ Manaus, Brazil
#2
Unfortunately the docs are a bit misleading on this case, and the "fix" attribute is actually a tuple. For now, only index based access is available for it.

I opened a bug report (https://bugs.maemo.org/show_bug.cgi?id=9505) so the documentation can be fixed.
__________________
Anderson Lizardo
 

The Following User Says Thank You to lizardo For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 02:30.