Release 0.2, Depreciation for Days

Mohammed Ahmed
Oct 23, 2020

--

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”.

The documentation that says officially removed

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.

My Changes

All I did was add a try-except statement for my code, and it seems to work great.

My changes

Release 0.2 is going well! Now off to contribute more code! Weeeeeeee!

  • Mo

--

--

Mohammed Ahmed
Mohammed Ahmed

Written by Mohammed Ahmed

0 Followers

Transit Enthusiast, and Games Enthusiast

No responses yet