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

Date 2011-04-03 17:44 -0700
Subject Looking for ideas on controlling python module loading
From Nathan Coulson <conathan@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.174.1301877858.2990.python-list@python.org> (permalink)

Show all headers | 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