Fwd: Re: lxml:objectify: data type of attribute
cc-ing the list ---------- Forwarded Message ---------- Subject: Re: [lxml] lxml:objectify: data type of attribute Date: Wednesday, October 23, 2013, 14:46:36 From: Sebastian Fey, ambiHome GmbH <fey@ambihome.de> To: jholg@gmx.de
you may be able to hook custom element classes into lxml that provide you with a similar type lookup scheme for the elem.get()/set()/attrib() stuff, if you don't care about>elem.set('attr_a', '5') being returned as elem.get('attr_a') -> 5 [int] or the like.
this would be fine. I'll have a look when I've got some time left and post a possible solution to the list till then my code will be a.get("attr") = str(int(b.get("value") + int(c.get("value"))) :) thank you -----------------------------------------
participants (1)
-
jholg@gmx.de