[Python-Dev] str object going in Py3K

Bill Janssen janssen at parc.com
Wed Feb 15 19:59:44 CET 2006


> If we go with two functions, I'd much rather hang them off of the file
> type object then add two new builtins.  I really do think file.bytes()
> and file.text() (a.k.a. open.bytes() and open.text()) is better than
> opentext() or openbytes().

+1.

The default behavior of the current open() in opening files as text is
particularly grating.  This would make things much clearer.

Bill


More information about the Python-Dev mailing list