Skip to main content
-6 votes
2 answers
253 views

The Python library Restricted Python by default doesn't include built-in functions like iter, max, min, sum, or any other function that does any form of iteration, as part of their default ...
Matías Santurio's user avatar
1 vote
1 answer
348 views

Expressions such as: total_impact += impact in my restricted env are not allowed by default and they cause the error: NameError: name '_inplacevar_' is not defined but I would like to allow such ...
Menas's user avatar
  • 1,289
2 votes
1 answer
373 views

I have a class "MyClass" with a class attribute and its methods. class MyClass: def __init__(self): self._my_attr = None @property def my_attr(self): return self....
Georg Pfolz's user avatar
  • 1,629
0 votes
1 answer
954 views

I want to safely execute some user defined code. To accomplish this, I want to use RestrictedPython to limit which modules and variables the user has access to. There are a few guidelines to the user-...
user61123's user avatar
6 votes
2 answers
2k views

Using Yuri Nudelman's code with the custom _import definition to specify modules to restrict serves as a good base but when calling functions within said user_code naturally due to having to whitelist ...
meder omuraliev's user avatar
0 votes
1 answer
246 views

i'm using restrictedpython in my app in order to allow the "mid-skilled-user" to develop some pieces of additional code to execute as modular on-the-fly add-on. For some architectural ...
Symon's user avatar
  • 681