def resolve(self, var, attribute):
        '''
            @param var: that's the original attribute
            @param attribute: that's the key passed in the dict (as a string)
        '''
        if attribute in ('__len__', TOO_LARGE_ATTR):
            return None
        try:
            return var[int(attribute)]
        except:
            return getattr(var, attribute)

            @param var: that's the original attribute
            @param attribute: that's the key passed in the dict (as a string)
        
debugger/src/_pydevd_bundle/pydevd_resolver.py