[pypy-commit] pypy unicode-utf8-py3: implemented via PyUnicode_EncodeXXX
mattip
pypy.commits at gmail.com
Sun Feb 3 04:33:47 EST 2019
Author: Matti Picus <matti.picus at gmail.com>
Branch: unicode-utf8-py3
Changeset: r95779:07bd199c16df
Date: 2019-02-02 22:20 +0200
http://bitbucket.org/pypy/pypy/changeset/07bd199c16df/
Log: implemented via PyUnicode_EncodeXXX
diff --git a/pypy/module/cpyext/stubs.py b/pypy/module/cpyext/stubs.py
--- a/pypy/module/cpyext/stubs.py
+++ b/pypy/module/cpyext/stubs.py
@@ -1556,13 +1556,6 @@
in consumed."""
raise NotImplementedError
- at cpython_api([rffi.CArrayPtr(Py_UNICODE), Py_ssize_t, rffi.CCHARP], PyObject)
-def PyUnicode_EncodeMBCS(space, s, size, errors):
- """Encode the Py_UNICODE buffer of the given size using MBCS and return
- a Python bytes object. Return NULL if an exception was raised by the
- codec."""
- raise NotImplementedError
-
@cpython_api([PyObject], PyObject)
def PyUnicode_AsMBCSString(space, unicode):
"""Encode a Unicode object using MBCS and return the result as Python bytes
More information about the pypy-commit
mailing list