Problem with string.translate
David Fuess
fuess at att.net
Thu Mar 15 07:48:13 EST 2001
I am using Python 2.0 and attempting to perform a string.translate.
The translate string is statically allocated in the setup phase. I
perform a
result = string.translate(source, ttab)
I have also tried
result = source.translate(ttab)
The error I get is that an internal library function in the string
module is calling a builtin function translate with too few arguments!
Is this an implementation problem in the new string class? I have
tried changing the library function, but then it generates other
errors. Please advise.
Thanks,
Dave
More information about the Python-list
mailing list