New in version 1.1.
Get parent and start / stop indices of components:
abjad> t = Staff("c'8 d'8 e'8 f'8 g'8 a'8")
abjad> print t.format
\new Staff {
c'8
d'8
e'8
f'8
g'8
a'8
}
abjad> leaves = t[-2:]
abjad> leaves
[Note("g'8"), Note("a'8")]
abjad> componenttools.get_parent_and_start_stop_indices_of_components(leaves)
(Staff{6}, 4, 5)
Return parent / start index / stop index triple. Return parent as component or none. Return nonnegative integer start index and nonnegative index stop index.
Changed in version 2.0: renamed componenttools.get_with_indices() to componenttools.get_parent_and_start_stop_indices_of_components().