Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:using': 0.04; 'subject:python': 0.11; 'am,': 0.12; 'docstring': 0.16; 'docstrings': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.16; 'wed,': 0.17; 'header:In-Reply- To:1': 0.22; 'though.': 0.23; 'aug': 0.24; 'paul': 0.28; 'message- id:@mail.gmail.com': 0.29; 'thanks': 0.30; "what's": 0.33; 'to:addr:python-list': 0.33; '17,': 0.34; 'element': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'forbid': 0.84; 'subject:Idea': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jJffWBixQOwa4nqpari24shUjZK4OfYuPXLlgsIiuIs=; b=qUqaQl17bLu2DKvuJR1OitdGVW0e6l/7w1iCl6YBSWDWuhgd+4QU47++qLoBOghOF9 T6RW6VWD5AiM0PIxfysXhMnBrjPrwgGIhPgLHX8ml6565qlkyP88BRZfnj5dRqYjEzWt LSS8Bnn/S6wYwTwm9o7IIB2hio3Jxi+AdmDA8= MIME-Version: 1.0 In-Reply-To: <7fb0c5e0-8b66-4de1-adbc-db601781bd24@v7g2000vbk.googlegroups.com> References: <2As2q.636$7r4.389@viwinnwfe02.internal.bigpond.com> <7fb0c5e0-8b66-4de1-adbc-db601781bd24@v7g2000vbk.googlegroups.com> Date: Wed, 17 Aug 2011 01:03:34 +0100 Subject: Re: Idea for pure-python templates using AST. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313539416 news.xs4all.nl 23867 [2001:888:2000:d::a6]:54765 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11629 On Wed, Aug 17, 2011 at 12:57 AM, Paul Wray wrote: > Thanks yes ama aware of docstrings but did not consider. > They are easy to strip out though. > Maybe. You'd have to take notice of what's a docstring and what's the first element to be outputted. Or alternatively, just forbid docstrings on those functions. ChrisA