quantlib.position.Position.__getitem__

classmethod Position.__getitem__(name)

Return the member matching name.