python - Is there any case where len(someObj) does not call someObj's __len__ function? -


Is there any case where len (someObj) does not call some obz's __lane function ?

I recently took the place in the effort to speed up some code (successfully) with the latter. I want to make sure that there is no edge of case where lane (some oz) is not similar to some oz. __Line

Post-text "itemprop =" text ">

if more than __lane__ sys.maxsize returns, lane () exceptions. It is not directly related to calling __lene__ (in fact you have __LAN__ can return any item, which will not be caught until it becomes through the lane () .)


Comments