dunder-docs (was Python is DOOMED! Again!)

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun Feb 1 11:55:45 EST 2015


Steven D'Aprano wrote:

> len tries to call __len__ if it exists, and if not, it tries walking the
> iterable counting items.

Hmmm, I may have mis-remembered that. Perhaps I'm thinking of Ruby.



-- 
Steven




More information about the Python-list mailing list