Saturday, Feb 5, 2022
fixedReplaced python_utils.divide with // operator in oppia
Anurag Verma merged a commit to oppia/oppia that removed uses of a custom division utility in favor of Python 3's native // operator.
Verma worked on fixing part of issue #13956 [1], which tracked the migration away from custom utility functions toward Python 3 built-ins. The PR replaced calls to python_utils.divide with the // floor division operator [2]. This simplifies the codebase by removing an abstraction layer that is no longer necessary in Python 3, making division operations more direct and readable.
Sources
- Fix part of #13956: Replaced python_utils.divide with "//" python3 operator · oppia/oppia
- Fix part of #13956: Replaced python_utils.divide with "//" python3 operator (#14657) · oppia/oppia