STINNER Victor added the comment: The title of the issue is "python2 -3 does not warn about str/unicode to bytes conversions and comparisons".
IMO it would be insane to emit BytesWarning on unicode(str). It would break most code using unicode. six.u() function is based on this feature. For example, six.u("abc") calls unicode("abc") in Python 2. I have no opinion for the encode operation: str(unicode). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21401> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com