summaryrefslogtreecommitdiff
path: root/Modules/unicodedata.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2014-01-07 12:13:13 -0800
committerLarry Hastings <larry@hastings.org>2014-01-07 12:13:13 -0800
commit40957d3c505ea33c9e69946333db6e1bd582ca28 (patch)
tree6089b596f02f798ad67070789916269aaa86f27d /Modules/unicodedata.c
parent03ec9f114b190f8fe376abfc98da1ddb69f865d1 (diff)
downloadcpython-40957d3c505ea33c9e69946333db6e1bd582ca28.tar.gz
Issue #20141: Improved Argument Clinic's support for the PyArg_Parse "O!"
format unit.
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r--Modules/unicodedata.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index eca0054b45..0261d717b3 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;