Is there a list.replace builtin I cannot find? Or a workaround?
Also: How would perform string.swap(s1, s2) in the following cases:
* There is no secure 'temp' char, meaning that
s.replace(s1,temp).replace(s2,s1).replace(temp,s2)
will fail because any char can be part of s.
* Either s1 or s2 can be more than a single char.
Denis
------
la vita e estrany
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
