Closed CGenie closed 8 years ago
Tests added for tuple return
Either way this was wrong when tuple was returned from within the rpc function: the TypeError had a tuple for %r formatting which was wrong and resulted in uncomprehensible error:
tuple
TypeError
%r
https://github.com/samuraisam/django-json-rpc/blob/master/jsonrpc/site.py#L225
The behavior of converting tuple to list is consistent with what json-rpc does (https://pypi.python.org/pypi/json-rpc/).
list
json-rpc
This is awesome, thanks for the fix!
Tests added for tuple return
Either way this was wrong when
tuple
was returned from within the rpc function: theTypeError
had atuple
for%r
formatting which was wrong and resulted in uncomprehensible error:https://github.com/samuraisam/django-json-rpc/blob/master/jsonrpc/site.py#L225
The behavior of converting
tuple
tolist
is consistent with whatjson-rpc
does (https://pypi.python.org/pypi/json-rpc/).