[Python-ideas] Set starting point for itertools.product()
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas