You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python3 /tmp/p4p_rpcproxy_noargs.py
Traceback (most recent call last):
File "/tmp/p4p_rpcproxy_noargs.py", line 4, in <module>
class MyProxy(object):
File "/home/training/dev/epics-rpc-ads-proxy/p4ptest/lib/python3.8/site-packages/p4p/rpc.py", line 317, in rpcproxy
obj[K] = _wrapMethod(K, V)
File "/home/training/dev/epics-rpc-ads-proxy/p4ptest/lib/python3.8/site-packages/p4p/rpc.py", line 267, in _wrapMethod
if len(S.args) != len(S.defaults):
TypeError: object of type 'NoneType' has no len()
Expected behaviour
Runs without error, allowing the user to access the function over PVA.
The text was updated successfully, but these errors were encountered:
Synthetica9
pushed a commit
to High-Voltage-Engineering/p4p
that referenced
this issue
Jan 15, 2024
My added tests did trigger the same error prior to this fix, so I think I have adequately addressed this issue. Confirmation would be appreciated though.
Description
@rpccall
for functions that take no arguments throws an error when defining a function with no arguments.To reproduce
Try to run the following file:
Observed behaviour
This throws the following error:
Expected behaviour
Runs without error, allowing the user to access the function over PVA.
The text was updated successfully, but these errors were encountered: