J
Joshua Landau
21.07.13 14:29, Joshua Landau напиÑав(ла):
mapping.items(). We can implement s.translate({ord('<'): '<', ord('&'):
'&'}) as s.replace('&', '&').replace('<', '<'), but not as
s.replace('<', '<').replace('&', '&').
I see -- that won't always be the case though, as there can be "loops"
aka "ab" -> "ba".