Bug? exec converts '\n' to newline in docstrings!?

Edward K Ream edreamleo at charter.net
Mon Jul 30 12:00:14 EDT 2007


> 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.

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  edreamleo at yahoo.com
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------





More information about the Python-list mailing list