hai shi <[email protected]> added the comment:
How about use a flag(such USING_OUT_NAMESPACE) to identify we use namespace or
not?
For example:
subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
for key, value in vars(subnamespace).items():
if USING_OUT_NAMESPACE and not hasattr(namespace, key):
setattr(namespace, key, value)
----------
nosy: +shihai1991
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue9351>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com