inheriting file object

Jeremy jlconlin at lanl.gov
Wed Jul 6 18:58:42 CEST 2005


Hello all,
	I am trying to inherit the file object and don't know how to do it.  I 
need to open a file and perform operations on it in the class I am 
writing.  I know the simple syntax is:

class MyClass(file):
	...

but I don't know how to make it open the file for reading/writing.  Can 
anyone help me out with this?
Thanks,
Jeremy




More information about the Python-list mailing list