(self, node, deep=False)
return data
deep is True when creating an object/mapping recursively,
        in that case want the underlying elements available during construction
deep is True when creating an object/mapping recursively,
        in that case want the underlying elements available during construction
deep is True when creating an object / mapping recursively in that case want the underlying elements available during construction
def construct_object(self, node, deep=False):
        # type: (Any, bool) -> Any
        """deep is True when creating an object/mapping recursively,
        in that case want the underlying elements available during construction
        """
        if node in self.constructed_objects:
            return self.constructed_objects[node]
        if deep:
            old_deep = self.deep_construct
            self.deep_construct = True
        if node in self.recursive_objects:
            return self.recursive_objects[node]
            # raise ConstructorError(
            #     None, None, 'found unconstructable recursive node', node.start_mark
            # )
        self.recursive_objects[node] = None
        data = self.construct_non_recursive_object(node)

        self.constructed_objects[node] = data
        del self.recursive_objects[node]
        if deep:
            self.deep_construct = old_deep
        return data
def construct_object ( self , node , deep = False ) : # type: (Any, bool) -> Any if node in self . constructed_objects : return self . constructed_objects [ node ] if deep : old_deep = self . deep_construct self . deep_construct = True if node in self . recursive_objects : return self . recursive_objects [ node ] # raise ConstructorError( #     None, None, 'found unconstructable recursive node', node.start_mark # ) self . recursive_objects [ node ] = None data = self . construct_non_recursive_object ( node ) self . constructed_objects [ node ] = data del self . recursive_objects [ node ] if deep : self . deep_construct = old_deep return data