

def fast_iter(context, func, args=[], kwargs={
    
}):
    for (event, elem) in context:
        func(elem, *args, **kwargs)
        elem.clear()
        while (elem.getprevious() is not None):
            del elem.getparent()[0]
    del args

dataset/ETHPy150Open baskoopmans/djcommon/djcommon/xml.py fast_iter/VarMisuse@79/86 `context`->`args`