Closed MinhHaDuong closed 7 years ago
Proposed fix:
Use a for loop instead of reduce in core.py as follows:
< # Avoid using reduce to be portable between Python v2 and v3
< # return reduce(lambda x, y: x * y, factors)
< result = factors[0]
< for x in factors[1:]:
< result = result * x
< return result
< #
---
> return reduce(lambda x, y: x * y, factors)
And delete line 47 in util.py
Closing, there is a from functools import wraps, reduce in core.py
``Python 3.4.3+ (default, Oct 14 2015, 16:03:50) [GCC 5.2.1 20151010] on linux Type "help", "copyright", "credits" or "license" for more information.