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 Drekin
Recipients Drekin, doughellmann, georg.brandl, mriedem, saschpe, vstinner
Date 2016-06-13.19:15:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465845317.69.0.261147879329.issue19570@psf.upfronthosting.co.za>
In-reply-to
Content
Recently, I was also hit by this when trying to autoset `sys.argv` to a list of Unicode string (see https://github.com/Drekin/win-unicode-console/issues/20#issuecomment-225638271 ).

It would be nice to have this fixed. It seems to me (I may be wrong) that every occurence of `isinstance(…, str)` is a potential bug in Python 2.7. Either it should be spelled out as `isinstance(…, bytes)` or there should be `isinstance(…, types.StringTypes)` or even `isinstance(…, unicode)`.
History
Date User Action Args
2016-06-13 19:15:17Drekinsetrecipients: + Drekin, georg.brandl, vstinner, doughellmann, saschpe, mriedem
2016-06-13 19:15:17Drekinsetmessageid: <1465845317.69.0.261147879329.issue19570@psf.upfronthosting.co.za>
2016-06-13 19:15:17Drekinlinkissue19570 messages
2016-06-13 19:15:17Drekincreate