Sorry, something went wrong.
|
@shihai1991 @vstinner @corona10 FYI. The macOS test failure looks to be due to the following error which seems unrelated to my change: module 'test.support' has no attribute 'EnvironmentVarGuard' |
Sorry, something went wrong.
|
@shihai1991 @vstinner @corona10 FYI. The macOS test failure looks to be due to the following error which seems unrelated to my change: module 'test.support' has no attribute 'EnvironmentVarGuard' Hm, this failure have no relation with your PR. It's weird. Some failed test cases have updated: https://github.com/python/cpython/blob/master/Lib/test/test_selectors.py#L540 |
Sorry, something went wrong.
|
The failed test cases have been fixed in 490c542 |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR is a little bit too large. Would you mind to restrict it to blake2 which is already complex enough?
Once this PR is merged, you can write a PR for sha3 which is complex. Then we can finish with remaining modules like md5 and sha1. Or publish all PR are once.
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
|
@vstinner that's not a problem - I put each file in its own commit so I can easily submit separate PRs. I'll submit one for sha3, one for blake2, and one with the remaining ones. After breaking up and creating PRs for each I'll address your comments |
Sorry, something went wrong.
Thanks for the review! |
Sorry, something went wrong.
|
@vstinner I'm going on vacation so I'll come back to address you comment next week. |
Sorry, something went wrong.
|
The MacOS/Ubuntu CI has these test failures: 3 tests failed: Running locally (windows) those tests pass: ./PCBuild/amd64/python.exe -m test test_statistics test_hashlib test_random I rebased on the latest master so I'm not sure what could be causing it. **** EDIT **** |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Thanks for the multiple updates. These PR wasn't easy!
Sorry, something went wrong.
|
|
||
| if (Py_IS_TYPE((PyObject*)self, &SHA512type)) { | ||
| if ( (newobj = newSHA512object())==NULL) | ||
| if (Py_IS_TYPE((PyObject*)self, st->sha512_type)) { |
There was a problem hiding this comment.
Without defining_class, this test was wrong. So thanks for using defining_class :-)
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, but please fix the NEWS entry.
Sorry, something went wrong.
|
Merged, thanks. |
Sorry, something went wrong.
https://bugs.python.org/issue1635741