1 Jul 15:20
Re: lxml 1.3 coming up
Stefan Behnel <stefan_ml <at> behnel.de>
2007-07-01 13:20:12 GMT
2007-07-01 13:20:12 GMT
Hi Holger, jholg <at> gmx.de wrote: > Find attached a patch that: > > - changes the above to apply xsi:nil="true" for None value arguments Ok. > - lets DataElement() graciously handle ObjectifiedDataElement arguments, > keeping their attributes intact, if not overridden by the DataElement() > args. This also reuses existing xsi:type or py:pytype information, unless > _pytype and/or _xsi are provided as parameters to DataElement() > > Previously, DataElement() cut off all attributes if given an > ObjectifiedDataElement instance. Ok. > - Type-checks the _value against the given type hint: > You will run into the error anyway - sooner or > later - when accessing the .pyval in any way, so why not during > instantiation. Ok. > Tests are included for the described behaviour. Cool, thanks.(Continue reading)
RSS Feed