[issue45284] Better `TypeError` message when a string is indexed using a string

2021-09-24 Thread Ganesh Kumar
New submission from Ganesh Kumar : The `TypeError` message when a string is indexed using a string should be similar to the `TypeError` message when a list or tuple is indexed using a string. >>> my_str = 'Rin' >>> my_str[1:3] # works 'in' >>>

[issue42105] allow_abbrev not working as intended in "argparse.ArgumentParser" in Python 3.9.0

2020-10-21 Thread Ganesh Kumar
New submission from Ganesh Kumar : 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 argumen