.split() Qeustion

wxjmfauth at gmail.com wxjmfauth at gmail.com
Thu Aug 15 05:46:20 EDT 2013


A technical ascpect of triple quoted strings is
that the "end of lines" are not respected.

>>> import zzz
>>> zzz.__doc__
'abc\ndef\n'
>>> with open('zzz.py', 'rb') as fo:
...     r = fo.read()
...     
>>> r
b'"""abc\r\ndef\r\n"""\r\n'

Now, one can argue...

jmf



More information about the Python-list mailing list