Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use UTF-8 string caching introduced with Py3.2.
According to the Python documentation, calling `PyUnicode_AsUTF8AndSize` will cache a UTF-8 version of the python string for future use. So let's do that instead of reencoding UTF-16 or UTF-32 to UTF-8 each call to `PyUnicode_AsSTString`.
- Loading branch information