I have a python 3 script that uses itertools.product, but I need to be able to run it on a machine that only has python 2.4 installed. Since itertools.product is new in python 2.6, I no longer have access to this function.
How can I emulate itertools.product in Python 2.4 in a pythonic way?
I'm not too familiar with python 2.4, but per the 2.7 docs: