Hi, This looks like it's because python's strings have change in python 3. The characters used to be 8bit bytes but now they are 16 bits wide.
A quick google tells me that str now has a method called maketrans so s1.maketrans(s2) should work. I'm guessing you are using a tutorial written for one of the older versions of python. I'd suggest you either find a python 3 based tutorial or use an older version of python, maybe python 2.6. ps Can you cut and paste the code into the mail next time, images are a pain to work with. Regards, Sidharth On Tue, Oct 20, 2009 at 1:52 PM, Senthil Kumar M <[email protected]> wrote: > > I am using python IDLE (python3.0.1) . I dont know why this error comes ? I > am a new user to python. > > the link of the image snapshot is > http://img197.imageshack.us/img197/3405/pythonshell.png > > -- > ******************** > M.Senthil Kumar > ******************** > > _______________________________________________ > BangPypers mailing list > [email protected] > http://mail.python.org/mailman/listinfo/bangpypers > > -- I am but a man. _______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers
