Message218394
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). |
|
Date |
User |
Action |
Args |
2014-05-13 01:31:51 | vstinner | set | recipients:
+ vstinner, brett.cannon, ezio.melotti, Joshua.J.Cogliati |
2014-05-13 01:31:51 | vstinner | set | messageid: <1399944711.71.0.322005154218.issue21401@psf.upfronthosting.co.za> |
2014-05-13 01:31:51 | vstinner | link | issue21401 messages |
2014-05-13 01:31:51 | vstinner | create | |
|