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


Groups > comp.lang.python > #2539

Looking for ideas on controlling python module loading

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <conathan@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:module': 0.04; 'python': 0.07; 'hash': 0.09; 'interpreter,': 0.09; 'variables.': 0.09; 'subject:python': 0.15; '.py': 0.16; 'wondering': 0.19; 'modules': 0.20; '(or': 0.22; 'file,': 0.22; 'module,': 0.23; 'objects': 0.24; 'received:209.85.220': 0.26; 'script': 0.26; 'define': 0.26; 'message-id:@mail.gmail.com': 0.28; 'loaded': 0.29; 'matches': 0.29; 'server.': 0.31; 'construct': 0.31; 'perhaps': 0.32; 'to:addr:python-list': 0.32; 'uses': 0.34; 'file': 0.35; 'hello,': 0.36; 'received:209.85': 0.37; 'pst': 0.38; 'received:google.com': 0.38; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; '------': 0.65; 'british': 0.77; 'columbia,': 0.84; 'nathan': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=91yyOGjeTDVhPrCMOMjfhdRjbOjK/4wqS6UbMxmZ9Ck=; b=M2cDcA5oVSgrFNISv/9/UYoiXP/lFntOfEPSLAtrhH8Hzj8PL1/NMaJVRA6muFBTeJ zlE3K+x0L02OY4KojXEdq/heLi49r9VHSCwX/iygDsm5/ocMJQ2/6QM2gqVOp/B+fHsZ NubGmsMBxHYzpc2Mm9pZcU5Gnifye7IFAka/c=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kOjNXfKfqzKoiDJGMxSe2lMZejZ54TVhWvx6LiB2LtjANkClFMxBdHZ1eVYEo2JAul 07wnoY+xRGz1NbSHemSNmLkS5uBTz0+bLaTV2ypwkE9SUexx3DRJpP/WcMWce4+xknEg 8GF4oFP5T9bD4uU4tW2YiRIOr/p+snn/XQOO4=
MIME-Version 1.0
Date Sun, 3 Apr 2011 17:44:14 -0700
Subject Looking for ideas on controlling python module loading
From Nathan Coulson <conathan@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
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>
Newsgroups comp.lang.python
Message-ID <mailman.174.1301877858.2990.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 82.94.164.166
X-Trace 1301877858 news.xs4all.nl 41102 [::ffff:82.94.164.166]:40058
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:2539

Show key headers only | View raw


Hello, I am working on a client/server program (game) that uses C w/
an embedded python interpreter, that uses python to script what
objects do in the game.   (primarily a C environment)

I was wondering if it is possible to control what modules get loaded
(or not).  perhaps by determining if the hash of the local file
matches a hash provided by the server.

I was also wondering, if you could construct a module, without a .py
file, and define functions and variables.


-- 
Nathan Coulson (conathan)
------
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com

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


Thread

Looking for ideas on controlling python module loading Nathan Coulson <conathan@gmail.com> - 2011-04-03 17:44 -0700

csiph-web