paul j3 added the comment:

If we make this change to '_StoreAction', we need to do it to 4 other 
subclasses which take the same 'setattr(namespace, self.dest, values)'.

An alternative would be to define a 'Namespace' function that does this 
conditional 'setattr'.

How should this 'SUPPRESS' affect the usage and help?  I'm seeing "--foo 
==SUPPRESS==".

Do you have practical need for such a 'SUPPRESS', or are you just trying to 
make behavior consistent?  'SUPPRESS' is used for '--help' and subparsers 
because those Actions have important side effects, and we don't want default 
values to appear in the Namespace.  With '_StoreAction', the only effect is to 
store a value in the Namespace.

----------
nosy: +paul.j3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20430>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to