[chirp_devel] Using Python properties

Dan Smith
Thu Sep 12 05:33:58 PDT 2013


> While making some changes to the Platform class, I realized the code
> could probably be simplified by removing some getters and using
> properties instead.  However, to make that change, the Platform class
> needs to be derived from Object, which converts it to a new style class. 
> 
> This appears to be a safe change, but I wanted to get other opinions
> before I did that.

Yep, that's fine with me. If you're going to do that, I'd like to see it
done in small pieces, changing one getter to a property at a time, along
with all the other changes required to the rest of the code. I'd also
like to see unit tests come with that to make sure we're good going
forward :)

-- 
Dan Smith
www.danplanet.com
KK7DS

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20130912/9203d94c/attachment-0001.bin 


More information about the chirp_devel mailing list