Problem with string.translate
Ulf Engström
ulf at light.mobiliant.com
Thu Mar 15 08:13:26 EST 2001
What version and what platform are you using?
Works fine for me with 2.0final on a Windows2000 and on a SuSE Linux.
Include traceback (with orginial version of the library function) and I'll
see if I can help :)
Ulf
"David Fuess" <fuess at att.net>:
> 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.
More information about the Python-list
mailing list