On Mon, 30 Jul 2007 11:00:14 -0500, Edward K Ream wrote:

>> The problem is because you are trying to represent a Python
> program as a Python string literal, and doing it incorrectly.
> 
> Yes, that is exactly the problem.  Thanks to all who replied.  Changing
> changing '\n' to '\\n' fixed the problem.

Raw strings (r'this \n will stay') might help, too. See http://
docs.python.org/ref/strings.html#l2h-14
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to