Re: dynamic loading of code, and avoiding package/module name collisions.

2005-04-08 Thread Paul Clinch
Dear "John Perks and Sarah Mount", > Long story short: what I'm looking for is information on how have a Python > app that: > * embeds an editor (or wxNoteBook full of editors) > * loads code from the editors' text pane into the app > * executes bits of it > * then later unloads to make way for an

Re: import statement - package visibility problem

2005-04-08 Thread Paul Clinch
ort__. Lastly you could look at the new import hooks (PEP 302) in the sys module, implemented in 2.3, where you define a find_module that returns a loader object. Regards, Paul Clinch -- http://mail.python.org/mailman/listinfo/python-list

Re: import statement - package visibility problem

2005-04-07 Thread Paul Clinch
Laszlo, For :- > Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import Lib > Traceback (most recent call last): > File "", line 1, in ? > File "Lib\__init__.py", line 1, in ? >