> Several times I've implemented classes with dynamic behaviour in > __getitem__, so they have no strict length (beyond "theoretically > infinite").
Understood, and that's a case where I think you should suppress the warning. I believe the common case is that if you can get a particular item you can count all the items without an infloop or side effects. Said another way, __getitem__ + __len__ is a much more common pattern than __getitem__ without __len__. Skip _______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality