Feb. 4, 2014
4:42 a.m.
On 04/02/14 10:29, Stefan Behnel wrote:
Phil Mayers, 03.02.2014 23:32:
AFACIT the thing xmlfile() provides is a way to serialise a tag "as a child" of another one, which solves the namespace thing. But from my PoV it's unfortunate that it's used via a context manager - asynchronous code styles differ, but I prefer to avoid keeping stack frames around. Presumably I could drive the context manager myself, but... yuck.
It's pretty easy to map using a generator:
That was my first thought. I might give it a try later; I see no reason it wouldn't work.