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
History
Date User Action Args
2016-09-19 08:54:42vstinnersetrecipients: + vstinner, serhiy.storchaka, steve.dower
2016-09-19 08:54:42vstinnerlinkissue28200 messages
2016-09-19 08:54:41vstinnercreate