Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion to implement gcd in math module #28

Closed
wants to merge 2 commits into from

Conversation

COOLIRON2311
Copy link

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0002%) to 97.706% when pulling 4904a9d on COOLIRON2311:patch-1 into a33b79c on pfalcon:pfalcon.

@pfalcon
Copy link
Owner

pfalcon commented Apr 30, 2019

Thanks for interest in my fork. However, it follows guidelines from https://github.com/micropython/micropython/wiki/ContributorGuidelines , one of guidelines being "anything which can be implemented in Python, should be implemented in Python". gcd() function is trivially implementable in Python, and that's the suggestion I would have regarding it.

@pfalcon pfalcon closed this Apr 30, 2019
@COOLIRON2311
Copy link
Author

I agree with your opinion. Writing this function in Python is very simple and has some other little benefits. The only reason why I created this pr was that I thought that writing this function in C would slightly benefit the performance.

@COOLIRON2311 COOLIRON2311 deleted the patch-1 branch April 30, 2019 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants