-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
optparse store_true uses 1 and 0 #37658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When using store_true and store_false actions, the --- optparse.py 14 Nov 2002 22:00:19 -0000 1.1
+++ optparse.py 29 Dec 2002 07:34:06 -0000
@@ -609,9 +609,9 @@
elif action == "store_const":
setattr(values, dest, self.const)
elif action == "store_true":
- setattr(values, dest, 1)
+ setattr(values, dest, True)
elif action == "store_false":
- setattr(values, dest, 0)
+ setattr(values, dest, False)
elif action == "append":
values.ensure_value(dest, []).append(value)
elif action == "count": |
Logged In: YES Greg, any problem with making this change? Assign to me, if |
Logged In: YES Problems with optparse.py should be addressed via Optik's |
Logged In: YES OK, fixed in rev 1.3 of optparse.py. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: