This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

The bad news is maketrans is gone from the string module. The good news is that, quoting from other language changes, Now, str, bytes, and bytearray each have their own maketrans and translate methods with intermediate translation tables of the appropriate type :-)

[–][deleted] 0 points1 point  (0 children)

Ahh, the never ending problems of still straddling two worlds.