>>> re.sub("<", "<", "something < other")
'something < other'
which seems much more readable and consistent to me than s/a/b, though the s/ syntax is great for vim users like me.I don't think this has as much to do with your programming knowledge as your python knowledge?