It looks like both exec and execfile are converting "\n" to an actual 
newline
in docstrings!

Start idle:

Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on
win32
[rest of signon deleted]

>>> s = '''\
strings = 'abc'.split("\n")
'''
>>> print s
strings = 'abc'.split("
")

I see this in my own calls to exec and execfile.  Is this a bug or am I
missing something?

Edward
-------------------------------------------------------------------
Edward K. Ream   email:  [EMAIL PROTECTED]
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------




-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to