]> granicus.if.org Git - python/commitdiff
c-api: Replace PyUnicodeObject* by PyObject* in "U" format doc
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 1 Dec 2011 01:52:55 +0000 (02:52 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 1 Dec 2011 01:52:55 +0000 (02:52 +0100)
Doc/c-api/arg.rst

index a171ac7c537441fe1d83fa8407d979106eaa4706..196aa772b8c04728c946c9bdbefc76756c962219 100644 (file)
@@ -146,7 +146,7 @@ Unless otherwise stated, buffers are not NUL-terminated.
    Like ``u#``, but the Python object may also be ``None``, in which case the
    :c:type:`Py_UNICODE` pointer is set to *NULL*.
 
-``U`` (:class:`str`) [PyUnicodeObject \*]
+``U`` (:class:`str`) [PyObject \*]
    Requires that the Python object is a Unicode object, without attempting
    any conversion.  Raises :exc:`TypeError` if the object is not a Unicode
    object.  The C variable may also be declared as :c:type:`PyObject\*`.