-
Notifications
You must be signed in to change notification settings - Fork 244
Closed
Description
What's the right way of using inout params in Python.
What I do is create Reference class, but it doesn't seem to work.
The issue is:
- At the top of a function there is an assert checking for Reference class:
{% for p in fn.outParameters if not p.serializedViaMember %} assert type({$p.name}) is erpc.Reference, "{$p.direction} parameter must be a Reference object" {% endfor -- outParams %}
- Few lines below, the parameters are serialized
{% for p in fn.inParameters if not p.serializedViaMember %}
which in
{% def encodeValue(info, name, codec, indent, depth) %}
resolves to:
{$name}._write({$codec}){%>%}
,but the {$name}
has no member _write
as it is of class Reference
.
It probably should be something like:
{$name}.value._write({$codec}){%>%}
in this case, but not in the case for in
function parameter, only for inout
.