Improve some str/unicode interchangeability
unicode strings are allowed to be used as attribute names, but only if they convert cleanly to ascii. unicode and str need to compare equal to each other and have the same hash value if the unicode is ascii-compatible and has the same value as the str.
Showing
Please register or sign in to comment