Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.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.053 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'executed': 0.07; 'function,': 0.07; 'aug': 0.13; 'dictionary.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'variables': 0.17; 'received:209.85.214.174': 0.21; '31,': 0.22; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'see,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'fri,': 0.30; 'function': 0.30; 'harry': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'subject:" ': 0.36; 'received:209': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'called': 0.39; 'header:Received:5': 0.40; 'within': 0.64; 'subject:get': 0.81; 'anywhere.': 0.84; 'locals': 0.84; 'lucas': 0.93 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:content-transfer-encoding; bh=ICkG/DboGs77uj3PzFdWkR+KTrfAmRrwf9dtRIWgFB0=; b=tqhyz0zyqEWxal3WIi0aO0L3vyZyHiKdlOaJXwdevwRyoclmdDJ+z2wZXHL+Y1Vsnt 5azVffMHFKUws8VGytGAF5yD4ddFVe2vjDOe+UaIMsQJKCt27lNY965WMb4AWQMSi7Mf xlSBMAgH+pQiykOXKXeunHJmZo4NqaXAcRdiUdZqXleUgrvyys43RQVnJORX9tF3Adoe UikHXq1znsFJke6m3mted12cQrGX9RVscwo8Mb7XkrowEEOqknWbcLUEwiHzAtxxS0Xt EIJe5SY2DcC4TCptVYqCRj+/9SodHXaDs/RI1xpJTdxnEShedY5nomP7e8emiLHNfmiu GqpA== MIME-Version: 1.0 In-Reply-To: <5c488ca5-d730-40c4-b860-7a53201f21ae@googlegroups.com> References: <5c488ca5-d730-40c4-b860-7a53201f21ae@googlegroups.com> Date: Fri, 31 Aug 2012 08:19:12 +1000 Subject: Re: get return or locals from "exec" str in "environment" From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 1346365155 news.xs4all.nl 6853 [2001:888:2000:d::a6]:33910 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28142 On Fri, Aug 31, 2012 at 8:11 AM, lucas wrote: > and i can see my executed function in there as a type function, and local= and global vars, but i can not access or find "harry" or "rtn" the variabl= es within the function lucas53. i do not know how to access the local vari= ables within lucas53 or the locals to find harry or rtn. i really just wan= t the return dictionary. make sense? Far as I can see, you never actually called that function anywhere. ChrisA