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).
This commit is contained in:
Petr Viktorin 2022-04-25 15:10:42 +02:00 committed by GitHub
parent 0cb0066fba
commit d098303985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 <https://docs.python.org/3/c-api/buffer.html>`__
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