def iter_fields(node):
    for field in node._fields:
        try:
            yield field, getattr(node, field)
        except AttributeError:
            pass
Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields``
dataset/ETHPy150Open eBay/restcommander/play-1.2.4/python/Lib/ast.py/iter_fields