> I thought that restricted mode died ages ago.
>
> Any ideas what could be causing this?
Restricted mode is still available, and activated whenever
a frame's builtins directory is different from the interpreter's;
see PyFrame_IsRestricted.
Regards,
Martin
--
http://mail
kages/reportlab/lib/utils.py", line 810,
in dump
f = open(self.fn,'wb')
IOError: file() constructor not accessible in restricted mode
this is not the original error, but part of our efforts to debug; however, the
original error was during an attempt to read a file so
mod_mbox/httpd-python-dev/200404.mbox/[EMAIL
> > PROTECTED]
>
> I hadn't noticed that particularly, but I'm still a little unclear as
> to what's going on. That thread dates from 3 years ago and it seems to
> imply that mod python is using restricted mode (in t
t
>> File "logging/__init__.py", line 630, in format
>> File "logging/__init__.py", line 421, in format
>> RuntimeError: instance.__dict__ not accessible in restricted mode
>>
>> I'm not sure what it means. Googling leads me to
>> <http
File "logging/__init__.py", line 421, in format
> RuntimeError: instance.__dict__ not accessible in restricted mode
>
> I'm not sure what it means. Googling leads me to
> <http://docs.python.org/lib/restricted.html> but that says that those
> modules were disabled
I'm occasionally seeing tracebacks like this:
Traceback (most recent call last):
File "logging/__init__.py", line 744, in emit
File "logging/__init__.py", line 630, in format
File "logging/__init__.py", line 421, in format
RuntimeError: instance.__dict_
Hey,
I work on some project where main part (core) is coded in C
(for speed) and the rest is in Python. Python API is used
to launch python modules without using any exec() system()
calls (thread safe). During debugging I found that
many of Python modules fails to work because restricted mode
Hi,
At the company I work for we've embedded Python 2.4.1 in a C++
application. We execute multiple scripts concurrenlty, each one in its
own interpreter (created using Py_NewInterpreter()).
We are sharing a certain instance between interpreters because its to
expensive to instantiate that class ev