-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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
bpo-1635741: Enhance get_binascii_state() #19100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Looks like _Pickle_GetState needs same change on sperate PR.. Line 183 in dffe4c0
|
I create this sperate change due to binascii extension module have been ported to |
cc @vstinner Hi, victor. It's a enhancement operation of binascii's |
I don't think that this change is worth it. In practice, I don't see why the state would be NULL. If it's the case, the code should crash anyway :-) Existing code which checks that the state is not NULL with an assertion is fine. But I don't think that this change is worth it. |
got it, thanks, victor :) |
https://bugs.python.org/issue1635741