IOPair¶
Class file for input-output pair objects.
Module Contents¶
Classes¶
Class for easily defining input-output pairs. |
API¶
- class IOPair.IOPair(input_tuple=(), output_tuple=())¶
Class for easily defining input-output pairs.
Attributes¶
- input_tupletuple | any
Input tuple for the input-output pair.
- output_tupletuple | any
Output tuple for the output-input pair.
Initialization
IOPair constructor.
Parameters¶
- input_tupletuple | any
The input tuple that should be stored in the input-output pair. If the input is not provided as a tuple, the constructor will take care of the necessary conversion.
- output_tupletuple | any
The output tuple that should be stored in the input-output pair. If the output is not provided as a tuple, the constructor will take care of the necessary conversion.
- __str__()¶
Convert-to-string instance method