what if the settings "tree" was just a tree of dicts, and then parse the tree all at once after you are done building?
would that look cleaner?
From:
Dan Smith <dsmith@danplanet.com> To: chirp_devel@intrepid.danplanet.com Sent: Wednesday, January 8, 2014 7:18 PM Subject: Re: [chirp_devel] [PATCH] [vx-3] add basic settings support #1291
> What about using a dict/keywords to initialize a setting? The below will > illustrate my lackluster python:
Well, you'd use kwargs instead, but yeah, we could come up with a helper to make it smaller. Even still, it'd still be too long, IMHO :)