Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
There is a documentation note on type casting along with an example similar to the report https://docs.python.org/3.8/library/argparse.html#default > If the default value is a string, the parser parses the value as if it were a > command-line argument. In particular, the parser applies any type conversion > argument, if provided, before setting the attribute on the Namespace return > value. Otherwise, the parser uses the value as is: ---------- nosy: +paul.j3, rhettinger, xtreak type: -> behavior _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41087> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com