(self, index)
Indexes a subset of saved tasks on this collection.

        Args:
            index: The value of the index. The following index types
                are supported:
                - str: Name of the saved task. You also can specify
                    a string that contains a list or range of names to
                    this input. If you have a list of names, use the
                    DAQmx Flatten Channel String function to convert
                    the list to a string.
                - int: Index/position of the saved task in the
                    collection.
                - slice: Range of the indexes/positions of saved tasks
                    in the collection.
        Returns:
            List[nidaqmx.system.storage.persisted_task.PersistedTask]:
            
            Indicates the subset of saved tasks indexed.
Indexes a subset of saved tasks on this collection.
Indexes a subset of saved tasks on this collection .
def __getitem__(self, index):
        """
        Indexes a subset of saved tasks on this collection.

        Args:
            index: The value of the index. The following index types
                are supported:
                - str: Name of the saved task. You also can specify
                    a string that contains a list or range of names to
                    this input. If you have a list of names, use the
                    DAQmx Flatten Channel String function to convert
                    the list to a string.
                - int: Index/position of the saved task in the
                    collection.
                - slice: Range of the indexes/positions of saved tasks
                    in the collection.
        Returns:
            List[nidaqmx.system.storage.persisted_task.PersistedTask]:
            
            Indicates the subset of saved tasks indexed.
        """
        if isinstance(index, six.integer_types):
            return PersistedTask(self.task_names[index])
        elif isinstance(index, slice):
            return [PersistedTask(name) for name in
                    self.task_names[index]]
        elif isinstance(index, six.string_types):
            names = unflatten_channel_string(index)
            if len(names) == 1:
                return PersistedTask(names[0])
            return [PersistedTask(name) for name in names]
        else:
            raise DaqError(
                'Invalid index type "{0}" used to access collection.'
                .format(type(index)), DAQmxErrors.UNKNOWN.value)
def __getitem__ ( self , index ) : if isinstance ( index , six . integer_types ) : return PersistedTask ( self . task_names [ index ] ) elif isinstance ( index , slice ) : return [ PersistedTask ( name ) for name in self . task_names [ index ] ] elif isinstance ( index , six . string_types ) : names = unflatten_channel_string ( index ) if len ( names ) == 1 : return PersistedTask ( names [ 0 ] ) return [ PersistedTask ( name ) for name in names ] else : raise DaqError ( 'Invalid index type "{0}" used to access collection.' . format ( type ( index ) ) , DAQmxErrors . UNKNOWN . value )