[IronPython] Newline oddities
Dave Fugate
dfugate at microsoft.com
Tue Jun 12 20:04:53 CEST 2007
I think the correct behavior would be to use os.linesep which is "\r\n" as you state:
IronPython console: IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1366
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import os
>>> os.linesep
'\r\n'
Filed as CodePlex Work Item #11016 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11016).
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Thane Plummer
Sent: Tuesday, June 12, 2007 7:44 AM
To: users at lists.ironpython.com
Subject: [IronPython] Newline oddities
IPY.exe 1.1 and 2.0 both emit the newline sequence as:
"\r\r\n" (hex 0x000D 0x000D 0x000A)
Instead of the more standard sequence of:
"\r\n" (hex 0x000D 0x000A)
This behavior is not seen in -X:TabCompletion mode in IPY 1.1.
I know that there are a lot of irregularities in representing the newline sequence, but this is a new one for me. Is this behavior intended?
--Thane
P.S. I've "fixed" the behavior so my IDE works nicely, otherwise it doesn't recognize the newline.
Thane Plummer
TKP Corp.
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.14/845 - Release Date: 6/12/2007 6:39 AM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070612/887258d5/attachment.html>
More information about the Ironpython-users
mailing list