On Thu, Oct 20, 2011 at 11:28 AM, Yosifov Pavel <b...@ngs.ru> wrote: > In the Python 2.x was simple to create own file object: > > class MyFile(file): > pass > > for example to reimplement write() or something else. How to do it in > Python 3.x?
See the docs for the io module. Depending on what you want to do, you probably need to subclass either io.FileIO or io.TextIOWrapper. -- http://mail.python.org/mailman/listinfo/python-list