Arguement error
Terry Reedy
tjreedy at udel.edu
Wed Aug 31 17:39:18 EDT 2005
"Jeffrey Maitland" <jeff.maitland at gmail.com> wrote in message
news:6829832e050831133030a012f9 at mail.gmail.com...
Hello folks,
>I am wondering why I am getting this error. when I try to run a script.
>TypeError: translate() takes at most 3 arguments (10 given)
Because you apparently gave it more than 3 args.
>>> str.translate.__doc__
'S.translate(table [,deletechars]) -> string\n\nReturn a copy of the string
S, where all characters occurring in the optional argument deletechars are
removed, and the remaining characters have been mapped through the given
translation table, which must be a string of length 256.'
>but the thing is the method translate actually accepts 10 arguements.
Why do you think that?
Terry J. Reedy
More information about the Python-list
mailing list