Why does len() on a filter object in py3 not just materialize the result instead of raising an error that's mostly unhelpful?
In some contexts, often with generators, this is precisely how they are used. I... eh... this doesn't really matter right?
-
-
I have distaste for python too, just not in this case I guess
-
again, I agree but just reject that it isn't obvious that len consumes the generator
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.