You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we normally use """ for our triple quoted strings. but we have a string that ends with a ", so we switched it to '''. we can't end with """" because python stops scanning at the first triple quotes it sees.
since there's smart quoting logic for single/double, there should support for this as well.
# Reduced test case.
f = '''blah "some string"'''
# This is a parse error.
f = """blah "some string""""
# This requires escaping (undesirable).
f = """blah "some string\""""
NB: i'm aware the example doesn't need triple quotes ... our code base actually was multiline strings where triple quotes made sense. this is just a reduced testcase to make it easy to reason about.
The text was updated successfully, but these errors were encountered:
we normally use
"""
for our triple quoted strings. but we have a string that ends with a"
, so we switched it to'''
. we can't end with""""
because python stops scanning at the first triple quotes it sees.since there's smart quoting logic for single/double, there should support for this as well.
NB: i'm aware the example doesn't need triple quotes ... our code base actually was multiline strings where triple quotes made sense. this is just a reduced testcase to make it easy to reason about.
The text was updated successfully, but these errors were encountered: