Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:code': 0.07; 'function:': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; 'add(self,': 0.16; 'eclipse': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'parentheses': 0.16; 'subject:Programming': 0.16; 'subject:python': 0.16; 'sender:addr:gmail.com': 0.17; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'subject:Code': 0.24; 'cc:2**0': 0.24; '>': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'subject:the': 0.34; 'subject: (': 0.35; 'received:google.com': 0.35; 'first': 0.61; 'to:addr:gmail.com': 0.65; 'subject:. ': 0.67; 'line,': 0.68 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=R8LcLzEmkvRLBomRuacoub3LInrbwEnxQPcXfYyNp3A=; b=OikvYKlsPj4gaSPMBZnTTAAge9Jwdwz0/Lqyq9rrPPNP6VcpVzZ8Q/CorjIx9CjVEc d9RJoEKx3ShxSk4gnG5VlaAH1ANIcLwglIvYjngS1yg9Rkl2phf4mu7VAmaMn4UF6355 7men5j0PpjuljyJb6IBIRThZaPY3YtMRrOJ8BGpDF5yvFuw1h7L9kWcDwoJm9jTO6Tx5 n+fYM0lWwqEzcqCold/QMk1BbdYXdEhHEH87O/ZGw4MQ/c1p+CvbmWJ5ZQPZ9pbW9fzj SrqMpaXPvd/3a5WW9I7Fw/7D0hqirNPg2DjWnf9ZiOOhmCqx7+BLPGzrN5sq/3mra3HF Uf8Q== MIME-Version: 1.0 X-Received: by 10.50.33.100 with SMTP id q4mr10323837igi.8.1406334110176; Fri, 25 Jul 2014 17:21:50 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: <8e593a0d-cf61-4b1a-8273-8309496e3696@googlegroups.com> References: <8e593a0d-cf61-4b1a-8273-8309496e3696@googlegroups.com> Date: Fri, 25 Jul 2014 19:21:50 -0500 X-Google-Sender-Auth: JfFZJhQZpHHQKmOpiNjZWTXNNSE Subject: Re: Prob. Code Downloaded for Programming the Semantic Web (python code) From: Skip Montanaro To: Bruce Whealton Content-Type: multipart/alternative; boundary=089e0158b034129f6f04ff0dadd2 Cc: Python 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406334113 news.xs4all.nl 2836 [2001:888:2000:d::a6]:47616 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75217 --089e0158b034129f6f04ff0dadd2 Content-Type: text/plain; charset=UTF-8 > 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. Skip --089e0158b034129f6f04ff0dadd2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> 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. =C2=A0

Seems like this code is Python 2.x.

Skip

--089e0158b034129f6f04ff0dadd2--