j
k
j a
j l
Terry Reedy wrote:
.........[site.replace('http://', '')for site in sites]
......[site.replace('http://', '')for site in sites]
...[site.replace('http://', '')for site in sites]
[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.
Back to the thread
Back to the list