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


Groups > comp.lang.python > #44880

unexpected syntax errors

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'syntax': 0.04; 'url:bitbucket': 0.05; 'attribute': 0.07; 'skip:" 60': 0.07; 'corrections': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'spelling': 0.09; 'python': 0.11; '2.7': 0.14; 'changes': 0.15; "'bad": 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'syntaxerror:': 0.16; 'valueerror,': 0.16; 'import': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'skip:" 40': 0.26; 'header:X-Complaints-To:1': 0.27; 'external': 0.29; 'raise': 0.29; 'getting': 0.31; "skip:' 10": 0.31; 'apparently': 0.31; 'names.': 0.31; 'raised': 0.31; 'file': 0.32; 'older': 0.33; 'could': 0.34; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'issue': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'new': 0.61; 'making': 0.63; 'believe': 0.68; 'invalid': 0.68; 'received:109': 0.72; '2.7.': 0.84; 'those?': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robin Becker <robin@reportlab.com>
Subject unexpected syntax errors
Date Tue, 07 May 2013 12:02:38 +0100
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 109.174.168.73
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.1403.1367924571.3114.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1367924571 news.xs4all.nl 15903 [2001:888:2000:d::a6]:53138
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:44880

Show key headers only | View raw


A user is getting this error

>
> New issue 8: bad raise syntax
> https://bitbucket.org/rptlab/reportlab/issue/8/bad-raise-syntax
>
> ........
>
>   File "/usr/lib/python2.7/site-packages/svg2rlg.py", line 16, in <module>
>     from reportlab.graphics import renderPDF
>   File "/usr/lib64/python2.7/site-packages/reportlab/graphics/renderPDF.py", line 168
>     raise ValueError, 'bad value for textAnchor '+str(text_anchor)
>                     ^
> SyntaxError: invalid syntax
>
>

however, I believe that this older syntax is allowed in python 2.7. We've had 
other issues like this raised from various distros which are apparently making 
changes to 2.7 which change the external behaviour eg spelling corrections to 
attribute names. Could this be one of those?
-- 
Robin Becker

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


Thread

unexpected syntax errors Robin Becker <robin@reportlab.com> - 2013-05-07 12:02 +0100

csiph-web