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


Groups > comp.lang.python > #8470

Re: Python 3 syntax error question

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <malaclypse2@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'versions,': 0.05; 'subject:Python': 0.06; 'python': 0.08; 'subject:error': 0.11; 'am,': 0.13; 'wrote:': 0.15; '2to3': 0.16; 'runs.': 0.16; 'subject:syntax': 0.16; 'sure,': 0.16; 'great.': 0.16; 'written': 0.17; '2.x': 0.19; 'subject:question': 0.21; 'header:In-Reply- To:1': 0.22; 'received:209.85.215.46': 0.23; 'received:mail- ew0-f46.google.com': 0.23; "they've": 0.23; 'compiled': 0.23; 'worked': 0.24; 'libraries': 0.25; 'fine': 0.26; 'message- id:@mail.gmail.com': 0.28; 'code,': 0.29; '3.x': 0.30; 'sun,': 0.30; 'chris': 0.32; 'pure': 0.32; "i've": 0.33; 'to:addr:python- list': 0.34; "can't": 0.34; 'received:google.com': 0.37; 'but': 0.37; 'received:209.85': 0.38; 'subject:: ': 0.38; 'experience,': 0.38; 'run': 0.39; 'speak': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'might': 0.40; 'direct': 0.66; '26,': 0.67; 'jun': 0.67; '11:31': 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; bh=0tD0V9bJNpwcTN3DQ19Zq7yvcW1IfGN0wvlGiW8t6pQ=; b=FMkD49X3Vvl6KsDuAiYRHgzbLnrAm8TuRtAt7n9q4DV/B6c53eQ4JRG3XGe9Jo2FbK jwPS3kaAIKCSjGV2FO2Y1jtHPRMK9uDjLuXN5do0/PNotnCb8f133bm6Fd1mvSPe+3O7 QR6vc+2ZtReEXdxXUGaQFDfHirhWj6nFByz4o=
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; b=s5ixOLfPFL59tDYVkDTE/YHQeB6CZV8yRIBBsae//pcD/xvaCRHTRVoICVd4Qh59Pr VTw8wvvVYhqbc8rih+w0XIIvu1FxOo5SaxmsbMAl0BO/+ZQiuv/r+ZjrmL5ahwHQUKS/ lMzKLdGENXuKILBpraYjrKJaAwxbduCXJ0Inw=
MIME-Version 1.0
In-Reply-To <BANLkTiknsyDUhJeVwqFobQ4ppT+50-HLKw@mail.gmail.com>
References <Xns9F105B30356CArzantowgmailcom@74.209.131.13> <4e074768$0$29982$c3e8da3$5496439d@news.astraweb.com> <Xns9F1073B21B96Frzantowgmailcom@74.209.131.13> <BANLkTiknsyDUhJeVwqFobQ4ppT+50-HLKw@mail.gmail.com>
Date Sun, 26 Jun 2011 12:50:52 -0400
Subject Re: Python 3 syntax error question
From Jerry Hill <malaclypse2@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.419.1309107054.1164.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 82.94.164.166
X-Trace 1309107054 news.xs4all.nl 4352 [::ffff:82.94.164.166]:44431
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8470

Show key headers only | View raw


On Sun, Jun 26, 2011 at 11:31 AM, Chris Angelico <rosuav@gmail.com> wrote:
> 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!

This has been my experience, by the way.  I've used a few small pure
python libraries written for python 2.x that don't have 3.x versions,
and they've all worked just fine with just a quick run through the
2to3 process.  I can't speak for larger libraries, or ones with lots
of compiled code, but my experience with 2to3 has been great.

-- 
Jerry

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


Thread

Python 3 syntax error question rzed <rzantow@gmail.com> - 2011-06-26 13:04 +0000
  Re: Python 3 syntax error question steve+comp.lang.python@pearwood.info - 2011-06-27 00:51 +1000
    Re: Python 3 syntax error question rzed <rzantow@gmail.com> - 2011-06-26 15:28 +0000
      Re: Python 3 syntax error question Chris Angelico <rosuav@gmail.com> - 2011-06-27 01:31 +1000
      Re: Python 3 syntax error question Noah Hall <enalicho@gmail.com> - 2011-06-26 16:32 +0100
      Re: Python 3 syntax error question Jerry Hill <malaclypse2@gmail.com> - 2011-06-26 12:50 -0400
      Re: Python 3 syntax error question Terry Reedy <tjreedy@udel.edu> - 2011-06-26 13:31 -0400
  Re: Python 3 syntax error question Peter Otten <__peter__@web.de> - 2011-06-26 16:59 +0200
  Re: Python 3 syntax error question Noah Hall <enalicho@gmail.com> - 2011-06-26 16:10 +0100

csiph-web