Function index - index(s, sub [,start [,end]]) -> int

Function index - index(s, sub [,start [,end]]) -> int

SYNOPSIS

import pgmlgraph
def index(s, sub, i = 0, last=None)

DESCRIPTION

Return the lowest index in s where substring sub is found, such that sub is contained within s[start,end]. Optional arguments start and end are interpreted as in slice notation.

Raise ValueError if not found.

SEE ALSO

pgmlgraph


Generated by HTMLFormatter at Fri Dec 20 18:58:42 2002