From ef595b148da0f9d439fb8169e71c85b79db44f31 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 14 Jan 2025 12:40:20 +0100 Subject: [PATCH 1/5] PEP 3118: Add canonical-doc & mention unimplemented changes. --- peps/pep-3118.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/peps/pep-3118.rst b/peps/pep-3118.rst index b8d5f7cf749..374de79e012 100644 --- a/peps/pep-3118.rst +++ b/peps/pep-3118.rst @@ -10,6 +10,14 @@ Created: 28-Aug-2006 Python-Version: 3.0 Post-History: +.. canonical-doc:: :external+python:ref:`bufferobjects`, + :external+python:c:type:`PyBufferProcs`, + :external+python:c:type:`PyMemoryView_FromObject`. + + Some changes proposed here, like :ref:`3118-struct-additions` and + ``PyObject_CopyToObject``, were not implemented. + + Abstract ======== @@ -629,6 +637,8 @@ This will also be raised when a consumer requests a buffer from an object that does not provide the protocol. +.. _3118-struct-additions: + Additions to the struct string-syntax ===================================== From b2fde03d4d01dd10d6b3ab51519ba84eae49f8b3 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 14 Jan 2025 12:55:08 +0100 Subject: [PATCH 2/5] Start a new discussion please --- peps/pep-3118.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/peps/pep-3118.rst b/peps/pep-3118.rst index 374de79e012..102680428c4 100644 --- a/peps/pep-3118.rst +++ b/peps/pep-3118.rst @@ -16,6 +16,9 @@ Post-History: Some changes proposed here, like :ref:`3118-struct-additions` and ``PyObject_CopyToObject``, were not implemented. + After more than a decade, any proposals to add this functionality should + be discussed as new features, not treated as finishing the implementation + of this PEP. Abstract From c02ac0a2488e100727c8de76032c1addb76f78fd Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 21 Jan 2025 16:40:26 +0100 Subject: [PATCH 3/5] Clarify the "decade" is after Python 3.0 --- peps/pep-3118.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/peps/pep-3118.rst b/peps/pep-3118.rst index 102680428c4..12e0f660135 100644 --- a/peps/pep-3118.rst +++ b/peps/pep-3118.rst @@ -16,7 +16,8 @@ Post-History: Some changes proposed here, like :ref:`3118-struct-additions` and ``PyObject_CopyToObject``, were not implemented. - After more than a decade, any proposals to add this functionality should + This PEP targets Python 3.0, which was released more than a decade ago. + Any proposals to add missing functionality should be discussed as new features, not treated as finishing the implementation of this PEP. From 327878c0ab00deab1221eff2acf27b99a65919e5 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 27 Jan 2025 15:57:45 +0100 Subject: [PATCH 4/5] Add Post-History, remove redundant headers --- peps/pep-3118.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/peps/pep-3118.rst b/peps/pep-3118.rst index 12e0f660135..bb1ec1e4336 100644 --- a/peps/pep-3118.rst +++ b/peps/pep-3118.rst @@ -1,14 +1,11 @@ PEP: 3118 Title: Revising the buffer protocol -Version: $Revision$ -Last-Modified: $Date$ Author: Travis Oliphant , Carl Banks Status: Final Type: Standards Track -Content-Type: text/x-rst Created: 28-Aug-2006 Python-Version: 3.0 -Post-History: +Post-History: `09-Apr-2007 `__ .. canonical-doc:: :external+python:ref:`bufferobjects`, :external+python:c:type:`PyBufferProcs`, From c214109e9c97b3234e5ef79a7b09fb882d131350 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Sat, 8 Feb 2025 15:27:52 +0100 Subject: [PATCH 5/5] List all the unimplemeted features. --- peps/pep-3118.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/peps/pep-3118.rst b/peps/pep-3118.rst index bb1ec1e4336..9b080508aad 100644 --- a/peps/pep-3118.rst +++ b/peps/pep-3118.rst @@ -9,10 +9,15 @@ Post-History: `09-Apr-2007