(self, text)
return obj
:type text: str
def __resolve_reference__(self, text):
        """

        :type text: str
        """
        obj = None
        if '.' not in text:
            try:
                obj = self.get_namespace()[text]
            except KeyError:
                pass

            if obj is None:
                try:
                    obj = self.get_namespace()['__builtins__'][text]
                except:
                    pass

            if obj is None:
                try:
                    obj = getattr(self.get_namespace()['__builtins__'], text, None)
                except:
                    pass

        else:
            try:
                last_dot = text.rindex('.')
                parent_context = text[0:last_dot]
                res = pydevd_vars.eval_in_context(parent_context, self.get_namespace(), self.get_namespace())
                obj = getattr(res, text[last_dot + 1:])
            except:
                pass
        return obj
def __resolve_reference__ ( self , text ) : obj = None if '.' not in text : try : obj = self . get_namespace ( ) [ text ] except KeyError : pass if obj is None : try : obj = self . get_namespace ( ) [ '__builtins__' ] [ text ] except : pass if obj is None : try : obj = getattr ( self . get_namespace ( ) [ '__builtins__' ] , text , None ) except : pass else : try : last_dot = text . rindex ( '.' ) parent_context = text [ 0 : last_dot ] res = pydevd_vars . eval_in_context ( parent_context , self . get_namespace ( ) , self . get_namespace ( ) ) obj = getattr ( res , text [ last_dot + 1 : ] ) except : pass return obj