Message6559
Issue title was: join() Message on a TypeError is incorrect
Actually it looks like a problem with all the string methods, the message seems to be counting the implicit self argument.
jython:
>>> "a".upper(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: upper() takes exactly one argument (1 given)
python:
>>> "a".upper(1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: upper() takes no arguments (1 given)
jython:
>>> "a".split(",",1,2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: split() takes 1-3 arguments (3 given)
python:
>>> "a".split(",",1,2)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: split() takes at most 2 arguments (3 given)
jython:
>>> "a".replace("a","b",1,1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: replace() takes 3-4 arguments (4 given)
python:
>>> "a".replace("a","b",1,1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: replace() takes at most 3 arguments (4 given) |
|
Date |
User |
Action |
Args |
2011-06-22 20:14:20 | sbruno | set | messageid: <1308773660.9.0.927132789856.issue1763@psf.upfronthosting.co.za> |
2011-06-22 20:14:20 | sbruno | set | recipients:
+ sbruno |
2011-06-22 20:14:20 | sbruno | link | issue1763 messages |
2011-06-22 20:14:20 | sbruno | create | |
|