Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8459
| Newsgroups | comp.lang.python |
|---|---|
| Subject | Python 3 syntax error question |
| From | rzed <rzantow@gmail.com> |
| Message-ID | <Xns9F105B30356CArzantowgmailcom@74.209.131.13> (permalink) |
| Organization | UseNetServer.com |
| Date | 2011-06-26 13:04 +0000 |
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?
--
rzed
Back to comp.lang.python | Previous | Next — 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