Re: restricted mode???

2009-11-04 Thread Martin v. Löwis
> 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

restricted mode???

2009-11-04 Thread Robin Becker
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

Re: logging module - restricted mode error

2007-10-21 Thread Vinay Sajip
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

Re: logging module - restricted mode error

2007-10-21 Thread Paul Rudin
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

Re: logging module - restricted mode error

2007-10-20 Thread Vinay Sajip
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

logging module - restricted mode error

2007-10-15 Thread Paul Rudin
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_

restricted mode (2.4.2)

2006-02-17 Thread Wojciech Pawlikowski
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

Sharing between multiple interpreters and restricted mode

2006-01-04 Thread gabriel . becedillas
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