4.2.1.12. indexΒΆ

AstBuilder.index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.