Nikhil <mnikhil at gmail.com> wrote: > Then why to have __len__() internal method at all when the built-in > len() is faster? Because the internal method is used internally. The idea is that you define __len__() on your objects when appropriate. You are not expected to ever call it.