[issue11354] argparse: nargs could accept range of options count

2011-04-11 Thread Wojciech Muła
Wojciech Muła added the comment: Steven, thank you for links, I prepared patch against trunk. All tests passed. -- Added file: http://bugs.python.org/file21617/issue11354.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11397] os.path.realpath() may produce incorrect results

2011-03-05 Thread Wojciech Muła
Wojciech Muła added the comment: Confirmed in python3.2. Lib/posixpath.py/_resolve_link: path returned by readlink is normalized by normpath. In this case readlink('zlink') returns 'xlink/../blink', then normpath is called, and returns 'blink'. This ends processin

[issue11354] argparse: nargs could accept range of options count

2011-03-02 Thread Wojciech Muła
Wojciech Muła added the comment: Daniel, thanks for note, fixed. -- Added file: http://bugs.python.org/file20981/test.py ___ Python tracker <http://bugs.python.org/issue11

[issue11354] argparse: nargs could accept range of options count

2011-03-02 Thread Wojciech Muła
Changes by Wojciech Muła : Removed file: http://bugs.python.org/file20948/test.py ___ Python tracker <http://bugs.python.org/issue11354> ___ ___ Python-bugs-list mailin

[issue11354] argparse: nargs could accept range of options count

2011-02-28 Thread Wojciech Muła
Wojciech Muła added the comment: tests -- Added file: http://bugs.python.org/file20948/test.py ___ Python tracker <http://bugs.python.org/issue11354> ___ ___

[issue11354] argparse: nargs could accept range of options count

2011-02-28 Thread Wojciech Muła
New submission from Wojciech Muła : Hi, sometimes it is needed to grab variable, but limited, number of options. For example --point could accept 2, 3 or 4 values: (x,y) or (x,y,z) or (x,y,z,w). Current version of argparse requires postprocessing: parser.add_argument('--point