Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8462
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.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; '"""': 0.07; 'python': 0.08; '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; 'wrote:': 0.15; '(b,': 0.16; 'build.': 0.16; 'fix,': 0.16; 'fix:': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:t-dialin.net': 0.16; 'subject:syntax': 0.16; 'suggestions?': 0.16; 'skip:" 40': 0.16; 'def': 0.16; 'errors,': 0.19; 'subject:question': 0.21; '(most': 0.21; 'file,': 0.22; 'maybe': 0.22; 'invalid': 0.25; 'traceback': 0.25; 'later': 0.26; 'tried': 0.27; "i'm": 0.27; 'seeing': 0.28; 'import': 0.29; 'from:addr:web.de': 0.30; 'quoting': 0.30; 'url:dev': 0.30; 'version': 0.30; 'url:library': 0.31; 'error': 0.33; "i've": 0.33; 'does': 0.33; 'anyone': 0.33; 'header:X-Complaints-To:1': 0.34; 'there': 0.34; 'regardless': 0.34; 'to:addr:python-list': 0.34; "can't": 0.34; 'changes.': 0.35; 'identical': 0.35; 'last):': 0.35; 'occurs': 0.35; "isn't": 0.35; 'file': 0.36; 'skip:" 10': 0.36; 'url:python': 0.36; 'explain': 0.36; 'before.': 0.37; 'instead.': 0.37; 'anything': 0.37; 'but': 0.37; 'some': 0.37; 'install': 0.38; 'received:org': 0.38; 'url:org': 0.38; 'showing': 0.38; 'subject:: ': 0.38; 'two': 0.38; 'run': 0.39; 'went': 0.39; 'header:Mime-Version:1': 0.39; 'url:docs': 0.39; 'to:addr:python.org': 0.39; "there's": 0.39; 'here.': 0.66; 'url:3': 0.67; 'url:0': 0.69; 'setting,': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Peter Otten <__peter__@web.de> |
| Subject | Re: Python 3 syntax error question |
| Date | Sun, 26 Jun 2011 16:59:58 +0200 |
| Organization | None |
| References | <Xns9F105B30356CArzantowgmailcom@74.209.131.13> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Gmane-NNTP-Posting-Host | p5084a364.dip.t-dialin.net |
| 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.415.1309100401.1164.python-list@python.org> (permalink) |
| Lines | 45 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1309100402 news.xs4all.nl 4354 [::ffff:82.94.164.166]:41648 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8462 |
Show key headers only | View raw
rzed wrote: > I've tried to install PySVG in a Python 3 setting, and I get a few > errors on the build. Most are easy to fix, but this one I can't > explain or fix: > > <error> > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "builders.py", line 12, in <module> > from pysvg.shape import * > File "C:\Python32\lib\site-packages\pysvg\shape.py", line 91 > def moveToPoint(self,(x,y)): > ^ > SyntaxError: invalid syntax > </error> > > The moveToPoint method occurs three times in the file, with identical > signatures. The other two are not showing up as errors, though since > they occur later in the file, that may not be indicative. > > I don't see anything erroneous in this line. The syntax error often > comes from the previous line, but I've moved this method around and > it has always failed on this line and no other, regardless of what > went before. > > I'm new to Py3, so maybe there's some obvious thing I'm not seeing > here. Does anyone have any suggestions? > Quoting http://docs.python.org/dev/py3k/whatsnew/3.0.html#removed-syntax """ You can no longer write def foo(a, (b, c)): .... Use def foo(a, b_c): b, c = b_c instead. """ If there isn't a Python 3 version of PySVG you can try to run it through http://docs.python.org/dev/py3k/library/2to3.html#to3-reference to make the easy changes.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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