Some Python 2.1 ideas

Bjorn Pettersen pbjorn at uswest.net
Wed Dec 27 22:15:40 EST 2000


D-Man wrote:

> Yeah, it is a problem if you don't know where the file came from.  How
> about creating a standard text file format?  All files could be opened
> in binary mode on all platforms, then EOL is handled by each
> application (or better yet make a standard module that does the
> implementation correctly once).

Feeling like fighting windmills today, eh <wink>? I think the current wish is to
do it from the other end, i.e. instead of relying on the text file format to be
"correct", implement a method on string object that is smart enough to handle all
text file format line endings intelligently.

-- bjorn





More information about the Python-list mailing list