Re: [Pytables-users] Subclassing File

2009-02-03 Thread Francesc Alted
A Monday 02 February 2009, Ivan Vilata i Balaguer escrigué: > Andreas Hilboll (el 2009-02-02 a les 19:32:35 +0100) va dir:: > > import tables as t > > class HDF5file(t.File) : > > def __init__(self, filename, mode="r", title="", rootUEP="/", > > filters=None, **params) : > > super(HDF5f

Re: [Pytables-users] Subclassing File

2009-02-02 Thread Ivan Vilata i Balaguer
Andreas Hilboll (el 2009-02-02 a les 19:32:35 +0100) va dir:: > import tables as t > class HDF5file(t.File) : > def __init__(self, filename, mode="r", title="", rootUEP="/", > filters=None, **params) : > super(HDF5file, self).__init__(filename, mode, title, rootUEP, > filters, params)

[Pytables-users] Subclassing File

2009-02-02 Thread Andreas Hilboll
Hi there, I'm trying to write a subclass of File, but somehow the initialization of a new instance of this class fails with a "function takes exactly 8 arguments (1 given)" error. It might well be that I haven't understood some integral aspect of sublclassing in Python yet =( So I'd really appre