Benjamin Peterson added the comment:
They are not public because implicitly encoding unicode is bad practice
in Python 3. You should use PyUnicode_AsEncodedString() or such.
--
nosy: +benjamin.peterson
resolution: -> rejected
status: open -> closed
New submission from Haoyu Bai :
Why _PyUnicode_AsString and _PyUnicode_AsStringAndSize are not public
API? They are very useful when porting extension module to Python 3,
because they have the semantic as same as PyString_AsString. For
extension author, these API can be used for replacing PyStrin