Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'advice.': 0.09; 'pil': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; '9:13': 0.16; 'filelist': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iterable': 0.16; 'subject:those': 0.16; 'wrote:': 0.18; 'value.': 0.19; '>>>': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'define': 0.26; 'equivalent': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; 'received:google.com': 0.35; 'right?': 0.36; 'subject:?': 0.36; 'should': 0.36; 'two': 0.37; 'nov': 0.38; 'skip:o 30': 0.61; 'refer': 0.63; 'skip:\xe2 10': 0.65; 'thomas': 0.65; '8bit%:43': 0.74; 'forgotten': 0.91; 'to:none': 0.92 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:cc :content-type:content-transfer-encoding; bh=hIgU3ttnB1mU7UhJJpTty0uNSJpgkTS/RugD4+HtFCQ=; b=URAhclXCjH0VPssHQywdMBUylK/ymBJsJW0W0wTSgVR2etvk4wi7W0dclFGtOyNvCO ZTNJlSnJlwE9n8q8kEvF87iwXvR/9UFkMlz24UfRbsxpEJNROageqRZC3c+tsefpX10z H6yfTAtlUJ+qGoaXj0NUPDM7wpKt+gYTBRU1Tonx9pa3FFu236i051qlh6DD3HTzzNYc xofgtoiovs9mNbFLFdmnlDzI+mgBuIPlfejEuxWj9Hzt9za7AkZX8LL/Uh/RTkRPRmNR rKK82ctmeElTKVWnP/Bjz4PDWolE3vYIOQWCfvYJbN0jaIBgB5RAGNRfEmo3b9+ZgtT1 P8Iw== MIME-Version: 1.0 X-Received: by 10.107.132.78 with SMTP id g75mr3051245iod.21.1416176554322; Sun, 16 Nov 2014 14:22:34 -0800 (PST) In-Reply-To: <1692646.8RgHztCiv6@PointedEars.de> References: <61579529.uBKFXsbbfR@PointedEars.de> <1692646.8RgHztCiv6@PointedEars.de> Date: Mon, 17 Nov 2014 09:22:34 +1100 Subject: Re: How to fix those errors? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416176562 news.xs4all.nl 2939 [2001:888:2000:d::a6]:60050 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80925 On Mon, Nov 17, 2014 at 9:13 AM, Thomas 'PointedEars' Lahn wrote: > Thomas 'PointedEars' Lahn wrote: > >> Abdul Abdul wrote: >>> from PIL import Image >>> import os >> [=E2=80=A6] >>> for inputfile in filelist >>> outputfile =3D os.path.splitext(inputfile)[0]+".jpg" >>> [=E2=80=A6] >> >> Define =E2=80=9Cfilelist=E2=80=9D which needs to refer to an iterable va= lue. Also, you >> have forgotten to end the =E2=80=9Cfor=E2=80=A6in=E2=80=9D statement wit= h a semicolon, > > _colon_ (=E2=80=9C:=E2=80=9D) You should be able to use two semicolons, that's equivalent to one colon ri= ght? ChrisA (No, it isn't, so don't take this advice. Thanks.)