[issue32474] argparse nargs should support string wrapped integers too

2018-01-01 Thread Shubham Sharma
Change by Shubham Sharma : -- pull_requests: +4949 ___ Python tracker <https://bugs.python.org/issue32474> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32474] argparse nargs should support string wrapped integers too

2018-01-01 Thread Shubham Sharma
Change by Shubham Sharma : -- keywords: +patch pull_requests: +4944 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32474> ___ ___ Py

[issue32474] argparse nargs should support string wrapped integers too

2017-12-31 Thread Shubham Sharma
Shubham Sharma added the comment: nargs can take various values like "*", "+", etc. but doesn't support integers which are wrapped around in strings. Say, I want to take a user input for the nargs value (just a hypothetical situation); now I'll have to check

[issue32474] argparse nargs should support string wrapped integers too

2017-12-31 Thread Shubham Sharma
Shubham Sharma added the comment: A simple int(nargs) would be sufficient. I am getting ready with a PR in some time. -- ___ Python tracker <https://bugs.python.org/issue32

[issue32474] argparse nargs should support string wrapped integers too

2017-12-31 Thread Shubham Sharma
Shubham Sharma added the comment: Values like "1", "2", "3", should be supported. -- ___ Python tracker <https://bugs.python.org/issue32474> ___

[issue32474] argparse nargs should support string wrapped integers too

2017-12-31 Thread Shubham Sharma
Change by Shubham Sharma : -- components: Library (Lib) nosy: shubham1172 priority: normal severity: normal status: open title: argparse nargs should support string wrapped integers too type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8