Message162775
I've two suggestions:
* rename the function to 'total_compare'. The name explains what the function actually does in comparison to '=='. It takes the total input values into account instead of using short circuit comparison.
* restrict the function to bytes. The implementation works well with bytes but not with unicode. It's not an issue since hash digests are bytes. The docs could explain the issue with unicode and how user code can implement a reasonable safe conversion. |
|
Date |
User |
Action |
Args |
2012-06-14 12:01:34 | christian.heimes | set | recipients:
+ christian.heimes, loewis, arigo, pitrou, fijall, hynek |
2012-06-14 12:01:34 | christian.heimes | set | messageid: <1339675294.61.0.362837031043.issue15061@psf.upfronthosting.co.za> |
2012-06-14 12:01:34 | christian.heimes | link | issue15061 messages |
2012-06-14 12:01:33 | christian.heimes | create | |
|