STINNER Victor added the comment: Serhiy Storchaka added the comment: > The :c:type:`Py_UNICODE` has been deprecated by :pep:`393` and will be > removed in Python 4. All functions using this type are deprecated:
Right... I tried to deprecate and remove all functions using Py_UNICODE but it's hard to change all this code. I gave up :-) > :c:func:`PyUnicode_AsUnicodeAndSize`: use > :c:func:`PyUnicode_AsWideCharString` Sadly, it's not exactly the same: PyUnicode_AsWideCharString returns a new fresh buffer at each call. I'm not sure that it caches the result neither. Victor ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28200> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com