diff options
author | Larry Hastings <larry@hastings.org> | 2014-01-07 20:13:13 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2014-01-07 20:13:13 (GMT) |
commit | 77561cccb277f5347fc1c41a2fb06b7cc3194b8a (patch) | |
tree | c8a8adade248f1e9109f219041ce447e88ccb567 /Modules | |
parent | 16c5191ab3443aa5c1f835848514f94c696a8c4d (diff) | |
download | cpython-77561cccb277f5347fc1c41a2fb06b7cc3194b8a.zip cpython-77561cccb277f5347fc1c41a2fb06b7cc3194b8a.tar.gz cpython-77561cccb277f5347fc1c41a2fb06b7cc3194b8a.tar.bz2 |
Issue #20141: Improved Argument Clinic's support for the PyArg_Parse "O!"
format unit.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/unicodedata.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index eca0054..0261d71 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -117,7 +117,7 @@ static Py_UCS4 getuchar(PyUnicodeObject *obj) unicodedata.UCD.decimal - unichr: object(type='str') + unichr: object(type='PyUnicodeObject *', subclass_of='&PyUnicode_Type') default: object=NULL / @@ -140,13 +140,13 @@ PyDoc_STRVAR(unicodedata_UCD_decimal__doc__, {"decimal", (PyCFunction)unicodedata_UCD_decimal, METH_VARARGS, unicodedata_UCD_decimal__doc__}, static PyObject * -unicodedata_UCD_decimal_impl(PyObject *self, PyObject *unichr, PyObject *default_value); +unicodedata_UCD_decimal_impl(PyObject *self, PyUnicodeObject *unichr, PyObject *default_value); static PyObject * unicodedata_UCD_decimal(PyObject *self, PyObject *args) { PyObject *return_value = NULL; - PyObject *unichr; + PyUnicodeObject *unichr; PyObject *default_value = NULL; if (!PyArg_ParseTuple(args, @@ -160,8 +160,8 @@ exit: } static PyObject * -unicodedata_UCD_decimal_impl(PyObject *self, PyObject *unichr, PyObject *default_value) -/*[clinic checksum: 9576fa55f4ea0be82968af39dc9d0283e634beeb]*/ +unicodedata_UCD_decimal_impl(PyObject *self, PyUnicodeObject *unichr, PyObject *default_value) +/*[clinic checksum: 73edde0e9cd5913ea174c4fa81504369761b7426]*/ { PyUnicodeObject *v = (PyUnicodeObject *)unichr; int have_old = 0; |