Redefining "\n"

Chris Liechti cliechti at gmx.net
Sun Feb 17 11:25:45 EST 2002


martin at v.loewis.de (Martin v. Loewis) wrote in 
news:m3bseouu8b.fsf at mira.informatik.hu-berlin.de:
> Dale Strickland-Clark <dale at riverhall.NOTHANKS.co.uk> writes:
>> Is there some way to redefine the "\n" escape sequence?
> The only way to do achieve that is to change the Python interpreter.

or do it on each string manualy:
>>>'abcd\n'.replace('\n','\r\n')


-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list