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

Adding Python 3 euclidean example #138

Closed
wants to merge 5 commits into from
Closed

Adding Python 3 euclidean example #138

wants to merge 5 commits into from

Conversation

KerimovEmil
Copy link

Adding Python 3 euclidean example

@june128 june128 added the Implementation This provides an implementation for an algorithm. (Code and maybe md files are edited.) label Jun 28, 2018
@@ -0,0 +1,28 @@
# submitted by KerimovEmil
def euclid_mod(a, b):

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's very usual to start a function with an empty line (at least not according to pep8). Other than that the implemrntation looks good.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do fix this (which I think you should), make sure to change it in the python2-implementation as well

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can make this change in both files.

@VikingScientist
Copy link
Contributor

This is now in conflict with #141 and #145

@Butt4cak3
Copy link
Contributor

Let's wait with this until #141 is resolved.

…name. Not sure what the conclusion of #141 will be, but it seems like python 3 will be staying.
@leios leios mentioned this pull request Jun 29, 2018
@jiegillet
Copy link
Member

You can remove the python 2 code and replace mentions of python3/py3 by python/py

@jiegillet
Copy link
Member

Honestly, after #168, all this PR does is remove a blank line and add your name. I'm sorry @KerimovEmil the Python side of the AAA was taken by a sudden storm and chaos ensued. I think I will close this PR, hopefully you can find some other chapter to contribute to.

@jiegillet jiegillet self-assigned this Jul 1, 2018
@KerimovEmil
Copy link
Author

Yeah #168 essentially implemented everything this PR was going to do after the change, not sure why that one was merged before this one though. I don't mind closing this PR, I'm sure there are lots of chapters to contribute to.

@KerimovEmil KerimovEmil closed this Jul 1, 2018
@leios
Copy link
Member

leios commented Jul 1, 2018

@KerimovEmil I think #168 just changed a few lines, but we are no longer splitting python 2 and python 3, so there is no need for two separate python versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Implementation This provides an implementation for an algorithm. (Code and maybe md files are edited.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants