[Python-Dev] Next version of PEP278 - universal newline support (original) (raw)

Jon Ribbens jon+python-dev@unequivocal.co.uk
Thu, 14 Mar 2002 13:21:50 +0000


Just van Rossum <just@letterror.com> wrote:

> on a Unix box, does the following piece of code > open a text file or a binary data file? > > f = open(filename)

If it's not a text file, that code is broken.

(a) I dispute that. (b) You're going to break an awful lot of code if that isn't going to work anymore.