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


Groups > comp.lang.python > #2539 > unrolled thread

Looking for ideas on controlling python module loading

Started byNathan Coulson <conathan@gmail.com>
First post2011-04-03 17:44 -0700
Last post2011-04-03 17:44 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#2539 — Looking for ideas on controlling python module loading

FromNathan Coulson <conathan@gmail.com>
Date2011-04-03 17:44 -0700
SubjectLooking for ideas on controlling python module loading
Message-ID<mailman.174.1301877858.2990.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web