Received: from mail-fx0-f61.google.com ([209.85.161.61]) by chain.digitalkingdom.org with esmtp (Exim 4.72) (envelope-from ) id 1QAHj2-0003CO-Sw; Thu, 14 Apr 2011 01:16:41 -0700 Received: by fxm14 with SMTP id 14sf1187062fxm.16 for ; Thu, 14 Apr 2011 01:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:received-spf:x-virus-scanned :message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=BtOhTKhkTM1mhl3a4FCYUBkwH077awtW5Gp7ph3FSlM=; b=V6K2RF//KOyX51QA1dfJIT22gttvigmJRZ2GZKOm88ezX5r4m4E5iB2YwZMPBJL8NT HuRkGf4Zw+svut7K/sRee85QgZDi7F38FLE1sm//hUuPqw3Ez+ZIw4bwnUaXiG8Xvqt+ 5Z0mHzaGxchOWaD95IgBh5iSzT2PseB/4cnhk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:x-virus-scanned:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; b=YzlmbZFuzXRH92LaceDETXPhSpoVFIFn2GcrBZ7b0DT0Te+x8s4bxNWtaUBsl83gYk lZWaIGyjgYV5+UPAh/XwCmIbYPPwMadlEBqqguscZAldZb3al5PLcn/YCUpDNdlvNL8d MI/RFYMLp5o9p4W2DNF6Iouj4BxzonLrmGvlE= Received: by 10.223.24.135 with SMTP id v7mr57691fab.40.1302768974783; Thu, 14 Apr 2011 01:16:14 -0700 (PDT) X-BeenThere: lojban-beginners@googlegroups.com Received: by 10.204.35.21 with SMTP id n21ls3391197bkd.1.p; Thu, 14 Apr 2011 01:16:13 -0700 (PDT) Received: by 10.204.130.211 with SMTP id u19mr78954bks.0.1302768973164; Thu, 14 Apr 2011 01:16:13 -0700 (PDT) Received: by 10.204.130.211 with SMTP id u19mr78953bks.0.1302768973148; Thu, 14 Apr 2011 01:16:13 -0700 (PDT) Received: from mail.wouldyoubuythis.net (mail.wybt.net [195.191.196.3]) by gmr-mx.google.com with ESMTPS id e15si239141bke.1.2011.04.14.01.16.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2011 01:16:12 -0700 (PDT) Received-SPF: neutral (google.com: 195.191.196.3 is neither permitted nor denied by best guess record for domain of timonator@perpetuum-immobile.de) client-ip=195.191.196.3; Received: from localhost (localhost [127.0.0.1]) by mail.wouldyoubuythis.net (Postfix) with ESMTP id 4C5AE48B4F for ; Thu, 14 Apr 2011 10:15:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.wybt.net Received: from mail.wouldyoubuythis.net ([127.0.0.1]) by localhost (mail.wybt.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kpRCNFibR9ph for ; Thu, 14 Apr 2011 10:15:14 +0200 (CEST) Received: from [192.168.178.94] (HSI-KBW-085-216-123-040.hsi.kabelbw.de [85.216.123.40]) by mail.wouldyoubuythis.net (Postfix) with ESMTPSA id BD07A48048 for ; Thu, 14 Apr 2011 10:15:13 +0200 (CEST) Message-ID: <4DA6AD48.5040108@perpetuum-immobile.de> Date: Thu, 14 Apr 2011 10:16:08 +0200 From: Timo Paulssen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Icedove/3.1.9 MIME-Version: 1.0 To: lojban-beginners@googlegroups.com Subject: [lojban-beginners] python version (was: Tool proposal: Glossary Assembler) References: In-Reply-To: X-Original-Sender: timonator@perpetuum-immobile.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 195.191.196.3 is neither permitted nor denied by best guess record for domain of timonator@perpetuum-immobile.de) smtp.mail=timonator@perpetuum-immobile.de Reply-To: lojban-beginners@googlegroups.com Precedence: list Mailing-list: list lojban-beginners@googlegroups.com; contact lojban-beginners+owners@googlegroups.com List-ID: X-Google-Group-Id: 300742228892 List-Post: , List-Help: , List-Archive: Sender: lojban-beginners@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Length: 1219 On 04/14/2011 03:34 AM, Johan Pretorius wrote: > When I run vocab.py on the Terry the Tiger story, I get this: > File "vocab.py", line 15 > print(__doc__, file=sys.stderr) > ^ > SyntaxError: invalid syntax > > If I change the "=" to "==", I get: > > File "vocab.py", line 66 > except Exception as e: > ^ > SyntaxError: invalid syntax > > I'ts probably because I'm using an old python (v2.5.2). What version are > you using? > > Regards, > Johan This code uses the print function, which you can get in python 2.6 if the first line has the future import for it: from __future__ import print_function The exception syntax using the "as" keyword is new in python 2.6, as well. It looks like the code was written in python 3, though, which would be rather typical of purpleposeidon. mu'o mi'e timos -- You received this message because you are subscribed to the Google Groups "Lojban Beginners" group. To post to this group, send email to lojban-beginners@googlegroups.com. To unsubscribe from this group, send email to lojban-beginners+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/lojban-beginners?hl=en.