[lxml-dev] objectify StringElement bugs

jholg at gmx.de jholg at gmx.de
Wed Oct 24 14:02:14 CEST 2007


Hi,

I just found 2 StringElement bugs (both 1.3 series and trunk are concerned):

Comparison with other (parsed, not set through the API) empty string elements:
>>> root = objectify.fromstring("<root><s/><s2/></root>")
>>> root.s == root.s2
False
>>>

String formatting (__mod__):
>>> root.s = "%d"
>>> print root.s % 5
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "objectify.pyx", line 691, in objectify.StringElement.__mod__
TypeError: int argument required
>>>

I've a fix (with tests) ready for this, gonna check that in soon.

Holger
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


More information about the lxml-dev mailing list