[Python-ideas] adding a trim convenience function

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 5 23:44:10 CET 2008

Terry Reedy wrote:

>>>>[site.replace('http://', '')for site in sites]

Not exactly the same thing, as the original only replaced
at the beginning of the string.

An re substitution could be used, but that could be
seen as overkill.


More information about the Python-ideas mailing list