Marcin Kowalczyk added the comment:
Thank you!
This means that I can continue to use PyUnicode_AsUTF8AndSize() without
worries:
https://github.com/google/riegeli/commit/17ab36bfdd6cc55f37cfbb729bd43c9cbff4cd22
--
___
Python tracker
<ht
New submission from Marcin Kowalczyk :
The documentation is silent whether PyUnicode_AsUTF8AndSize() or
PyUnicode_AsUTF8String() is preferred.
We are under the assumption that both are acceptable for the given caller, i.e.
the caller wants to access just the sequence of UTF-8 code units (e.g