Py3K: file inheritance

Yosifov Pavel bulg at ngs.ru
Thu Oct 20 13:28:11 EDT 2011


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?



More information about the Python-list mailing list