[issue8767] Configure: Cannot disable unicode
Martin v. Löwis
report at bugs.python.org
Fri Apr 27 17:44:19 CEST 2012
Martin v. Löwis <martin at v.loewis.de> added the comment:
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
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8767>
_______________________________________
More information about the Python-bugs-list
mailing list