Re: Escape curly bracket together to a variable extension

2010-03-06 Thread Gary Herron
Joan Miller wrote: How to escape the first '}' in the next string? s = "}\n{0}".format('foo') >>> "}}\n{0}".format('foo') '}\nfoo' Gary Herron -- http://mail.python.org/mailman/listinfo/python-list

Re: Escape curly bracket together to a variable extension

2010-03-06 Thread Alf P. Steinbach
* Joan Miller: How to escape the first '}' in the next string? s = "}\n{0}".format('foo') s = "}}\n{0}".format('foo') Cheers & hth., - Alf -- http://mail.python.org/mailman/listinfo/python-list

Escape curly bracket together to a variable extension

2010-03-06 Thread Joan Miller
How to escape the first '}' in the next string? s = "}\n{0}".format('foo') -- http://mail.python.org/mailman/listinfo/python-list