Message388803
In following example, we only give 10 arguments to
tarfile.open(). The error message shows "11 arguments were given". We give it 5 arguments and the error message shows "6 were given". This is not correct.
==========================================================
>>> tarfile.open(*[None]*10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: open() takes from 1 to 5 positional arguments but 11 were given
>>> tarfile.open(1,2,3,4,5)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: open() takes from 1 to 5 positional arguments but 6 were given
==========================================================
Expected Output:
For 10 given arguments. the error message is "open() takes from 1 to 5 positional arguments but 10 were given"
Python: 3.9.2
System: ubuntu 16.04 |
|
Date |
User |
Action |
Args |
2021-03-16 03:09:30 | xxm | set | recipients:
+ xxm |
2021-03-16 03:09:30 | xxm | set | messageid: <1615864170.77.0.811664842161.issue43508@roundup.psfhosted.org> |
2021-03-16 03:09:30 | xxm | link | issue43508 messages |
2021-03-16 03:09:30 | xxm | create | |
|