diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-11-21 01:53:17 (GMT) |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-11-21 01:53:17 (GMT) |
commit | d675a2c48a717cd6a960185abc59c50e82ad50d6 (patch) | |
tree | 1e8ad4ce4d6868ab89d4152c032541a4eb5e2c36 /Doc/c-api | |
parent | 045aef3795ebb799fa89c4be47cfc9b2448ab1b2 (diff) | |
parent | 5fae0e58549c9270b188a1591ffa6cc4c2d9ab4e (diff) | |
download | cpython-d675a2c48a717cd6a960185abc59c50e82ad50d6.zip cpython-d675a2c48a717cd6a960185abc59c50e82ad50d6.tar.gz cpython-d675a2c48a717cd6a960185abc59c50e82ad50d6.tar.bz2 |
Merge from 3.3: Improve str() and object.__str__() docs (issue #13538).
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/buffer.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index d636935..0b521df 100644 --- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -1,5 +1,10 @@ .. highlightlang:: c +.. index:: + single: buffer protocol + single: buffer interface; (see buffer protocol) + single: buffer object; (see buffer protocol) + .. _bufferobjects: Buffer Protocol @@ -10,9 +15,6 @@ Buffer Protocol .. sectionauthor:: Stefan Krah -.. index:: - single: buffer interface - Certain objects available in Python wrap access to an underlying memory array or *buffer*. Such objects include the built-in :class:`bytes` and :class:`bytearray`, and some extension types like :class:`array.array`. @@ -24,8 +26,8 @@ characteristic of being backed by a possibly large memory buffer. It is then desirable, in some situations, to access that buffer directly and without intermediate copying. -Python provides such a facility at the C level in the form of the *buffer -protocol*. This protocol has two sides: +Python provides such a facility at the C level in the form of the :ref:`buffer +protocol <bufferobjects>`. This protocol has two sides: .. index:: single: PyBufferProcs |