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 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 <>
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:52ezio.melottisetrecipients: + ezio.melotti, Arfrever, eli.bendersky, cmn
2012-05-18 10:59:52ezio.melottisetmessageid: <>
2012-05-18 10:59:52ezio.melottilinkissue14818 messages
2012-05-18 10:59:52ezio.melotticreate