Mercurial > cpython-lru_cache-weakref
diff Python/modsupport.c @ 71339:2d6d75eaf98c
Py_BuildValue("C") supports non-BMP characters on narrow build
Py_BuildValue("C") doesn't have to check the code point,
PyUnicode_FromOrdinal() checks its input and now supports non-BMP characters
(range U+10000-U+10FFFF).
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Fri, 15 Jul 2011 01:13:24 +0200 |
| parents | 3c9232a684ae |
| children | 204d9391889a |
line wrap: on
line diff
--- a/Python/modsupport.c Thu Jul 14 23:07:44 2011 +0200 +++ b/Python/modsupport.c Fri Jul 15 01:13:24 2011 +0200 @@ -292,11 +292,6 @@ case 'C': { int i = va_arg(*p_va, int); - if (i < 0 || i > PyUnicode_GetMax()) { - PyErr_SetString(PyExc_OverflowError, - "%c arg not in range(0x110000)"); - return NULL; - } return PyUnicode_FromOrdinal(i); }
