The "Python Lib format" that Jim discusses is exactly what is used in my "small" distribution. Gordon used a slight variant and even created a nice base class to create similar files. In other words, the code already exists in to match the exact requirements. I strongly agree with Jim's thoughts on moving all Python importing out to the Python level (minus a minimalist set of C functions to dynamically load module M from directory D). Freezing that into the interpreter is a great Step 2. IMO, I would also like to see a frozen Python parser, compiler, and interactive loop, but that is a separate discussion :-) Cheers, -g -- Greg Stein, http://www.lyra.org/ On Mon, 19 Jul 1999, M.-A. Lemburg wrote:
[Jim talking about a Python Lib format]
You may find the attached DictFile.py useful. It does pretty much what you (and even includes a PYCFile subclass). Be warned that it will not work out of the box though, since it references some other modules I normally use. You can safely comment them out though.
-- Marc-Andre Lemburg ______________________________________________________________________ Y2000: 165 days left Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/