moo.core.tests.test_code.test_apply_calls_function
- moo.core.tests.test_code.test_apply_calls_function()
RestrictedPython still generates _apply_ for star-expansion calls (
f(*args)) in Python 3 — it is not the Python 2apply()builtin artifact we initially assumed. The current implementation is an unrestricted pass-through (lambda f, *a, **kw: f(*a, **kw)), which is correct because all argument access is already guarded at the call-site level.