Message171749
| 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). |
|