@classmethod<EOL><INDENT>def _get_obj_attr(cls, obj, path, pos):<DEDENT>
field = path[pos]<EOL>if isinstance(obj, (dict, Mapping)):<EOL><INDENT>return obj[field], pos<EOL><DEDENT>elif isinstance(obj, (list, Sequence)):<EOL><INDENT>join_operation = cls.SEQUENCE_OPERATIONS.get(field)<EOL>if join_operation is not None:<EOL><INDENT>return (<EOL>AnySequenceResult(<EOL>cls._sequence_map(obj, path[pos + <NUM_LIT:1> :]), join_operation<EOL>),<EOL>len(path) + <NUM_LIT:1>,<EOL>)<EOL><DEDENT>return obj[int(field)], pos<EOL><DEDENT>return getattr(obj, field, None), pos<EOL>
Resolve one kwargsql expression for a given object and returns
        its result.

        :param obj: the object to evaluate
        :param path: the list of all kwargsql expression, including those
                     previously evaluated.
        :param int pos: provides index of the expression to evaluate in the
                        `path` parameter.