Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.068 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.01; 'exec': 0.07; 'oh,': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'graceful': 0.16; 'perfect.': 0.16; 'threads': 0.16; 'wherein': 0.16; 'memory': 0.18; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'common': 0.26; 'executing': 0.27; 'function': 0.30; 'code': 0.31; 'running': 0.32; 'environment,': 0.33; 'received:google.com': 0.34; 'posting': 0.35; 'too.': 0.35; 'received:209.85': 0.35; 'subject:" ': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'space': 0.39; 'kind': 0.61; 'afraid': 0.66; 'subject:get': 0.81; 'holes': 0.84; 'careful': 0.91; 'received:209.85.213.184': 0.91; 'received:mail- yx0-f184.google.com': 0.91; 'lucas': 0.93 Newsgroups: comp.lang.python Date: Thu, 30 Aug 2012 16:54:18 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.231.57.103; posting-account=8j8NxgoAAABK-JzsxnXiug-kduNcusfe References: <5c488ca5-d730-40c4-b860-7a53201f21ae@googlegroups.com> <599e5709-22ab-4e85-8443-181a2ae19c17@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 98.231.57.103 MIME-Version: 1.0 Subject: Re: get return or locals from "exec" str in "environment" From: lucas To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346370867 news.xs4all.nl 6978 [2001:888:2000:d::a6]:37049 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28150 oh, yeah that was perfect. got it working and it is graceful too. sorry a= bout the double post, i thought i was only posting to this one. one final concern, if this code is running under a function in a multi-thre= aded, multi-session kind of environment, does exec cross threads or session= s? like, i am afraid that i will get cross-over or bleeding into other thr= eads or sessions. does exec do that kind of common memory space wherein i = have to be very very careful about executing such code and my daemon crashi= ng or security holes and the like. lucas