On Thursday 05 June 2008, Shane Hathaway wrote:
Are you in fact using RestrictedPython? The code snippet looks like it
only uses a security proxy. RestrictedPython is a custom Python
compiler; you're not using it unless your interactive Python prompt uses
RestrictedPython to compile all
Stephan Richter wrote:
Hi everyone,
I am starting to use Restricted Python a lot and I found the following problem
with slicing:
from zope.security import checker
l = [1, 2]
l[-3:]
[1, 2]
lp = checker.ProxyFactory(l)
lp[-3:]
[2]
The problem is that -3 gets converted to 1 somewhere, but