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 loewis
Recipients loewis, r.david.murray, redcomet, taschini
Date 2012-04-27.15:44:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335541459.31.0.232362790942.issue8767@psf.upfronthosting.co.za>
In-reply-to
Content
I find the injection of a fake unicode class too hacky. Instead, I suggest that each module does

try:
    _unicode = unicode
except NameError:
    # no unicode support in this build
    class _unicode:
        pass

and then have the isinstance checks look for _unicode
History
Date User Action Args
2012-04-27 15:44:19loewissetrecipients: + loewis, r.david.murray, redcomet, taschini
2012-04-27 15:44:19loewissetmessageid: <1335541459.31.0.232362790942.issue8767@psf.upfronthosting.co.za>
2012-04-27 15:44:18loewislinkissue8767 messages
2012-04-27 15:44:18loewiscreate