paul j3 added the comment: Changing the test from
if argument_values is not action.default: to if argument_values is not action.default and \ (action.default is None or argument_values != action.default): makes the behavior more consistent. Strings and large ints behave like small ints, matching the default and not counting as "present" Simply using `argument_values != action.default` was not sufficient, since it raised errors in existing test cases (such as ones involving Nones). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18943> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com