Python Mapping for Operations on Local Types
An operation on a local interface or a local class is mapped to a Python method with the same name. The mapping of operation parameters to Python is identical to the client-side mapping for these parameters, in particular, when an operation has more than one return value and out parameters, the mapped Python method must return a tuple.
Unlike the client-side mapping, there is no mapped method with a trailing Context parameter.
For example:
Slice
module M { local interface L; // forward declared local sequence<L> LSeq; local interface L { string op(int n, string s, LocalObject any, out int m, out string t, out LSeq newLSeq); } }
is mapped to:
Python
class L(object): def op(self, n, s, any): raise NotImplementedError("method 'op' not implemented")