Prob. Code Downloaded for Programming the Semantic Web (python code)

Dan Stromberg drsalists at gmail.com
Fri Jul 25 20:52:33 EDT 2014


On Fri, Jul 25, 2014 at 5:21 PM, Skip Montanaro <skip at pobox.com> wrote:
>> OK, Eclipse with PyDev doesn't like this first line, with the function:
>> def add(self, (sub, pred, obj)):
>>
>> It complains about the parentheses just before sub.
>
> Seems like this code is Python 2.x.

For me, this code ran on all of 2.4, 2.5, 2.6 and 2.7, but not on any
of 3.0, 3.1, 3.2, 3.3 or 3.4.

HTH



More information about the Python-list mailing list