Skip to content

Instantly share code, notes, and snippets.

@DrSensor
Last active February 19, 2019 02:16
Show Gist options
  • Save DrSensor/3e4193860c4f72f211cfe8f17466f474 to your computer and use it in GitHub Desktop.
Save DrSensor/3e4193860c4f72f211cfe8f17466f474 to your computer and use it in GitHub Desktop.
Bug In Programming language
# 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