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
Kirill Smelkov
cython
Commits
d8260e75
Commit
d8260e75
authored
Apr 16, 2013
by
Nikita Nemkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test fixes for autodoc improvements.
parent
3eea6fff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
tests/run/embedsignatures.pyx
tests/run/embedsignatures.pyx
+6
-9
No files found.
tests/run/embedsignatures.pyx
View file @
d8260e75
...
@@ -22,8 +22,6 @@ __doc__ = ur"""
...
@@ -22,8 +22,6 @@ __doc__ = ur"""
None
None
>>> print (Ext.attr4.__doc__)
>>> print (Ext.attr4.__doc__)
attr4 docstring
attr4 docstring
>>> print (Ext.attr5.__doc__)
attr5 docstring
>>> print (Ext.a.__doc__)
>>> print (Ext.a.__doc__)
Ext.a(self)
Ext.a(self)
...
@@ -175,6 +173,9 @@ __doc__ = ur"""
...
@@ -175,6 +173,9 @@ __doc__ = ur"""
>>> print (f_defexpr4.__doc__)
>>> print (f_defexpr4.__doc__)
f_defexpr4(int x=(Ext.CONST1 + FLAG1) * Ext.CONST2)
f_defexpr4(int x=(Ext.CONST1 + FLAG1) * Ext.CONST2)
>>> print (f_defexpr5.__doc__)
f_defexpr5(int x=4)
"""
"""
cdef
class
Ext
:
cdef
class
Ext
:
...
@@ -186,8 +187,6 @@ cdef class Ext:
...
@@ -186,8 +187,6 @@ cdef class Ext:
cdef
public
list
attr2
cdef
public
list
attr2
cdef
public
Ext
attr3
cdef
public
Ext
attr3
cdef
int
attr4
cdef
int
attr4
cdef
attr5
"""private attr5 docstring"""
CONST1
,
CONST2
=
1
,
2
CONST1
,
CONST2
=
1
,
2
...
@@ -205,11 +204,6 @@ cdef class Ext:
...
@@ -205,11 +204,6 @@ cdef class Ext:
def
__get__
(
self
):
def
__get__
(
self
):
return
self
.
attr4
return
self
.
attr4
property
attr5
:
"""attr5 docstring"""
def
__get__
(
self
):
return
self
.
attr4
def
__init__
(
self
,
a
,
b
,
c
=
None
):
def
__init__
(
self
,
a
,
b
,
c
=
None
):
pass
pass
...
@@ -377,3 +371,6 @@ cpdef f_defexpr3(int x = Ext.CONST1, f = __builtins__.abs):
...
@@ -377,3 +371,6 @@ cpdef f_defexpr3(int x = Ext.CONST1, f = __builtins__.abs):
cpdef
f_defexpr4
(
int
x
=
(
Ext
.
CONST1
+
FLAG1
)
*
Ext
.
CONST2
):
cpdef
f_defexpr4
(
int
x
=
(
Ext
.
CONST1
+
FLAG1
)
*
Ext
.
CONST2
):
pass
pass
cpdef
f_defexpr5
(
int
x
=
2
+
2
):
pass
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