AllenDowney / ThinkDSP

Think DSP: Digital Signal Processing in Python, by Allen B. Downey.
https://allendowney.github.io/ThinkDSP/
3.97k stars 3.23k forks source link

fractions.gcd() is replaced by math.gcd() in python3.5 #79

Closed horizonl closed 3 years ago

horizonl commented 3 years ago

I encountered import error in the chap01.ipynb, based on the bug tracer, fractions.gcd() is replaced by math.gcd(). I change 'fractions' to 'math' in thinkdsp.py line 19 , error gone.

AllenDowney commented 3 years ago

Turns out I'm not using gcd anyway. I will remove this import.

Thanks for letting me know!