[Python-checkins] cpython: c-api: Replace PyUnicodeObject* by PyObject* in "U" format doc
victor.stinner
python-checkins at python.org
Thu Dec 1 02:52:12 CET 2011
http://hg.python.org/cpython/rev/ba8e7886fdd7
changeset: 73801:ba8e7886fdd7
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Thu Dec 01 02:52:55 2011 +0100
summary:
c-api: Replace PyUnicodeObject* by PyObject* in "U" format doc
files:
Doc/c-api/arg.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -146,7 +146,7 @@
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\*`.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list