Hi Gabriel,
Apart from the problem of sharing code between interpreters (sounds
pretty dangerous to me) there's a bug in 2.4.1 (and 2.3.5 for that
matter) that causes problems with multiple interpreters in certain
siutations (esp. threads) which results in this 'restricted mode'
message - I encoun
Support for multiple interpreters already exists from the C API
(mod_python, Java Embedded Python a few other add-ons use them)
But:
- it's not possible to create new interpreter instances from within Python.
- there's no mechanism for passing information between interpreters.
- interaction wit
That's great - thanks alot.
Cheers,
Max
On 9/23/05, Michael Hudson <[EMAIL PROTECTED]> wrote:
Michael Hudson <[EMAIL PROTECTED]> writes:> Jeremy Maxfield <
[EMAIL PROTECTED]> writes:>>> Sorry I think you're 'much mistaken'...>>>>
]> writes:
> On Thursday 22 September 2005 23:36, Jeremy Maxfield wrote:>> Can the fix for [ 1163563 ] Sub threads execute in restricted mode>> (>>
http://sourceforge.net/tracker/index.php?func=detail&aid=1163563&gr>>oup_id=5470&atid=105470 )>> go in
s bug was backported to 2.3.5).
Max
On 9/22/05, Anthony Baxter <[EMAIL PROTECTED]> wrote:
On Thursday 22 September 2005 23:36, Jeremy Maxfield wrote:> Can the fix for [ 1163563 ] Sub threads execute in restricted mode
> (> http://sourceforge.net/tracker/index.php?func=detail&
Can the fix for [ 1163563 ] Sub threads execute in restricted mode
(http://sourceforge.net/tracker/index.php?func=detail&aid=1163563&group_id=5470&atid=105470
)
go in before 2.4.2 final?
This is a real show stopper for us - we can't move to 2.4 without it.
Cheers,
Max
On 9/22/05, Michael Hudson <
If you're digging into the threadmodule.c could you take a look at
bug #1163563
(http://sourceforge.net/tracker/index.php?func=detail&aid=1163563&group_id=5470&atid=105470)
I've posted a patch
(http://sourceforge.net/tracker/index.php?
func=detail&aid=1203393&group_id=5470&atid=305470)
Regards,
The current threadmodule.c does not seem to correctly support multiple
(sub) interpreters.
This became apparent when using jep - (a Java/Python bridge) and also
seems to cause problems with mod_python.
The incompatibility began in Python version 2.3.5 and has been traced to changes
to the 2.4 thr