Message276959
| Author |
vstinner |
| Recipients |
serhiy.storchaka, steve.dower, vstinner |
| Date |
2016年09月19日.08:54:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAMpsgwZDqknqsNzSXS8HysZiQYvbetJb720ZxJ+pzV+Gt=-Kqg@mail.gmail.com> |
| In-reply-to |
<1474260394.61.0.637343288097.issue28200@psf.upfronthosting.co.za> |
| Content |
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 |
|