Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:code': 0.07; '3.0,': 0.09; 'function:': 0.09; 'to:addr:pobox.com': 0.09; 'to:addr:skip': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; 'add(self,': 0.16; 'eclipse': 0.16; 'parentheses': 0.16; 'subject:Programming': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'cc:addr:gmail.com': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'skip': 0.24; 'subject:Code': 0.24; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; '25,': 0.31; 'fri,': 0.33; 'subject:the': 0.34; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; '2.6': 0.36; 'pm,': 0.38; 'first': 0.61; 'subject:. ': 0.67; 'line,': 0.68; 'jul': 0.74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=njHrhfcRdEUHqsDrNDTlPxaewUKS2m+cGdKuncykWhQ=; b=CSsYwDv8Af5YtqJlpZw5CUQjxlz5nzlNGZuk+CTvIZ2oZieBvnPDyDvrFvcA0OeMGC 80ZXQ5PS0/uWdDgbyKRsv+U+LGbAi5S4UyDWDDn/pWKmhGAOG9/8ylqzTY9ZP8zhQPwk NtS7uKiGU3SJyfaGF6kSXn0JMWM8ptdfBd6c/IOleKeR4paKh/SIha36aKTzkLd+Iw8c vYtVsa82BVGo960RNy+RIJtnbh1FGTxx2ixoB5gMTcWCTRrS1ogkUiHsyhNOefIbCdak yqVn6mNXEQ7kZZwo2LdnJxCjpPXlDq2eOUGfmydKqXabsiARik4o0+vnYHzBoDgFkQQk yBaA== MIME-Version: 1.0 X-Received: by 10.236.53.69 with SMTP id f45mr28207010yhc.53.1406335953063; Fri, 25 Jul 2014 17:52:33 -0700 (PDT) In-Reply-To: References: <8e593a0d-cf61-4b1a-8273-8309496e3696@googlegroups.com> Date: Fri, 25 Jul 2014 17:52:33 -0700 Subject: Re: Prob. Code Downloaded for Programming the Semantic Web (python code) From: Dan Stromberg To: Skip Montanaro Content-Type: text/plain; charset=UTF-8 Cc: Python , Bruce Whealton X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406335962 news.xs4all.nl 2866 [2001:888:2000:d::a6]:53930 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75219 On Fri, Jul 25, 2014 at 5:21 PM, Skip Montanaro 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