Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'exercise': 0.03; 'subject:missing': 0.07; 'subject:How': 0.09; 'ast': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'throw': 0.09; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message- id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subject:debug': 0.16; 'subject:required': 0.16; 'laura': 0.18; 'changes': 0.20; 'trying': 0.22; 'lawrence': 0.22; '2015': 0.23; "i've": 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'url:bugs': 0.24; 'sort': 0.25; 'error': 0.27; 'converting': 0.27; "doesn't": 0.28; 'received:se': 0.29; 'maybe': 0.31; 'url:python': 0.33; 'subject:?': 0.34; 'to:addr:python-list': 0.35; 'something': 0.35; 'url:org': 0.36; 'subject:" ': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'to:addr:python.org': 0.39; 'mark': 0.40; 'header:Message-Id:1': 0.62; 'subject': 0.68; 'received:89': 0.80; 'frustrating': 0.84; 'recursively?': 0.84 To: python-list@python.org From: Laura Creighton Subject: Re: How to debug TypeError: required field "lineno" missing from expr? In-Reply-To: Message from Mark Lawrence of "Mon, 29 Jun 2015 02:14:43 +0100." References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24653.1435561733.1@fido> Date: Mon, 29 Jun 2015 09:08:53 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Mon, 29 Jun 2015 09:08:55 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1435561743 news.xs4all.nl 2966 [2001:888:2000:d::a6]:38078 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3461 X-Received-Body-CRC: 858685533 Xref: csiph.com comp.lang.python:93283 In a message of Mon, 29 Jun 2015 02:14:43 +0100, Mark Lawrence writes: >Purely as an exercise I've been converting Grant Jenks' pypatt[1] from >2.7 to 3.4. I've managed to sort out most of the required changes by >checking on what I can see with an AST pretty printer[2]. So it's >rather frustrating to have the compile stage throw the error given in >the subject line. Are you trying to use ast.copy_location recursively somewhere? http://bugs.python.org/issue3530 Maybe you have found something else that doesn't work recursively? Laura