Next: 4.13.3 Mapping for Attributes Up: 4.13 Client Side Mapping Previous: 4.13.1 Mapping for Interfaces

## 4.13.2 Mapping for Operations

Each operation on an interface maps to a method on the corresponding Python stub class. The method takes a parameter for each `in` and `inout` parameter defined in the IDL, and, in the spirit of the ILU mapping, returns the result, `inout`, and `out` parameters according to the following rules:

- If there is no result value, the method returns the special Python value `None`.
- If there is exactly one result value, the method returns that value.
- If there is more than one result value, the method returns a tuple, with the result (if specified) as the first element followed by any `inout` and `out` parameters, in the order they were specified in the IDL.