Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:()': 0.09; 'sat,': 0.15; '"lambda"': 0.16; "'body'": 0.16; 'expression.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'lambda': 0.16; 'oct': 0.16; 'wrote:': 0.17; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'extend': 0.26; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'issues.': 0.29; 'van': 0.29; 'code': 0.31; 'to:addr:python-list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'anything': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; '20,': 0.65; '10:43': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2DqnQ1LP3+DNPhT+B7t5rXxo1JtSY3cizoU3Bz4A5Hg=; b=qwnLM6G1W1no+BWEypy5C43eBO4gNEve6Ohxou9VWPaxJAxI4a5FCp8PMAMUXWtJ5J MvYuxN57/xaRyhHtVZUjezhqEeBpdd+luM9pLfFPIQoZ+YQ1FUWwaqFW5hBipY5oeNie YXl7/L8FsvUQ9475UBrene1apwFpmptmcxN4CCpNNfRgYSc5kywYMrUk9vbO2vZv6u4+ upbYHqfgV6p1pc0mOX8QnZPU/7cvX+yphvmN40gGvgTAnOqvzCfN2/JCgTdskKqOQNEy LlKzN27lQj63Yz7SvXrSwxM5lA9ICg2n42v5qBgzicnrAUAILmErB7Da7bDftqPHw1QP pU3w== MIME-Version: 1.0 In-Reply-To: References: <2f12fa83-54cc-4fc2-85e4-b8aebebf4242@googlegroups.com> <05702a47-ff6b-4589-8352-d21b1921e77e@googlegroups.com> <2e5df7eb-7781-4c32-a9a7-088be940a4d3@googlegroups.com> Date: Sat, 20 Oct 2012 13:00:51 +1100 Subject: Re: use of exec() 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.15 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350698454 news.xs4all.nl 6876 [2001:888:2000:d::a6]:38182 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31789 On Sat, Oct 20, 2012 at 10:43 AM, lars van gemerden wrote: > Do you have any ideas about to what extend the "lambda" version of the code (custom code is only the 'body' of the lambda function) has the same issues? The lambda version definitely has the same issues. You can do pretty much anything with a single expression. ChrisA