(node)
Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields``
    that is present on *node*.
Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields``
    that is present on *node*.
Yield a tuple of ( fieldname value ) for each field in node . _fields that is present on * node * .
def iter_fields(node):
    """
    Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields``
    that is present on *node*.
    """
    for field in node._fields:
        try:
            yield field, getattr(node, field)
        except AttributeError:
            pass
def iter_fields ( node ) : for field in node . _fields : try : yield field , getattr ( node , field ) except AttributeError : pass