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

Shorten and simplify #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Velocities
Copy link

Note: Some of the changes I have made to this file involve the implementation of the walrus operator --> := If you do not intend on running this code in python versions 3.8 or above, you can remove the walrus operator changes that I have suggested and just go ahead with the rest of the changes.
This will do the same thing that your code already does, just in a shorter and more easy-to-understand fashion.

Note: Some of the changes I have made to this file involve the implementation of the walrus operator --> :=       If you do not intend on running this code in python versions 3.8 or above, you can remove the walrus operator changes that I have suggested and just go ahead with the rest of the changes.
This will do the same thing that your code already does, just in a shorter and more easy-to-understand fashion.
@Velocities
Copy link
Author

It appears that this is a bot you are using to check the code. Did the changes fail because it wasn't run in python 3.8 or above (for compatibility with the walrus operator)?

@jealous
Copy link
Owner

jealous commented Oct 18, 2021

Yes, it checks the compatibility for python 2.7.

@Velocities
Copy link
Author

Do you guys plan on using it in python 2.7?

@jealous
Copy link
Owner

jealous commented Oct 18, 2021

Some of the machines are still using python2. The default python of my cloud VM is also python2. So I think we'd better make the lib compatible with python2.

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.

2 participants