Marc-Andre Lemburg added the comment:
I wouldn't say this is a feature request.
What the code wanted to check is "if this is an iterable of two strings,
convert these to a locale string". I have no idea why the doc string uses
"iterable". IMO, a tuple of two strings would have been fine and make the test
case a lot simpler - too late to fix, though.
If the code works with Unicode strings, I think we can change the test to:
if locale and not isinstance(locale, basestring):
...
In Python 3, the function will only accept Unicode strings, so no need to fix
things there.
@tierlieb: Could you provide a patch with test for this ? Thanks.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25742>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com