python swipl.py outputs:
File "swipl.py", line 680, in __main__._test
Failed example:
t[0].pl_term-t[1].pl_term == t[1].pl_term - t[2].pl_term == -1
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest __main__._test[2]>", line 1, in <module>
t[0].pl_term-t[1].pl_term == t[1].pl_term - t[2].pl_term == -1
File "swipl.py", line 361, in __getitem__
pl_term = self.pl_term + index
TypeError: unsupported operand type(s) for +: 'LP_c_uint' and 'int'
/home/john/Desktop/swipy/plutils.py:127: UserWarning: Call of 'PL_get_atom' without prototype
warn( 'Call of \'%s\' without prototype'%attr )