Alex Gaynor added the comment:

Design question here: compare_digest on Python 3 supports comparing str (text) 
objects, if they're both ascii-only. This feature is provided, primarily, so 
you can compare hexdigests or similar.

Should the Python 2 version support comparing unicodes? Arguments in favor: 
some amount of consistency. Against: it's not necessary because hexdigest is 
still a str (binary), further it's not actually posisble to replicate the ascii 
only semantic.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21306>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to