quantlib.cashflows.duration.Duration.__getitem__

classmethod Duration.__getitem__(name)

Return the member matching name.