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
Boxiang Sun
cython
Commits
1640ce78
Commit
1640ce78
authored
Dec 05, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for ticket #462
parent
36836028
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/cdef_methods_T462.pyx
tests/run/cdef_methods_T462.pyx
+31
-0
No files found.
tests/bugs.txt
View file @
1640ce78
...
...
@@ -7,3 +7,4 @@ numpy_ValueError_T172
unsignedbehaviour_T184
missing_baseclass_in_predecl_T262
cfunc_call_tuple_args_T408
cdef_methods_T462
tests/run/cdef_methods_T462.pyx
0 → 100644
View file @
1640ce78
cimport
cython
cdef
class
cclass
:
def
test_self
(
self
):
"""
>>> cclass().test_self()
'cclass'
"""
return
cython
.
typeof
(
self
)
def
test_self_1
(
self
,
arg
):
"""
>>> cclass().test_self_1(1)
('cclass', (1,))
"""
return
cython
.
typeof
(
self
),
arg
def
test_self_args
(
self
,
*
args
):
"""
>>> cclass().normal_test1_args(1,2,3)
('cclass', (1, 2, 3))
"""
return
cython
.
typeof
(
self
),
args
def
test_args
(
*
args
):
"""
>>> cclass().normal_test0_args(1,2,3):
("Python object", (1, 2, 3))
"""
return
cython
.
typeof
(
args
[
0
]),
args
[
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