From d098303985eb2e5344937156c9f2a2db2b3e21fa Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 25 Apr 2022 15:10:42 +0200 Subject: [PATCH] PEP 688: Link to current docs (#2553) Link to current documentation of the protocol first and make the PEP secondary (it might still be useful for the original motivation/rationale). --- pep-0688.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pep-0688.rst b/pep-0688.rst index 7544f0331..db923ff43 100644 --- a/pep-0688.rst +++ b/pep-0688.rst @@ -20,7 +20,8 @@ Motivation ========== The CPython C API provides a versatile mechanism for accessing the -underlying memory of an object—the buffer protocol from :pep:`3118`. +underlying memory of an object—the `buffer protocol `__ +introduced in :pep:`3118`. Functions that accept binary data are usually written to handle any object implementing the buffer protocol. For example, at the time of writing, there are around 130 functions in CPython using the Argument Clinic