Re: Subclassing cElementTree.XMLTreeBuilder

2007-01-25 Thread mukappa
On Jan 25, 4:32 am, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > "mukappa" wrote: > > Is it possible to subclass cElementTree.XMLTreeBuilder?no, it's a factory > > function. if you need to extend it, you'll have to wrap it. but > I'm not sure I see the use case; what is it you're trying to do he

Re: Subclassing cElementTree.XMLTreeBuilder

2007-01-25 Thread Fredrik Lundh
"mukappa" wrote: > Is it possible to subclass cElementTree.XMLTreeBuilder? no, it's a factory function. if you need to extend it, you'll have to wrap it. but I'm not sure I see the use case; what is it you're trying to do here? -- http://mail.python.org/mailman/listinfo/python-list

Subclassing cElementTree.XMLTreeBuilder

2007-01-24 Thread mukappa
I found an earlier post about subclassing cElementTree.Element which can't be done because it is a factory method. I am trying to subclass XMLTreeBuilder with success using the python implementation, but not with cElementTree. [1013]$ python Python 2.3.4 (#1, Feb 22 2005, 04:09:37) [GCC 3.4.3 200