This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients eli.bendersky, ezio.melotti, flox, scoder
Date 2012-02-26.10:21:31
SpamBayes Score 2.7046653e-06
Marked as misclassified No
Message-id <4F4A06F6.5030106@users.sourceforge.net>
In-reply-to <1330248620.3.0.71621144947.issue14128@psf.upfronthosting.co.za>
Content
Note that Element is also a factory function in lxml.etree, and people have
been living with this quite happily. I don't see a reason to change either
side. There is a dedicated function iselement(obj) for exactly the purpose
of testing if something is an Element object. isinstance() is not the right
way to do it and inheritance is not portable. (the right type to inherit
from in lxml is actually called ElementBase)

I'm fine with changing the other two (XMLParser and TreeBuilder), if only
for consistency.

Stefan
History
Date User Action Args
2012-02-26 10:21:36scodersetrecipients: + scoder, ezio.melotti, eli.bendersky, flox
2012-02-26 10:21:31scoderlinkissue14128 messages
2012-02-26 10:21:31scodercreate