| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1291,16 +1291,15 @@ These are the "Unicode Escape" codec APIs: | |||
| 1291 | 1291 | ||
| 1292 | 1292 | .. c:function:: PyObject* PyUnicode_AsUnicodeEscapeString(PyObject *unicode) | |
| 1293 | 1293 | ||
| 1294 | - Encode a Unicode object using Unicode-Escape and return the result as Python | ||
| 1295 | - string object. Error handling is "strict". Return *NULL* if an exception was | ||
| 1294 | + Encode a Unicode object using Unicode-Escape and return the result as a | ||
| 1295 | + bytes object. Error handling is "strict". Return *NULL* if an exception was | ||
| 1296 | 1296 | raised by the codec. | |
| 1297 | 1297 | ||
| 1298 | 1298 | ||
| 1299 | 1299 | .. c:function:: PyObject* PyUnicode_EncodeUnicodeEscape(const Py_UNICODE *s, Py_ssize_t size) | |
| 1300 | 1300 | ||
| 1301 | 1301 | Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Unicode-Escape and | |
| 1302 | - return a Python string object. Return *NULL* if an exception was raised by the | ||
| 1303 | - codec. | ||
| 1302 | + return a bytes object. Return *NULL* if an exception was raised by the codec. | ||
| 1304 | 1303 | ||
| 1305 | 1304 | .. deprecated-removed:: 3.3 4.0 | |
| 1306 | 1305 | Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using | |
@@ -1323,16 +1322,15 @@ These are the "Raw Unicode Escape" codec APIs: | |||
| 1323 | 1322 | .. c:function:: PyObject* PyUnicode_AsRawUnicodeEscapeString(PyObject *unicode) | |
| 1324 | 1323 | ||
| 1325 | 1324 | Encode a Unicode object using Raw-Unicode-Escape and return the result as | |
| 1326 | - Python string object. Error handling is "strict". Return *NULL* if an exception | ||
| 1325 | + a bytes object. Error handling is "strict". Return *NULL* if an exception | ||
| 1327 | 1326 | was raised by the codec. | |
| 1328 | 1327 | ||
| 1329 | 1328 | ||
| 1330 | 1329 | .. c:function:: PyObject* PyUnicode_EncodeRawUnicodeEscape(const Py_UNICODE *s, \ | |
| 1331 | 1330 | Py_ssize_t size, const char *errors) | |
| 1332 | 1331 | ||
| 1333 | 1332 | Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Raw-Unicode-Escape | |
| 1334 | - and return a Python string object. Return *NULL* if an exception was raised by | ||
| 1335 | - the codec. | ||
| 1333 | + and return a bytes object. Return *NULL* if an exception was raised by the codec. | ||
| 1336 | 1334 | ||
| 1337 | 1335 | .. deprecated-removed:: 3.3 4.0 | |
| 1338 | 1336 | Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using | |
| Back | FazBrowse Home | New Git URL |
0 commit comments