[issue32474] argparse nargs should support string wrapped integers too

2017-12-31 Thread Shubham Sharma
Shubham Sharma <shubhamsharma1...@gmail.com> 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 situatio

[issue32474] argparse nargs should support string wrapped integers too

2018-01-01 Thread Shubham Sharma
Change by Shubham Sharma <shubhamsharma1...@gmail.com>: -- pull_requests: +4949 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32474] argparse nargs should support string wrapped integers too

2017-12-31 Thread Shubham Sharma
Change by Shubham Sharma <shubhamsharma1...@gmail.com>: -- 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,

[issue32474] argparse nargs should support string wrapped integers too

2018-01-01 Thread Shubham Sharma
Change by Shubham Sharma <shubhamsharma1...@gmail.com>: -- keywords: +patch pull_requests: +4944 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32474] argparse nargs should support string wrapped integers too

2017-12-31 Thread Shubham Sharma
Shubham Sharma <shubhamsharma1...@gmail.com> added the comment: Values like "1", "2", "3", should be supported. -- ___ Python tracker <rep...@bugs.python.o

[issue32474] argparse nargs should support string wrapped integers too

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