I am a bit lost here:
I can not use itertools.product
in my code. This is in a break point in unittest setUp
method:
ipdb> import itertools
ipdb> itertools
<module 'itertools' (built-in)>
ipdb> itertools.product
<class 'itertools.product'>
ipdb> list(itertools.product([2,7], [1,4]))
*** Error in argument: '(itertools.product([2,7], [1,4]))'
I am Pretty sure that I'm not doing anything weird with the module itself since this is in my codebase (no uncommite changes there):
$ git grep itertools
simple_wbd/climate.py:import itertools
If I try this in Ipython interpreter it works fine.
In [1]: import itertools
In [2]: list(itertools.product([2,7], [1,4]))
Out[2]: [(2, 1), (2, 4), (7, 1), (7, 4)]
I don't even know how to debug this. Any help would be nice.
Thank you.