From: Stefan Behnel Date: Tue, 2 Nov 2010 12:09:27 +0000 (+0100) Subject: comment on old Py2.x buffer protocol X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f9c2ab72a455612b78094b017ea7a020523de114;p=cython.git comment on old Py2.x buffer protocol --- diff --git a/src/userguide/special_methods.rst b/src/userguide/special_methods.rst index 01d11f8b..2272c628 100644 --- a/src/userguide/special_methods.rst +++ b/src/userguide/special_methods.rst @@ -361,9 +361,10 @@ Descriptor objects (see note 2) | __delete__ | self, instance | | Delete attribute | +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+ -.. note:: (1) The buffer interface is intended for use by C code and is not directly +.. note:: (1) The buffer interface was intended for use by C code and is not directly accessible from Python. It is described in the Python/C API Reference Manual - under sections 6.6 and 10.6. + of Python 2.x under sections 6.6 and 10.6. It was superseded by the new + PEP 3118 buffer protocol in Python 2.6 and is no longer available in Python 3. .. note:: (2) Descriptor objects are part of the support mechanism for new-style Python classes. See the discussion of descriptors in the Python documentation.