[mod_python] mod_python and threading.Thread doesn't start

Alexey Melchakov melchakov at gmail.com
Mon Jun 6 07:52:00 EDT 2005


On 6/6/05, Graham Dumpleton <grahamd at dscpl.com.au> wrote:
> 
> I have been developing an idea of what is wrong. Can you now try this
> slightly
> different variation on the code and post back the result. Am interested
> in the
> id of "__builtins__" and whether it is the same as
> "__builtin__.__dict__". On
> my system they are actually the same object. Note this problem was
> possibly
> only introduced with 2.3.5 and 2.4.
> 
Its already not possible for me to move from 2.3.4 from 2.4 ;)

the output of your code is:

In main thread:  builtins=1078010036  builtin=1078010036 file() was OK
In child thread:  builtins=1078010036  builtin=1078010036 file() threw
exception: file() constructor not accessible in restricted mode


I found a nice link on list: 
http://sourceforge.net/tracker/index.php?func=detail&aid=1163563&group_id=5470&atid=105470
there is fixed threadmodule.c for 2.4.1, will try to use it.

-- 
melchakov at gmail.com
CRV-RIPN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050606/b8035f5d/attachment.html


More information about the Mod_python mailing list