Message161045
| Author |
ezio.melotti |
| Recipients |
Arfrever, cmn, eli.bendersky, ezio.melotti |
| Date |
2012年05月18日.10:59:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337338792.81.0.876765595639.issue14818@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|