This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients bethard, d0n, r.david.murray
Date 2014-06-19.13:58:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403186314.53.0.760347227051.issue21805@psf.upfronthosting.co.za>
In-reply-to
Content
I don't understand your use case.  As a user I would expect a switch to either set the value to true or to false, not to toggle it based on some default that might be changed in a configuration file.

But, your method of accomplishing your goal looks fine to me, except that it is unnecessarily verbose.  You can just write:
  
   const=not config_defaults['verbose']

You might also want to make the help text conditional, so that the user knows whether the switch is going to turn verbosity on or off.

You *could* write your own store_opposite action routine, but that seems like overkill, especially if you decide to also make the help text conditional.

Given how simple this is to do, I'm rejecting the feature request.
History
Date User Action Args
2014-06-19 13:58:34r.david.murraysetrecipients: + r.david.murray, bethard, d0n
2014-06-19 13:58:34r.david.murraysetmessageid: <1403186314.53.0.760347227051.issue21805@psf.upfronthosting.co.za>
2014-06-19 13:58:34r.david.murraylinkissue21805 messages
2014-06-19 13:58:34r.david.murraycreate