Release 0.2, Depreciation for Days
My second PR that I’ve found was a simple fix. It wasn’t too demanding, and was pretty easy to test.
Good ol’ Python tends to depreciate certain functions and or libraries whenever it gets an update. In our case, Python depreciated fractions.gcd() since Python 3.5; it was left for backwards compatibility, but as of 3.9, they’ve officially removed the function from “Fractions” and added it into “math”.
I was browsing through GitHub’s “explore” tab, and found a really cool Repo that deals with Artificial Intelligence. I was looking at the code, and I noticed they’re using fractions.gcd() instead of math.gcd(), so I just made a quick change.
All I did was add a try-except statement for my code, and it seems to work great.
Release 0.2 is going well! Now off to contribute more code! Weeeeeeee!
- Mo