[Python-ideas] Set starting point for itertools.product()

Ronie Martinez ronmarti18 at gmail.com
Wed Oct 24 23:47:18 EDT 2018


My idea is to set the starting point for itertools.product()
since it becomes very slow if the point of interest is in the middle. For
example when working with datetime tuples with seconds resolution (worst
case, milli/microseconds), you need to skip a lot of items.

There are several methods I have tried as an alternative but
itertools.product() is the fastest:
- datetime and timedelta
- naive looping

This is where I applied it but the issue at seconds resolution is still a

Setting the starting point might come in handy if we want to skip several
What do you think?

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181025/5772046d/attachment.html>

More information about the Python-ideas mailing list