From 5393dd6a1516858d078198711434c55d845720b9 Mon Sep 17 00:00:00 2001 From: Lysandros Nikolaou Date: Sun, 11 Aug 2024 13:55:15 +0200 Subject: [PATCH] PEP 750: Fix code example and CPython version in abstract (#3902) --- peps/pep-0750.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0750.rst b/peps/pep-0750.rst index 53702d66f..fc7d84675 100644 --- a/peps/pep-0750.rst +++ b/peps/pep-0750.rst @@ -34,10 +34,10 @@ Tag functions accept prepared arguments and return a string: def greet(*args): """Tag function to return a greeting with an upper-case recipient.""" salutation, recipient, *_ = args - _, getvalue = recipient + getvalue, *_ = recipient return f"{salutation.title().strip()} {getvalue().upper()}!" -Below you can find richer examples. As a note, an implementation based on CPython 3.12 +Below you can find richer examples. As a note, an implementation based on CPython 3.14 exists, as discussed in this document. Relationship With Other PEPs