jinja2.sandbox.SandboxedEnvironment.intercepted_unops¶
-
SandboxedEnvironment.
intercepted_unops
= frozenset([])¶ a set of unary operators that should be intercepted. Each operator that is added to this set (empty by default) is delegated to the
call_unop()
method that will perform the operator. The default operator callback is specified byunop_table
.The following unary operators are interceptable:
+
,-
The default operation form the operator table corresponds to the builtin function. Intercepted calls are always slower than the native operator call, so make sure only to intercept the ones you are interested in.
New in version 2.6.