Message171749
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). |
|
Date |
User |
Action |
Args |
2012-10-01 21:39:25 | pitrou | set | recipients:
+ pitrou, georg.brandl, christian.heimes, ezio.melotti, Arfrever, eli.bendersky, skrah, flox |
2012-10-01 21:39:24 | pitrou | set | messageid: <1349127564.35.0.676025413359.issue16089@psf.upfronthosting.co.za> |
2012-10-01 21:39:24 | pitrou | link | issue16089 messages |
2012-10-01 21:39:20 | pitrou | create | |
|