Rule of order for dot operators?

C.D. Reimer chris at cdreimer.com
Sat May 16 15:55:21 EDT 2015


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




More information about the Python-list mailing list