[Idle-dev] preserving newline representation in source files

Andrew Koenig ark@research.att.com
Fri, 3 Jan 2003 12:35:18 -0500 (EST)


>> I wonder -- has anyone considered such behavior for a future Idle version?

Guido> Until recently this would have been a pain.  As of Python 2.3,
Guido> it can be done quite conveniently using universal newlines,
Guido> open(filename,"U"), and the new 'newlines' attribute of
Guido> resulting file objects.

I suspected as much, which is part of the reason I asked the question
:-) I'm hoping that someone familiar with Idle internals will like the
idea enough to implement it.

-- 
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark