New submission from Ganesh Kumar <ganesh-ku...@live.com>:

the "allow_abbrev" in "argparse.ArgumentParser" behavior does not work as 
intended in python 3.9.0

$ python3 --version
Python 3.5.3
$ python3 mcve.py -S
$ python3 mcve.py -SS
usage: mcve.py [-h] [-S]
mcve.py: error: unrecognized arguments: -SS

$ python3.9 --version
Python 3.9.0
$ python3.9 mcve.py -S
$ python3.9 mcve.py -SS # no erros raised here
$

Have attached a sample file to check this

----------
components: Library (Lib)
files: mcve.py
messages: 379202
nosy: Rin
priority: normal
severity: normal
status: open
title: allow_abbrev not working as intended in "argparse.ArgumentParser" in 
Python 3.9.0
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file49533/mcve.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42105>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to