From 98337f0068f8be4535956c5d2d01c82dfa4d4d1a Mon Sep 17 00:00:00 2001 From: Zhiqi Zhang Date: Sun, 9 Aug 2026 06:32:24 +0000 Subject: [PATCH] gh-155406: Fix struct.unpack_from documentation signature Remove the spurious '/' separator in the struct.unpack_from() signature documentation. The actual function signature is unpack_from(format, buffer, offset=0), not unpack_from(format, /, buffer, offset=0). This matches the actual function signature and the usage in test code. --- Doc/library/struct.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index 07e4c82375fc1ee..a8466d23d1f5a3c 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -79,7 +79,7 @@ The module defines the following exception and functions: size required by the format, as reflected by :func:`calcsize`. -.. function:: unpack_from(format, /, buffer, offset=0) +.. function:: unpack_from(format, buffer, offset=0) Unpack from *buffer* starting at position *offset*, according to the format string *format*. The result is a tuple even if it contains exactly one