Re: Subclassing cElementTree.Element

2005-02-08 Thread Fredrik Lundh
Kent Johnson wrote: > Is it possible to subclass cElementTree.Element? I tried > >>> import cElementTree as et > >>> class Elt(et.Element): > ... pass > ... > Traceback (most recent call last): > File "", line 1, in ? > TypeError: Error when calling the metaclass bases > cannot create

Subclassing cElementTree.Element

2005-02-07 Thread Kent Johnson
Is it possible to subclass cElementTree.Element? I tried >>> import cElementTree as et >>> class Elt(et.Element): ... pass ... Traceback (most recent call last): File "", line 1, in ? TypeError: Error when calling the metaclass bases cannot create 'builtin_function_or_method' instances