diff Doc/c-api/object.rst @ 48872:edd2ca894a67 legacy-trunk

sort of backport 66038 by aliasing PyObject_Bytes to PyObject_Str
author Benjamin Peterson <benjamin@python.org>
date Tue, 26 Aug 2008 17:08:40 +0000
parents 4207219acc7a
children 6ceacd015d67
line wrap: on
line diff
--- a/Doc/c-api/object.rst	Mon Aug 25 03:52:40 2008 +0000
+++ b/Doc/c-api/object.rst	Tue Aug 26 17:08:40 2008 +0000
@@ -130,6 +130,14 @@
    by the :keyword:`print` statement.
 
 
+.. cfunction:: PyObject* PyObject_Bytes(PyObject *o)
+
+   .. index:: builtin: bytes
+
+   Compute a bytes representation of object *o*.  In 2.x, this is just a alias
+   for :cfunc:`PyObject_Str`.
+
+
 .. cfunction:: PyObject* PyObject_Unicode(PyObject *o)
 
    .. index:: builtin: unicode