8000 PEP 701: Fix typos (#3054) · python/peps@3cd0c13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cd0c13

Browse files
authored
PEP 701: Fix typos (#3054)
1 parent f7332e7 commit 3cd0c13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pep-0701.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,9 @@ Here are some of the arguments in favour:
477477

478478
* Code generators (like `ast.unparse <https://docs.python.org/3/library/ast.html#ast.unparse>`_ from standard library) in their
479479
current form rely on complicated algorithms to ensure expressions within an f-string are properly suited for the context in
480-
which they are being used. These non-trivial algorithms come with challanges such as finding an unused quote type (by tracking
480+
which they are being used. These non-trivial algorithms come with challenges such as finding an unused quote type (by tracking
481481
the outer quotes), and generating string representations which would not include backslashes if possible. Allowing quote reuse
482-
and backslashes would simplify the code generators which deals with f-strings considerably, as the regular Python expression logic
482+
and backslashes would simplify the code generators which deal with f-strings considerably, as the regular Python expression logic
483483
can be used inside and outside of f-strings without any special treatment.
484484

485485
* Limiting quote reuse will considerably increase the complexity of the implementation of the proposed changes. This is because
@@ -559,7 +559,7 @@ Rejected Ideas
559559
>>> f'Useless use of lambdas: { lambda x: x*2 }'
560560
SyntaxError: unexpected EOF while parsing
561561

562-
The reason is that this would this will introduce a considerable amount of
562+
The reason is that this will introduce a considerable amount of
563563
complexity for no real benefit. This is due to the fact that the ``:`` character
564564
normally separates the f-string format specification. This format specification
565565
is currently tokenized as a string. As the tokenizer MUST tokenize what's on the

0 commit comments

Comments
 (0)
0