Antoine Pitrou added the comment:
Example of this is the following code in treebuilder_handle_start:
if (this != Py_None) {
if (element_add_subelement((ElementObject*) this, node) < 0)
goto error;
(note the overly optimistic cast)
but this is really a pervasive problem, since in many places TreeBuilder is
hard-wired to use a Element instance and nothing else (despite the
element_factory).
Note that simpleTAL cannot use the _elementtree.Element class, since their
subclass also inherits from an exception subclass, and the object layouts
conflict with each other (yeah, crappy design).
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16089>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com