Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, eric.araujo, loewis, ncoghlan, orsenthil, pitrou, vstinner
Date 2010-10-15.07:29:28
SpamBayes Score 3.5326e-08
Marked as misclassified No
Message-id <1287127769.7.0.475880877325.issue10089@psf.upfronthosting.co.za>
In-reply-to
Content
Well, the syntax allows to pass either a string value (because it's a substring of the command line), or nothing.

When no value is passed, True seems better than None, because this allows the usage of the get() method::
    x = sys.xoptions.get('a')
or::
    if sys.xoptions.get('a'):
this returns None if the option was not set, True if set to a empty value, and a non-empty string if set to an actual value.
History
Date User Action Args
2010-10-15 07:29:29amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, loewis, ncoghlan, orsenthil, pitrou, vstinner, eric.araujo
2010-10-15 07:29:29amaury.forgeotdarcsetmessageid: <1287127769.7.0.475880877325.issue10089@psf.upfronthosting.co.za>
2010-10-15 07:29:28amaury.forgeotdarclinkissue10089 messages
2010-10-15 07:29:28amaury.forgeotdarccreate