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 pitrou
Recipients Arfrever, christian.heimes, eli.bendersky, ezio.melotti, flox, georg.brandl, pitrou, skrah
Date 2012-10-01.21:39:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349127564.35.0.676025413359.issue16089@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2012-10-01 21:39:25pitrousetrecipients: + pitrou, georg.brandl, christian.heimes, ezio.melotti, Arfrever, eli.bendersky, skrah, flox
2012-10-01 21:39:24pitrousetmessageid: <1349127564.35.0.676025413359.issue16089@psf.upfronthosting.co.za>
2012-10-01 21:39:24pitroulinkissue16089 messages
2012-10-01 21:39:20pitroucreate