Bug? exec converts '\n' to newline in docstrings!?
Edward K Ream
edreamleo at charter.net
Mon Jul 30 11:36:46 EDT 2007
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: edreamleo at yahoo.com
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------
More information about the Python-list
mailing list