[issue6223] Make _PyUnicode_AsString as public API

2009-06-06 Thread Benjamin Peterson
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

[issue6223] Make _PyUnicode_AsString as public API

2009-06-06 Thread Haoyu Bai
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