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
5aaa6dbc
Commit
5aaa6dbc
authored
Aug 15, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added docstring test for __getattr__ which makes the special method test fail
parent
84b793ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/run/special_method_docstrings.pyx
tests/run/special_method_docstrings.pyx
+8
-0
No files found.
tests/run/special_method_docstrings.pyx
View file @
5aaa6dbc
...
...
@@ -6,6 +6,8 @@ cdef class A:
'A.__len__ docstring'
>>> A.__add__.__doc__
'A.__add__ docstring'
>>> A.__getattr__.__doc__
'A.__getattr__ docstring'
"""
def
__init__
(
self
):
"A.__init__ docstring"
...
...
@@ -13,6 +15,8 @@ cdef class A:
"A.__len__ docstring"
def
__add__
(
self
,
other
):
"A.__add__ docstring"
def
__getattr__
(
self
,
name
):
"A.__getattr__ docstring"
cdef
class
B
(
A
):
"""
...
...
@@ -22,6 +26,8 @@ cdef class B(A):
'B.__len__ docstring'
>>> B.__add__.__doc__
'A.__add__ docstring'
>>> B.__getattr__.__doc__
'A.__getattr__ docstring'
"""
def
__len__
(
self
):
"B.__len__ docstring"
...
...
@@ -34,6 +40,8 @@ class C(A):
'C.__len__ docstring'
>>> C.__add__.__doc__
'A.__add__ docstring'
>>> C.__getattr__.__doc__
'A.__getattr__ docstring'
"""
def
__len__
(
self
):
"C.__len__ docstring"
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