[issue25742] locale.setlocale does not work with unicode strings
Marc-Andre Lemburg
report at bugs.python.org
Fri Nov 27 17:56:23 EST 2015
Marc-Andre Lemburg added the comment:
On 27.11.2015 23:50, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
>> BTW: Why did you use (_str, _unicode) instead of basestring ?
>
> Serhiy usually insists that technically, it's possible to compile Python 2.7 without Unicode support. I don't believe that anyone uses this crazy feature, but well, it was easier to use _unicode (which is already defined) than trying to run a poll on python users :-)
Hmm, but basestring is always defined, even when Python is compiled
without Unicode support (which I agree is not used much these
days). unicode won't exist in such a Python version, so basestring
is actually safer to use than the tuple.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25742>
_______________________________________
More information about the Python-bugs-list
mailing list