Commit 558613a5 authored by Stefan Behnel's avatar Stefan Behnel

repair calling cython builtins as part of call node arguments

parent 0de71530
......@@ -2773,6 +2773,8 @@ class TransformBuiltinMethods(EnvTransform):
node.function.pos, type=type, operand=args[1], typecheck=typecheck)
else:
error(args[0].pos, "Not a type")
self.visitchildren(node)
return node
......
......@@ -88,3 +88,18 @@ def locals_ctype_inferred():
cdef int *p = NULL
b = p
return 'b' in locals()
def pass_on_locals(f):
"""
>>> def print_locals(l, **kwargs):
... print(sorted(l))
>>> pass_on_locals(print_locals)
['f']
['f']
['f']
"""
f(locals())
f(l=locals())
f(l=locals(), a=1)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment