Strange range

Random832 random832 at fastmail.com
Fri Apr 1 10:42:09 EDT 2016


On Fri, Apr 1, 2016, at 09:24, Chris Angelico wrote:
> It is an iterable. It is not a factory, as that implies that you call
> it.

I do have an objection to this statement. It's perfectly reasonable to
describe the factory pattern as applying to objects on which you call a
method to return the new object you are interested in. In this sense,
all collections are iterator factories.



More information about the Python-list mailing list