my_expr = 42 s = 'foo{my_e'.format(my_expr='spam')