> I tried encoding=str and it worked well.
Yes, and the lack of readability there is exactly the reason why the usage pattern changed to encoding="unicode" (i.e. a string name) back when Py3 came up. The fact that the old way still works is purely for backwards compatibility in Py2.
> I tried encoding=str and it worked well.
Yes, and the lack of readability there is exactly the reason why the usage
pattern changed to encoding="unicode" (i.e. a string name) back when Py3
came up. The fact that the old way still works is purely for backwards
compatibility in Py2.