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


Groups > comp.lang.python > #8472

Re: Python 3 syntax error question

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'terry': 0.07; 'difference,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:error': 0.11; 'syntax': 0.11; 'am,': 0.13; 'wrote:': 0.15; 'library': 0.15; 'classifier': 0.16; 'py3': 0.16; 'pypi.': 0.16; 'reedy': 0.16; 'subject:syntax': 0.16; 'unpacking': 0.16; 'errors,': 0.19; 'jan': 0.19; 'subject:question': 0.21; 'wrote': 0.21; 'header:In-Reply-To:1': 0.22; 'trying': 0.23; 'responses.': 0.23; 'code': 0.24; '(the': 0.28; 'fact': 0.30; 'version': 0.30; 'done,': 0.32; 'header:User- Agent:1': 0.34; 'header:X-Complaints-To:1': 0.34; 'there': 0.34; 'to:addr:python-list': 0.34; 'thank': 0.35; 'that,': 0.35; 'explicit': 0.35; 'listed': 0.37; 'doing': 0.37; 'but': 0.37; 'install': 0.38; 'received:org': 0.38; 'subject:: ': 0.38; 'run': 0.39; 'header:Mime-Version:1': 0.39; 'feed': 0.39; 'to:addr:python.org': 0.39; 'under': 0.39; 'hope': 0.60; 'your': 0.61; 'easily': 0.61; 'results': 0.62; 'back': 0.63; 'further': 0.65; 'python2': 0.84; 'advertise': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Python 3 syntax error question
Date Sun, 26 Jun 2011 13:31:45 -0400
References <Xns9F105B30356CArzantowgmailcom@74.209.131.13> <4e074768$0$29982$c3e8da3$5496439d@news.astraweb.com> <Xns9F1073B21B96Frzantowgmailcom@74.209.131.13>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host rain.gmane.org
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
In-Reply-To <Xns9F1073B21B96Frzantowgmailcom@74.209.131.13>
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.421.1309109519.1164.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 82.94.164.166
X-Trace 1309109520 news.xs4all.nl 4360 [::ffff:82.94.164.166]:35432
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8472

Show key headers only | View raw


On 6/26/2011 11:28 AM, rzed wrote:
> steve+comp.lang.python@pearwood.info wrote in

>> Are you aware that you're trying to install a Python2 library
>> under Python3?

> Thank you all for your responses. Yes, I am aware of the version
> difference, but not of all the implications of that. I will run this
> through 2to3, but even without doing that, there are only about four
> syntax errors, and the others were obvious and easily corrected.

When you are done, I hope you feed results back to author as to how to 
make code run under Py3 without change (the explicit unpacking needed 
for Py3 works in Py2 also) or without further change after 2to3. Then 
encourage author to advertise fact and add Py3 classifier if listed in PyPI.

-- 
Terry Jan Reedy

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