This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zach.ware
Recipients yingw787, zach.ware
Date 2019-10-23.19:17:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571858257.5.0.131067128933.issue38568@roundup.psfhosted.org>
In-reply-to
Content
This is because you're trying to use the string's delimiting character (') in the string itself, which won't work for fairly apparent reasons :).  Try removing the `f` prefix and see what happens.

You can get around this by using a triple-quoted string which will allow you to use both quote characters within the string:

>>> blah = '"hi"'
>>> f'''{blah.strip('"')}'''
'hi'
History
Date User Action Args
2019-10-23 19:17:37zach.waresetrecipients: + zach.ware, yingw787
2019-10-23 19:17:37zach.waresetmessageid: <1571858257.5.0.131067128933.issue38568@roundup.psfhosted.org>
2019-10-23 19:17:37zach.warelinkissue38568 messages
2019-10-23 19:17:37zach.warecreate