A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-September/017543.html below:

[Pythonmac-SIG] Mac Python and line-endings

[Python-Dev] RE: [Pythonmac-SIG] Mac Python and line-endings [Python-Dev] RE: [Pythonmac-SIG] Mac Python and line-endingsChris Barker chrishbarker@home.net
Tue, 18 Sep 2001 12:42:48 -0700
Nathan Heagy wrote:
> 
> > Also, Java supports this, and the algorithm to support it is not
> > difficult: to read a line, read until you see either \r or \n; if you
> > see \r, peek one character ahead and if that's a \n, include it in the
> > line.
> 
> What about the mac where \r *is* the line ending?

then it won't be a \n, so it won't be included.

-Chris


-- 
Christopher Barker,
Ph.D.                                                           
ChrisHBarker@home.net                 ---           ---           ---
http://members.home.net/barkerlohmann ---@@       -----@@       -----@@
                                   ------@@@     ------@@@     ------@@@
Oil Spill Modeling                ------   @    ------   @   ------   @
Water Resources Engineering       -------      ---------     --------    
Coastal and Fluvial Hydrodynamics --------------------------------------
------------------------------------------------------------------------



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