PEP 750: Fix code example and CPython version in abstract (#3902)
This commit is contained in:
parent
e684657472
commit
5393dd6a15
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue