[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-11-26 Thread Leandro Lima
Leandro Lima added the comment: IMV, the adopted solution creates a problem of a mismatch between the signature and the function behavior. I was just hit by this, as I never cared to specify digestmod trusting that Python defaults are usually sound choices. I agree that changing the

[issue37218] Default hmac.new() digestmod has not been removed from documentation

2019-11-26 Thread Leandro Lima
Leandro Lima added the comment: In my view, this function signature changed too silently. Even using static type checkers, I could only find about this compatibility breaking change when actually running the code. If I understand well the reason it was done this way, digestmod needed to