[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: Arguement error
From:       "Terry Reedy" <tjreedy () udel ! edu>
Date:       2005-08-31 21:39:18
Message-ID: df5827$n3n$1 () sea ! gmane ! org
[Download RAW message or body]


"Jeffrey Maitland" <jeff.maitland@gmail.com> wrote in message 
news:6829832e050831133030a012f9@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




-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic