Want to inherit from file

Franz GEIGER fgeiger at datec.at
Fri Nov 10 11:50:33 CET 2000

I'd like to inherit from file to add some functionality:

class MyFile(File):
   def __init__(...):
   def CopyTo(otherLocation):

   def MoveTo(newLocation):

 As a file object comes into existence by calling f=open() and not something
like f=File(), I guess there is no regular way to do it.

Any idea how to overcome this?

Best regards

More information about the Python-list mailing list