[New-bugs-announce] [issue42105] allow_abbrev not working as intended in "argparse.ArgumentParser" in Python 3.9.0

Ganesh Kumar report at bugs.python.org
Wed Oct 21 05:44:15 EDT 2020


New submission from Ganesh Kumar <ganesh-kumar at 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 <report at bugs.python.org>
<https://bugs.python.org/issue42105>
_______________________________________


More information about the New-bugs-announce mailing list