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
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