Failure when calling erlang functions that returns empty list/tuple

Bug #294735 reported by willi
2
Affects Status Importance Assigned to Milestone
Twotp
Fix Released
Medium
Thomas Herve

Bug Description

Hi,

erlang:list_to_tuple([]) -> {}, erlang:tuple_to_list({}) -> []

Both calls fails, when i trying to call them with attached python program, that was borrowed from your example application. Traceback in both cases is following:

Got error [Failure instance: Traceback: <type 'exceptions.IndexError'>: tuple index out of range
/usr/lib/python2.5/site-packages/twotp/node.py:282:passThroughMessage
/usr/lib/python2.5/site-packages/twotp/node.py:86:operation_send
/usr/lib/python2.5/site-packages/twisted/internet/defer.py:239:callback
/usr/lib/python2.5/site-packages/twisted/internet/defer.py:304:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.5/site-packages/twisted/internet/defer.py:317:_runCallbacks
/usr/lib/python2.5/site-packages/twotp/node.py:302:cb
]

Twotp version 0.4, Python 2.5.2, Twisted 2.5.0-2build2 (ubuntu hardy packaged).

Revision history for this message
willi (vitaliybatichko) wrote :
Revision history for this message
Thomas Herve (therve) wrote :

I'm really sorry I missed your bug report. It should be fixed in r29 in trunk.

Changed in twotp:
assignee: nobody → therve
importance: Undecided → Medium
status: New → Fix Committed
Thomas Herve (therve)
Changed in twotp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.