Message77465
When python is embedded in a program, there must be a way for the
program to export
some of its functions to python - a module that resides in the main
executable.
You cannot use the import machinery to import such a module, because
there is no
separate file to find and load. Instead, the embedding program
explicitly calls the
module init() function.
With python 2.x, this creates the module *and* inserts it into
sys.modules. Then
subsequent imports will find it directly in sys.modules.
mod_python for example works this way.
I maintain that the sample is still valid, and should be made to work
somehow. |
|
| Date |
User |
Action |
Args |
| 2008-12-09 22:34:19 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, brett.cannon, blakemadden |
| 2008-12-09 22:34:19 | amaury.forgeotdarc | set | messageid: <1228862059.71.0.531690540242.issue4612@psf.upfronthosting.co.za> |
| 2008-12-09 22:34:19 | amaury.forgeotdarc | link | issue4612 messages |
| 2008-12-09 22:34:18 | amaury.forgeotdarc | create | |
|