On 5/16/2015 12:40 PM, Thomas 'PointedEars' Lahn wrote:
However, for greater efficiency, in general you should call .replace() in such a way that the length of the string it operates on is minimized. For example, if feasible, always slice *before* .replace().
Slice was how I got the slug from the URL in the first place. :) Thank you, Chris Reimer -- https://mail.python.org/mailman/listinfo/python-list