jinja2.sandbox.ImmutableSandboxedEnvironment.call_unop

ImmutableSandboxedEnvironment.call_unop(context, operator, arg)

For intercepted unary operator calls (intercepted_unops()) this function is executed instead of the builtin operator. This can be used to fine tune the behavior of certain operators.

New in version 2.6.