[Python-Dev] [Python-3000] New proposition for Python3 bytes filename issue

Terry Reedy tjreedy at udel.edu
Wed Oct 1 05:46:00 CEST 2008


Guido van Rossum wrote:

> No, that's because bytes is missing from the explicit list of
> allowable types in io.open. Victor has a one-line trivial patch for
> this. Could you try this though?
> 
>>>> import _fileio
>>>> _fileio._FileIO(b'tem')

 >>> import _fileio
 >>> _fileio._FileIO(b'tem')
_fileio._FileIO(3, 'r')
 >>>



More information about the Python-Dev mailing list