Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
558613a5
Commit
558613a5
authored
Oct 30, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repair calling cython builtins as part of call node arguments
parent
0de71530
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+2
-0
tests/run/locals.pyx
tests/run/locals.pyx
+15
-0
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
558613a5
...
...
@@ -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
...
...
tests/run/locals.pyx
View file @
558613a5
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment