Am 06-03-2014 11:53, schrieb Aline Manera:
What about always convert to string before to unicode?
if not isinstance(value, unicode):
args[key] = unicode(*str*(value), 'utf-8')
That way we guarantee everything will be unicode in the end.
I agree. Regardless of
the the parameter type, everything can be
converted to string (and subsequently to unicode).