[mod_python] Re: [4suite] 4Suite Reliance on ENVIRONMENT & global variables

Mongryong Mongryong at sympatico.ca
Thu Jan 23 00:16:34 EST 2003


> 
> When a sub-interpreter is created, a new module dictionary is created
> which no longer includes a pointer to the 'encodings' module although
> internally Python may say it exists (via a global variable).  This is
> really a bug in Python.
> 
Good plausible theory.  Any idea on how to prove this or test this?

> Try adding an "import encodings" and/or "import codecs" to the
> mod_python module that uses 4Suite.  I kind of remember having to do
> something like that when we had a mod_snake handler for Apache.
> 
Nope, did not work.  I believe 4Suite imports these modules too.  Is
there another place where you imported these modules (ie. at mod_snake
startup?)








More information about the Mod_python mailing list