Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'subject:error': 0.11; 'am,': 0.13; 'wrote:': 0.15; '+def': 0.16; '-def': 0.16; '2to3': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'runs.': 0.16; 'subject:syntax': 0.16; 'sure,': 0.16; 'mon,': 0.17; 'received:209.85.210.174': 0.19; 'received:mail-iy0-f174.google.com': 0.19; 'subject:question': 0.21; 'header:In-Reply-To:1': 0.22; 'message- id:@mail.gmail.com': 0.28; '27,': 0.29; 'to:addr:python-list': 0.34; '...': 0.34; 'received:google.com': 0.37; 'but': 0.37; 'received:209.85': 0.38; 'subject:: ': 0.38; 'run': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'might': 0.40; 'direct': 0.66; 'jun': 0.67; 'revealing': 0.84; 'unaware': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=NPY4O0hbReuP2loKjgJis2mia3QvQpzVHoLSrtUjoOo=; b=ezDMcmfMoDaVPX5A7s/d1MQTJ3f6emONG+orz/1mQ+inNumIueiROIFEDgcAEtwUT/ cuAP76lxt6F6b8Y1MdcJDHKLEewkTK3ALFOBDEqDWvCZS485inNJX4bk53mNLVBQtKP9 VAadPs4bnzilz3bc8XcUf71zqrMvsB5Cbkm7Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=OZBJN3ANoccR5VKmgr+igRENfDk4IkjFzElxJ0P1rQCu6pTp0QmpCvsGoc4zRs0bI1 UDrC84lUXVuOhSWgBunZVmW68wYscaz5kYPleDRgFnmpX15cFwD1sQy9KhSPkZi3QX9m 4QsNWUBwVrrR9RGqWedCz6/i6NAEsgf+ASweQ= MIME-Version: 1.0 In-Reply-To: References: <4e074768$0$29982$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 27 Jun 2011 01:31:49 +1000 Subject: Re: Python 3 syntax error question From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 15 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1309102349 news.xs4all.nl 4364 [::ffff:82.94.164.166]:54518 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8465 On Mon, Jun 27, 2011 at 1:28 AM, rzed wrote: > As to 2to3, I have to say that: > > -def a(b, (c,d)): > +def a(b, xxx_todo_changeme): > + =A0 =A0(c,d) =3D xxx_todo_changeme > > ... is not terribly revealing if one is unaware of what about it > needs changing. I know, I know: RTFM.... Sure, but you don't _have_ to look at the diff. Just run it through 2to3 and see how it runs. Never know, it might work direct out of the box! ChrisA