I've found the following code snippet:
length = length and length or len(string)
To me it appears that this should be equivalent to:
length = length or len(string)
Can I collapse the expression length and length
to just be length
or will I get a different result in some cases?