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

Ian Kelly ian.g.kelly at gmail.com
Fri Jul 25 21:39:23 EDT 2014


On Jul 25, 2014 6:54 PM, "Dan Stromberg" <drsalists at gmail.com> wrote:
>
> 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.

Python 3.x no longer allows tuple parameter unpacking in function
signatures. See PEP 3113.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140725/b08512aa/attachment.html>


More information about the Python-list mailing list