PEP 572: use double backticks for the ``with`` keyword. (#716)

This commit is contained in:
Mariatta 2018-07-09 20:31:21 -07:00 committed by GitHub
parent 0cfbfb104d
commit 8a3ed368bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -711,7 +711,7 @@ above, proposals have been made for comprehension-specific solutions.
stuff = [(y, x/y) with y = f(x) for x in range(5)] stuff = [(y, x/y) with y = f(x) for x in range(5)]
As above, but reusing the `with` keyword. Doesn't read too badly, and needs As above, but reusing the ``with`` keyword. Doesn't read too badly, and needs
no additional language keyword. Is restricted to comprehensions, though, no additional language keyword. Is restricted to comprehensions, though,
and cannot as easily be transformed into "longhand" for-loop syntax. Has and cannot as easily be transformed into "longhand" for-loop syntax. Has
the C problem that an equals sign in an expression can now create a name the C problem that an equals sign in an expression can now create a name