Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28150

Re: get return or locals from "exec" str in "environment"

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 <sjlukacs@gmail.com>
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 <mailman.3991.1346366717.4697.python-list@python.org>
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> <mailman.3987.1346365155.4697.python-list@python.org> <599e5709-22ab-4e85-8443-181a2ae19c17@googlegroups.com> <mailman.3991.1346366717.4697.python-list@python.org>
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 <sjlukacs@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.3993.1346370867.4697.python-list@python.org> (permalink)
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

Show key headers only | View raw


oh, yeah that was perfect.  got it working and it is graceful too.  sorry about 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-threaded, multi-session kind of environment, does exec cross threads or sessions?  like, i am afraid that i will get cross-over or bleeding into other threads 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 crashing or security holes and the like.

lucas

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: get return or locals from "exec" str in "environment" Chris Angelico <rosuav@gmail.com> - 2012-08-31 08:19 +1000
  Re: get return or locals from "exec" str in "environment" lucas <sjlukacs@gmail.com> - 2012-08-30 15:25 -0700
    Re: get return or locals from "exec" str in "environment" Chris Angelico <rosuav@gmail.com> - 2012-08-31 08:45 +1000
      Re: get return or locals from "exec" str in "environment" lucas <sjlukacs@gmail.com> - 2012-08-30 16:54 -0700
        Re: get return or locals from "exec" str in "environment" lucas <sjlukacs@gmail.com> - 2012-08-30 16:56 -0700
        Re: get return or locals from "exec" str in "environment" lucas <sjlukacs@gmail.com> - 2012-08-30 16:56 -0700
        Re: get return or locals from "exec" str in "environment" Chris Angelico <rosuav@gmail.com> - 2012-08-31 10:13 +1000
      Re: get return or locals from "exec" str in "environment" lucas <sjlukacs@gmail.com> - 2012-08-30 16:54 -0700
  Re: get return or locals from "exec" str in "environment" lucas <sjlukacs@gmail.com> - 2012-08-30 15:25 -0700

csiph-web