Message161045
Attached patch fixes Element constructor to accept 'attrib' as keyword arg. I couldn't find a way to make this work using PyArg_ParseTupleAndKeywords, so I ended up parsing the kwds by hand.
While adding more tests I found out another difference with the Python version. The C version raises a TypeError if attrib is not a dict, whereas the Python version raises an AttributeError while attempting to do a .copy() of the object. I changed the Python version to raise a TypeError too. |
|
Date |
User |
Action |
Args |
2012-05-18 10:59:52 | ezio.melotti | set | recipients:
+ ezio.melotti, Arfrever, eli.bendersky, cmn |
2012-05-18 10:59:52 | ezio.melotti | set | messageid: <1337338792.81.0.876765595639.issue14818@psf.upfronthosting.co.za> |
2012-05-18 10:59:52 | ezio.melotti | link | issue14818 messages |
2012-05-18 10:59:52 | ezio.melotti | create | |
|