Warning!
The version you're viewing is not the latest.
Go to the latest version
Function construct_sequence
Synopsis
def construct_sequence(self, node, deep=False)
Description
No description yet.
Mentioned in
- Documentation / Loader
Source
Lines 116-123 in lib3/yaml/constructor.py.
def construct_sequence(self, node, deep=False):
if not isinstance(node, SequenceNode):
raise ConstructorError(None, None,
"expected a sequence node, but found %s" % node.id,
node.start_mark)
return [self.construct_object(child, deep=deep)
for child in node.value]