On Jul 25, 2014 6:54 PM, "Dan Stromberg" <drsali...@gmail.com> wrote:
>
> On Fri, Jul 25, 2014 at 5:21 PM, Skip Montanaro <s...@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.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to