[issue38736] argparse: wrong type from get_default when type is set

2019-11-08 Thread Erik Ahlén
Erik Ahlén added the comment: So, not a bug since you can just do `default = Path('file.txt')`? -- ___ Python tracker <https://bugs.python.org/issue38

[issue38736] argparse: wrong type from get_default when type is set

2019-11-07 Thread Erik Ahlén
New submission from Erik Ahlén : The type of the object returned by get_default isn't converted to the specified type supplied to add_argument. I would expect the type to be the same. -- components: Library (Lib) files: test.py messages: 356194 nosy: Erik Ahlén priority: normal