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

Some small Python ipmrovements #128

Closed
wants to merge 6 commits into from
Closed

Some small Python ipmrovements #128

wants to merge 6 commits into from

Conversation

deix
Copy link
Contributor

@deix deix commented Aug 19, 2018

No description provided.

Speed and memory optisimasttion according to: PEP 289 -- Generator Expressions
https://www.python.org/dev/peps/pep-0289/
Speed and memory optisimasttion according to: PEP 289 -- Generator Expressions
https://www.python.org/dev/peps/pep-0289/
Should always be done using "is" or "is not"
@derv82
Copy link
Owner

derv82 commented Aug 19, 2018

Thanks for the changes!

I've been busy lately, so there's merge conflicts :(

Please fix them, but if you are unable to, I can merge your changes in manually. Just let me know.

This may be more secure solution in case of all intermediate-level directories needed to contain the leaf directory:
https://docs.python.org/2/library/os.html#os.makedirs
@deix
Copy link
Contributor Author

deix commented Aug 20, 2018

You are welcome. Could You please merge changes manually into "crack.py" & "scanner.py" ? It is just removing the "[]" around "max()" and "sum()". The rest of pull request should be up 2 date.

@derv82 derv82 closed this in 17bd96f Aug 25, 2018
@derv82
Copy link
Owner

derv82 commented Aug 25, 2018

I applied the changes to 2.2.3. Thanks for your contribution!

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