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 bkline
Recipients benjamin.peterson, bkline, josh.r, terry.reedy, xtreak
Date 2019-09-07.10:33:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567852409.78.0.681594168123.issue38003@roundup.psfhosted.org>
In-reply-to
Content
OK, I give up. In parting I will point out that the official Python 2 documentation says "basestring() This abstract type is the superclass for str and unicode. It cannot be called or instantiated, but it can be used to test whether an object is an instance of str or unicode. isinstance(obj, basestring) is equivalent to isinstance(obj, (str, unicode))." That's exactly what the code we are converting (much of which was written years before Python 3 even existed) was doing. As for the idea that we weren't really "planning to use it as logical text" (ignoring the fact that _everyone_ used Python 2 str objects to represent logical text back in 2003, and ignoring the fact that the repro case given at the top of this report converts the 8-bit string value to Unicode -- why else would it do that except to use the value as "logical text"?) ... well, I don't know where to start. I'm done here. :->}
History
Date User Action Args
2019-09-07 10:33:29bklinesetrecipients: + bkline, terry.reedy, benjamin.peterson, josh.r, xtreak
2019-09-07 10:33:29bklinesetmessageid: <1567852409.78.0.681594168123.issue38003@roundup.psfhosted.org>
2019-09-07 10:33:29bklinelinkissue38003 messages
2019-09-07 10:33:29bklinecreate