[chirp_devel] [ts2000] Feature complete TS-2000 driver. Fixes #217
Tom Hayward
Tue Mar 31 22:14:55 PDT 2015
On Tue, Mar 31, 2015 at 9:26 PM, Chucks <chuckination at gmail.com> wrote:
> The __memcache to _memcache change was necessary for the TS2000Radio class
> to be able to access the KenwoodLiveRadio superclass's member variable for
> the subclass's get_memory(), set_memory(), and erase_memory() methods and
> cannot be reverted without impacting functioning of the driver. The double
> underscore is analogous to java/C++ private and the single underscore is
> analogous to protected, and it's part of the python black magic that appears
> stylistic but isn't. I really hate that particular bit of the language
> because it does nothing but cause problems, but there's no such thing as a
> language without warts.
Okay, that makes sense. I didn't realize you were accessing this from
the subclass.
P.S. It's not black magic, just name mangling. You should be able to
find it at TS2000Radio._KenwoodLiveRadio__memcache, but please don't
try this :-)
Tom KD7LXL
More information about the chirp_devel
mailing list