This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Joshua.J.Cogliati, brett.cannon, ezio.melotti, vstinner
Date 2014-05-13.01:31:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399944711.71.0.322005154218.issue21401@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2014-05-13 01:31:51vstinnersetrecipients: + vstinner, brett.cannon, ezio.melotti, Joshua.J.Cogliati
2014-05-13 01:31:51vstinnersetmessageid: <1399944711.71.0.322005154218.issue21401@psf.upfronthosting.co.za>
2014-05-13 01:31:51vstinnerlinkissue21401 messages
2014-05-13 01:31:51vstinnercreate