Some Python 2.1 ideas

D-Man dsh8290 at rit.edu
Wed Dec 27 00:24:20 CET 2000


On Mon, Dec 25, 2000 at 12:12:41PM -0700, Bjorn Pettersen wrote:
> I think this is a good idea by itself and should be implemented for all of
> strip, lstrip, and rstrip, however it doesn't solve the problem we want to
> solve with chomp (removing a line terminator, whatever the line terminator
> happens to be).

Java has a solution to this:

import sys
sys.line_terminator

> 
> -- bjorn
> 

-D





More information about the Python-list mailing list