CodeQL library for Python
codeql/python-all 0.10.4 ( changelog , source )

Member predicate TryNode :: getStmtList

Gets the indexth StmtList that is a child of the AstNode that this print node represents. label is used for pretty-printing a label in the parent-child relation in the ast-viewer.

The StmtListNode class and the getChild predicate uses getStmtList to define a parent-child relation with labels.

index must be 0 or positive.

StmtList getStmtList ( int index , string label )