Files
openide/python/testData/psi/FStringEqualitySign.py
Lada Gagina 3b991b20ca PY-36009 Add support of '=' for debugging in f-strings
GitOrigin-RevId: 79314512860158a4c535103ee2ac9fee43d30d0d
2019-07-02 06:52:16 +03:00

19 lines
338 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import math
s1 = f'{math.pi = :.2f}'
s2 = f'{f"{3.1415=:.1f}":*^20}'
s3 = f'{0 == 1}'
x = 'A string'
s4 = f'{x=!s}'
x = 2.71828
s5 = f'{x=:.2f}'
s6 = f'{x=:}'
s7 = f'{x=!r:^20}'
s8 = f'{x=!s:^20}'
s9 = f'{x= !a:^20}'
s10 = f'{3 * x + 15=}'
pi = 'π'
s11 = f'alpha α {pi = } ω omega'
s12 = f'''{
3
=}'''
s13 = f'{"="}'