Operator ReturnList

# Operator `ReturnList`

Toolkits > com.ibm.streamsx.topology.pysamples 1.1.0 > com.ibm.streamsx.topology.pysamples.positional > ReturnList

Demonstrate returning a list of values, each value is submitted as a tuple.

## Python

    @spl.map(style='position')
    def ReturnList(a,b,c):
        "Demonstrate returning a list of values, each value is submitted as a tuple."
        return [(a+1,b+1,c+1),(a+2,b+2,c+2),(a+3,b+3,c+3),(a+4,b+4,c+4)]

## Summary

Ports
  This operator has 1 input port and 1 output port.
Windowing
  This operator does not accept any windowing configurations.
Parameters
  This operator does not support parameters.
Metrics
  This operator does not report any metrics.

## Properties

Implementation
  C++
Threading
  `Always` - Operator always provides a single threaded execution context.

Input Ports

Ports (0)

  Tuple attribute values are passed by position to the Python callable.

  Properties
    - Optional: false
    - ControlPort: false
    - TupleMutationAllowed: false
    - WindowingMode: NonWindowed
    - WindowPunctuationInputMode: Oblivious

Output Ports

Assignments
  This operator does not allow assignments to output attributes.

Ports (0)

  Properties
    - Optional: false
    - TupleMutationAllowed: true
    - WindowPunctuationOutputMode: Preserving

Libraries

`SPLPY header`
  Include Path: `../../opt/.splpy/include`
`Python libraries.`
  Command: ../../opt/.splpy/common/pyversion3.sh