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 lemburg
Recipients ezio.melotti, lemburg, loewis, terry.reedy, tierlieb, vstinner
Date 2015-11-27.21:47:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448660826.58.0.15256436993.issue25742@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-11-27 21:47:06lemburgsetrecipients: + lemburg, loewis, terry.reedy, vstinner, ezio.melotti, tierlieb
2015-11-27 21:47:06lemburgsetmessageid: <1448660826.58.0.15256436993.issue25742@psf.upfronthosting.co.za>
2015-11-27 21:47:06lemburglinkissue25742 messages
2015-11-27 21:47:06lemburgcreate