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
8f516cc5
Commit
8f516cc5
authored
Nov 25, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional closure tests
parent
13b408b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
tests/run/closures_T82.pyx
tests/run/closures_T82.pyx
+28
-0
No files found.
tests/run/closures_T82.pyx
View file @
8f516cc5
...
...
@@ -184,3 +184,31 @@ def more_inner_funcs(x):
# called with (2,4,8)
return
f
(
a_f
),
g
(
b_g
),
h
(
b_h
)
return
resolve
def
deep_inner
():
"""
>>> deep_inner()()
2
"""
cdef
int
x
=
1
def
f
():
def
g
():
def
h
():
return
x
+
1
return
h
return
g
()
return
f
()
def
deep_inner_sibling
():
"""
>>> deep_inner_sibling()()
2
"""
cdef
int
x
=
1
def
f
():
def
g
():
return
x
+
1
def
h
():
return
g
()
return
h
return
f
()
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