Message350638
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) |
|
Date |
User |
Action |
Args |
2019-08-27 17:41:58 | shihai1991 | set | recipients:
+ shihai1991, bethard, ezio.melotti, r.david.murray, nailor, python-dev, petri.lehtinen, paul.j3, mikn, remram, Changaco, smparkes |
2019-08-27 17:41:58 | shihai1991 | set | messageid: <1566927718.39.0.345897096728.issue9351@roundup.psfhosted.org> |
2019-08-27 17:41:58 | shihai1991 | link | issue9351 messages |
2019-08-27 17:41:58 | shihai1991 | create | |
|