[issue15906] argparse add_argument() confusing behavior when type=str, default=

Barry A. Warsaw report at bugs.python.org
Wed Sep 12 17:57:37 CEST 2012


Barry A. Warsaw added the comment:

Oops, one small correction for 15906-3.diff: In Python 2.7, s/str/basestring/

Obviously isinstance should just check for str-y-ness in Python 3.{2,3}

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15906>
_______________________________________


More information about the Python-bugs-list mailing list