Last active
February 19, 2019 02:16
-
-
Save DrSensor/3e4193860c4f72f211cfe8f17466f474 to your computer and use it in GitHub Desktop.
Bug In Programming language
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Expression in Literal String Interpolation (pep-0498/#supporting-full-python-expressions) | |
| fixtures = [] | |
| a1 = f"'{'\' \''.join(fixtures)}'" | |
| a2 = f"'{"' '".join(fixtures)}'" | |
| # only on Python 3.5.3 | |
| a3 = f"({'|'.join(fixtures)})" | |
| a4 = f'" "{f} '.join(fixtures) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment