From: Francesc A. <fa...@py...> - 2004-10-09 09:57:47
|
A Divendres 08 Octubre 2004 20:30, Shin va escriure: > I want to subclass tables.File to add some customized behaviors. > But, it turned out not as simple as I had expected. > File class has __init__ method, but HDF5Extension.File, one of > tables.File's superclasses, has only __new__ method. > I am not familiar with new class system in Python. hdf5Extension.File is not a class, is an extension type. > To subclass tables.File, how should I implement __init__ or __new__ > method of the new class? Thanks in advance. I've never tried that. I'll have a look into that and I'll inform you about my findings. Anybody in the list has tried this before? Cheers, -- Francesc Alted |