Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80925

Re: How to fix those errors?

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 <rosuav@gmail.com>
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 <mailman.15903.1416173691.18130.python-list@python.org> <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 <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15917.1416176562.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Mon, Nov 17, 2014 at 9:13 AM, Thomas 'PointedEars' Lahn
<PointedEars@web.de> wrote:
> Thomas 'PointedEars' Lahn wrote:
>
>> Abdul Abdul wrote:
>>> from PIL import Image
>>> import os
>> […]
>>>     for inputfile in filelist
>>>     outputfile = os.path.splitext(inputfile)[0]+".jpg"
>>> […]
>>
>> Define “filelist” which needs to refer to an iterable value.  Also, you
>> have forgotten to end the “for…in” statement with a semicolon,
>
> _colon_ (“:”)

You should be able to use two semicolons, that's equivalent to one colon right?

ChrisA
(No, it isn't, so don't take this advice. Thanks.)

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to fix those errors? Abdul Abdul <abdul.sw84@gmail.com> - 2014-11-16 22:32 +0100
  Re: How to fix those errors? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-16 23:04 +0100
    Re: How to fix those errors? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-16 23:13 +0100
      Re: How to fix those errors? Chris Angelico <rosuav@gmail.com> - 2014-11-17 09:22 +1100
        Re: How to fix those errors? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-17 11:38 +1100
          Re: How to fix those errors? Chris Angelico <rosuav@gmail.com> - 2014-11-17 12:05 +1100
          Re: How to fix those errors? Roy Smith <roy@panix.com> - 2014-11-16 21:55 -0500
            Re: How to fix those errors? Chris Angelico <rosuav@gmail.com> - 2014-11-17 14:06 +1100
              Re: How to fix those errors? alex23 <wuwei23@gmail.com> - 2014-11-19 13:02 +1000
                Re: How to fix those errors? Chris Angelico <rosuav@gmail.com> - 2014-11-19 14:40 +1100
                Re: How to fix those errors? alex23 <wuwei23@gmail.com> - 2014-11-21 20:21 +1000
            Re: How to fix those errors? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-11-18 20:25 +1300
              Re: How to fix those errors? Chris Angelico <rosuav@gmail.com> - 2014-11-18 18:37 +1100
              Re: How to fix those errors? wxjmfauth@gmail.com - 2014-11-19 08:00 -0800
            Re: How to fix those errors? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-19 09:33 +1100

csiph-web