[issue5513] "What's New" should say VERY CLEARLY that the type file is gone

David W. Lambert report at bugs.python.org
Thu Mar 19 15:30:24 CET 2009


David W. Lambert <lambertdw at corning.com> added the comment:

# With py3Krc1 it took me days to figure out how to
# replace my base class file.   Granted, there were
# issues with io module at the time.  Following met
# my need.


import io

class File(io.TextIOWrapper):

    '''Open a text file with read access, providing...'''

    def __init__(self,name):
        super().__init__(open(name).buffer)

----------
nosy: +LambertDW

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5513>
_______________________________________


More information about the Python-bugs-list mailing list