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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
559b0270
Commit
559b0270
authored
Dec 30, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended test case
parent
b4dd9bb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
tests/run/decorators_T593.pyx
tests/run/decorators_T593.pyx
+25
-0
No files found.
tests/run/decorators_T593.pyx
View file @
559b0270
...
@@ -10,6 +10,7 @@ def testme(func):
...
@@ -10,6 +10,7 @@ def testme(func):
return
True
return
True
except
NameError
:
except
NameError
:
return
False
return
False
@
testme
@
testme
def
am_i_buggy
():
def
am_i_buggy
():
pass
pass
...
@@ -24,6 +25,30 @@ def testclass(klass):
...
@@ -24,6 +25,30 @@ def testclass(klass):
class
Foo
:
class
Foo
:
pass
pass
def
called_deco
(
a
,
b
,
c
):
def
count
(
f
):
a
.
append
(
(
b
,
c
)
)
return
f
return
count
L
=
[]
@
called_deco
(
L
,
5
,
c
=
6
)
@
called_deco
(
L
,
c
=
3
,
b
=
4
)
@
called_deco
(
L
,
1
,
2
)
def
wrapped_func
(
x
):
"""
>>> L
[(1, 2), (4, 3), (5, 6)]
>>> wrapped_func(99)
99
>>> L
[(1, 2), (4, 3), (5, 6)]
"""
return
x
def
class_in_closure
(
x
):
def
class_in_closure
(
x
):
"""
"""
>>> C1, c0 = class_in_closure(5)
>>> C1, c0 = class_in_closure(5)
...
...
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