"Szabolcs Nagy" <[EMAIL PROTECTED]> writes:
> there are iterators which has length:
> >>> i = iter([1,2,3])
> >>> len(i)
> 3
> 
> now isn't there a way to make this length inheritible?

I expect that's a __len__ method, which can be inherited.

> eg. generators could have length in this case:
> >>> g = (x for x in [1,2,3])
> >>> # len(g) == len([1,2,3]) == 3

I dunno what happens with this now.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to