A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-August/037717.html below:

[Python-Dev] file read-ahead with Mac end-of-line

[Python-Dev] file read-ahead with Mac end-of-line [Python-Dev] file read-ahead with Mac end-of-lineAahz aahz at pythoncraft.com
Mon Aug 18 11:02:41 EDT 2003
On Mon, Aug 18, 2003, Skip Montanaro wrote:
> 
>     >> I don't know how (or if) this should work with universal newline
>     >> support.  We expect files to be opened in binary mode, so I don't
>     >> know if universal newline support applies.
> 
>     aahz> Why do you expect binary rather than text mode?  I've always
>     aahz> thought of CSV files as text and would expect the usual line
>     aahz> ending issues that are supposed to be solved with universal
>     aahz> newlines.
> 
> I think the csv module was started before universal newline mode
> was available.  We allow the user to specify the line terminator,
> and I suppose it could be anything, hence binary mode.  We'll have
> to consider whether universal newline mode - along with an implicit
> restriction in possible EOL sequences - is the way to go.

How about EOL is None means universal newlines and is the default?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

This is Python.  We don't care much about theory, except where it intersects 
with useful practice.  --Aahz

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4